Cufon('h1')('h2')('h3')('h4',{color: 'black'})('h5',{hover: false, color: 'white'})
		('#logo', {hover: true, textShadow: '1px 1px rgba(0, 0, 0, 0.5)'})
		('div.frontBrochureLink')
		('#frontBrochureLink',{color: 'black'})
		('#headerLogo a',{hover: true, color: 'white', textShadow: '1px 1px rgba(0, 0, 0, 0.5)'})
		('#headerItems a',{hover: true, color: 'white', textShadow: '1px 1px rgba(0, 0, 0, 0.5)'});	

		$(window).scroll(function() {
			if ($(window).scrollTop() > 170)
				$('#scrollBox').animate({ top: $(window).scrollTop() -170 + 'px' },1)
			else
				$('#scrollBox').animate({ top: 0 + 'px' },1)
		});

function econvert(s) {
    if (null == s) return;
    s = s.replace(/%7E/g, '~').replace(/%28/g, '(').replace(/%29/g, ')').replace(/%23/g, '#');
    s = s.replace(/_dot_|_#dot#_| dot |_\._|\(\.\)|\+\.\+|\+dot\+|%20dot%20/gi, '.');
    return s.replace(/_at_|~at~|~#at#~|\(AT\)/gi, '@').replace(/%20/g, '');
}

function AEHit() {
    var r = new RegExp(/\baeh\b/);
    var as = document.getElementsByTagName("a");
    for (var i = 0, len = as.length; i < len; i++)
        if (r.test(as[i].className)) {
        as[i].firstChild.nodeValue = econvert(as[i].firstChild.nodeValue);
        as[i].href = econvert(as[i].href);
    }
}

