
// define navi array
document.menustate 						= new Array;
document.menustate['home']				= 'normal';
document.menustate['portrait']			= 'normal';
document.menustate['person']			= 'normal';
document.menustate['assessment'] 		= 'normal';
document.menustate['coaching']			= 'normal';
document.menustate['solution']			= 'normal';
document.menustate['laufbahn']			= 'normal';
document.menustate['schriftanalyse']	= 'normal';
document.menustate['partner']			= 'normal';
document.menustate['kontakt']			= 'normal';

function setnavi(menu) {
	document.getElementById(menu).src = '../img/menu/high/' + menu + '.png';
}

function unsetnavi(menu) {
	document.getElementById(menu).src = '../img/menu/' + document.menustate[menu] + '/' + menu + '.png';
}

function initnavi() {
	for (var hashkey in document.menustate) {
		//alert('key is: ' + hashkey + ', value is: ' + document.menustate[hashkey]);
		document.getElementById(hashkey).src = '../img/menu/' + document.menustate[hashkey] + '/' + hashkey + '.png';
	}
}

function printlangswitch(){
	if (document.pagelang == 'de'){
		document.write('<a href="../fr/' + document.pageid + '">FRANCAIS</a>');
	}else{
		document.write('<a href="../de/' + document.pageid + '">DEUTSCH</a>');
	}
}

// build links at http://jumk.de/nospam/stopspam.html
function UnCryptMailto( s ){
    var n = 0;
    var r = "";
    for( var i = 0; i < s.length; i++){
        n = s.charCodeAt( i )
        if( n >= 8364 ){ n = 128; }
        r += String.fromCharCode( n - 1 );
    }
    return r;
}

function linkTo_UnCryptMailto( s ){
    location.href=UnCryptMailto( s );
}

