Cufon('h1', { color: '#446b2c' })('h2', {hover:false, color: 'black'})
	('h3', { color: '#4C7433'})
	('h5', { hover: true, color: 'white' })
	('h6')
	('#logo', { hover: true, textShadow: '1px 1px rgba(0, 0, 0, 0.5)' })
	('div.frontHeader')('div.frontOverskrift')
('#navigation2 a',{hover: true})
	('#mainNavigation a', { hover: true })
	('#subNavigation a', { hover: true })
	('#projektKompetancer a', { hover: true})
	('#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)' })
('#contour label.fieldLabel', { color: '#4C7433'})
	;


$(document).ready(function() {
    AEHit();
});


function submitform() {
    document.getElementById('searchForm').submit();
}





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);
    }
}
