self.onerror = null;
preload_finish = false;


pfad = "/shared_images/navigation/";

prefix = "";
postfix = ".gif";
rofix = "_o";

m1 = "gastroverband";
m2 = "mitgliedschaft";
m3 = "seminare";
m4 = "gartberufslehre";
m5 = "gastroprof";
m6 = "gastrosurf";
m7 = "links";
m8 = "kontakt";

self.onerror = null;

nav1off = new Image(); nav1off.src = pfad + prefix + m1 + postfix; 
nav1on = new Image(); nav1on.src = pfad + prefix + m1 + rofix + postfix; 
nav2off = new Image(); nav2off.src = pfad + prefix + m2 + postfix; 
nav2on = new Image(); nav2on.src = pfad + prefix + m2 + rofix + postfix; 
nav3off = new Image(); nav3off.src = pfad + prefix + m3 + postfix; 
nav3on = new Image(); nav3on.src = pfad + prefix + m3 + rofix + postfix; 
nav4off = new Image(); nav4off.src = pfad + prefix + m4 + postfix; 
nav4on = new Image(); nav4on.src = pfad + prefix + m4 + rofix + postfix; 
nav5off = new Image(); nav5off.src = pfad + prefix + m5 + postfix; 
nav5on = new Image(); nav5on.src = pfad + prefix + m5 + rofix + postfix; 
nav6off = new Image(); nav6off.src = pfad + prefix + m6 + postfix; 
nav6on = new Image(); nav6on.src = pfad + prefix + m6 + rofix + postfix; 
nav7off = new Image(); nav7off.src = pfad + prefix + m7 + postfix; 
nav7on = new Image(); nav7on.src = pfad + prefix + m7 + rofix + postfix; 
nav8off = new Image(); nav8off.src = pfad + prefix + m8 + postfix; 
nav8on = new Image(); nav8on.src = pfad + prefix + m8 + rofix + postfix; 


pfeil_On = new Image();
pfeil_On.src = "/shared_images/pfeil-aktiv.gif";
pfeil_Off = new Image();
pfeil_Off.src = "/shared_images/shim.gif";



function M_Over(i){
	if (document.images){
		imgon = eval("nav"+i+"on.src");
     	document.images["nav"+i].src=imgon;
	}
}

function M_Out(i){
	if ((document.images) && (i != active)){
		imgon = eval("nav"+i+"off.src");
     	document.images["nav"+i].src=imgon;
	}
}


function p_on(num){
	if (subactive != 0) { 
	    eval("document.images['p" + num + "'].src=pfeil_On.src;");
	}
}
function p_off(num) {
	if (num!=subactive) {
		eval("document.images['p" + num + "'].src=pfeil_Off.src;");
	}
}


function M_Activate(i) {
	lastactive=active;
	active=i;
	if (active != 0) {
			M_Over(active);
	}
	if (subactive != 0) {
			p_on(subactive);
	}
	if (lastactive!=0) {
		M_Over(lastactive);
	}
}



function SetNavigation() {
	M_Activate(active);
}

function encrypt(string) {
var n=0;
var r="";
for(var i=0;i<string.length;i++) { 
n=string.charCodeAt(i); 
if (n>=8364) {n = 128;}
r += String.fromCharCode(n-(3)); 
}
return r;
}
function linkTo_UnCrypt(string) {
location.href=encrypt(string);
} 