p01normal = new Image();
p01normal.src = "./images/vision_n.gif";
p01maus = new Image();
p01maus.src = "./images/vision_s.gif";
p02normal = new Image();
p02normal.src = "./images/menue02_n.gif";
p02maus = new Image();
p02maus.src = "./images/menue02_s.gif";
p03normal = new Image();
p03normal.src = "./images/menue03_n.gif";
p03maus = new Image();
p03maus.src = "./images/menue03_s.gif";
p04normal = new Image();
p04normal.src = "./images/netzwerk_n.gif";
p04maus = new Image();
p04maus.src = "./images/netzwerk_s.gif";
p05normal = new Image();
p05normal.src = "./images/eins_n.gif";
p05maus = new Image();
p05maus.src = "./images/eins_s.gif";
p06normal = new Image();
p06normal.src = "./images/zwei_n.gif";
p06maus = new Image();
p06maus.src = "./images/zwei_s.gif";
p07normal = new Image();
p07normal.src = "./images/drei_n.gif";
p07maus = new Image();
p07maus.src = "./images/drei_s.gif";
p08normal = new Image();
p08normal.src = "./images/vier_n.gif";
p08maus = new Image();
p08maus.src = "./images/vier_s.gif";
p20normal = new Image();
p20normal.src = "./images/grid_n.gif";
p20maus = new Image();
p20maus.src = "./images/grid_s.gif";
p21normal = new Image();
p21normal.src = "./images/senden_n.gif";
p21maus = new Image();
p21maus.src = "./images/senden_s.gif";
p22normal = new Image();
p22normal.src = "http://www.armac.de/images/close_n.gif";
p22maus = new Image();
p22maus.src = "http://www.armac.de/images/close_s.gif";
p23normal = new Image();
p23normal.src = "./images/mail_n.gif";
p23maus = new Image();
p23maus.src = "./images/mail_s.gif";
p24normal = new Image();
p24normal.src = "./images/weg_n.gif";
p24maus = new Image();
p24maus.src = "./images/weg_s.gif";
p25normal = new Image();
p25normal.src = "./images/plan_n.gif";
p25maus = new Image();
p25maus.src = "./images/plan_s.gif";
p26normal = new Image();
p26normal.src = "./images/verwaltung_n.gif";
p26maus = new Image();
p26maus.src = "./images/verwaltung_s.gif";
p27normal = new Image();
p27normal.src = "./images/fuenf_n.gif";
p27maus = new Image();
p27maus.src = "./images/fuenf_s.gif";
p28normal = new Image();
p28normal.src = "./images/sechs_n.gif";
p28maus = new Image();
p28maus.src = "./images/sechs_s.gif";
p29normal = new Image();
p29normal.src = "./images/um_projekte_n.gif";
p29maus = new Image();
p29maus.src = "./images/um_projekte_h.gif";
p30normal = new Image();
p30normal.src = "./images/um_referenzen_n.gif";
p30maus = new Image();
p30maus.src = "./images/um_referenzen_h.gif";

p31normal = new Image();
p31normal.src = "./images/um_untern01_n.gif";
p31maus = new Image();
p31maus.src = "./images/um_untern01_h.gif";

p32normal = new Image();
p32normal.src = "./images/um_untern02_n.gif";
p32maus = new Image();
p32maus.src = "./images/um_untern02_h.gif";

p33normal = new Image();
p33normal.src = "./images/um_untern03_n.gif";
p33maus = new Image();
p33maus.src = "./images/um_untern03_h.gif";

p34normal = new Image();
p34normal.src = "./images/um_untern04_n.gif";
p34maus = new Image();
p34maus.src = "./images/um_untern04_h.gif";

p35normal = new Image();
p35normal.src = "./images/um_untern05_n.gif";
p35maus = new Image();
p35maus.src = "./images/um_untern05_h.gif";

p36normal = new Image();
p36normal.src = "./images/um_engineering_n.gif";
p36maus = new Image();
p36maus.src = "./images/um_engineering_h.gif";

p37normal = new Image();
p37normal.src = "./images/sieben_n.gif";
p37maus = new Image();
p37maus.src = "./images/sieben_s.gif";

p38normal = new Image();
p38normal.src = "./images/acht_n.gif";
p38maus = new Image();
p38maus.src = "./images/acht_s.gif";

p50normal = new Image();
p50normal.src = "./images/umenue_01_n.gif";
p50maus = new Image();
p50maus.src = "./images/umenue_01_s.gif";

p51normal = new Image();
p51normal.src = "./images/umenue_02_n.gif";
p51maus = new Image();
p51maus.src = "./images/umenue_02_s.gif";

p52normal = new Image();
p52normal.src = "./images/umenue_03_n.gif";
p52maus = new Image();
p52maus.src = "./images/umenue_03_s.gif";

p53normal = new Image();
p53normal.src = "./images/umenue_04_n.gif";
p53maus = new Image();
p53maus.src = "./images/umenue_04_s.gif";

var ns6=false;
if (!document.all && !document.layers && document.getElementsByTagName("*")) { 
	document.all = document.getElementsByTagName("*");
	ns6=true;
} 
if (document.all) {
	layerRef="document.all";
	styleSwitch=".style";
} else {
	layerRef="document.layers";
	styleSwitch="";
}

function showLayer(layerName){
	eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="visible"');
}

function hideLayer(layerName){
	eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="hidden"');
}

function mausdrauf(bild) {
	wechsel = eval(bild + "maus.src");
	var Schalter = 1;
	var i;
	if(document.layers)	{
		for(i=0;i<document.layers.length;i++){    		
			if(document.layers[i].document[bild]){
	   			document.layers[i].document[bild].src = wechsel;
	   			Schalter = 0;
	   		}
	   	}
        if(document[bild] && Schalter){
			document[bild].src = wechsel;
		}
	}
	else if (document.all && document[bild]){
		document[bild].src = wechsel;
	}
	return true;
}

function normal(bild) {
	wechsel = eval(bild + "normal.src");
	var Schalter = 1;	
	var i;
	if(document.layers)	{
		for(i=0;i<document.layers.length;i++){		
	    	if(document.layers[i].document[bild]){
	    		document.layers[i].document[bild].src = wechsel;
	    		Schalter = 0;
	    	}
	    }
		if(document[bild] && Schalter){
			document[bild].src = wechsel;
		}
	}
	else if (document.all && document[bild]){
		document[bild].src = wechsel
	}
	return true;
}

function moveHomeButton() {
	if(document.all && !ns6){
		if (document.body.clientWidth<=778+100) {
			document.all["home1"].style.left=730+100;
			document.all["home2"].style.left=730+100;
		}
		if ((document.body.clientWidth>778+100) && (document.body.clientWidth<1012)) {
			document.all["home1"].style.left=document.body.clientWidth-49;
			document.all["home2"].style.left=document.body.clientWidth-49;
		}
		if (document.body.clientWidth>=1012) {
			document.all["home1"].style.left=963;
			document.all["home2"].style.left=963;
		}
	} 
	if(document.layers) {
		if (window.innerWidth<=788+100) {
			document.layers["home1"].left=730+100;
			document.layers["home2"].left=730+100;
		}
		if ((window.innerWidth>788+100) && (window.innerWidth<1012)) {
			document.layers["home1"].left=window.innerWidth-58; //49
			document.layers["home2"].left=window.innerWidth-58;
		}
		if (window.innerWidth>=1012) {
			document.layers["home1"].left=954;
			document.layers["home2"].left=954;
		}
	}
	if(ns6) {
		if (window.innerWidth<=792+100) {
			document.all["home1"].style.left=730+100;
			document.all["home2"].style.left=730+100;
		}
		if ((window.innerWidth>792+100) && (window.innerWidth<1012)) {
			document.all["home1"].style.left=window.innerWidth-62;
			document.all["home2"].style.left=window.innerWidth-62;
		}
		if (window.innerWidth>=1012) {
			document.all["home1"].style.left=950;
			document.all["home2"].style.left=950;
		}
	}
}

function showWindow(was){
	eval("myfwindow=window.open(was,'armacwin','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=722,height=423');");
	myfwindow.focus();
}
function showWindowLarge(was){
	eval("myfwindow=window.open(was,'armacwin','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=792,height=600');");
	myfwindow.focus();
}

function externalWindow(was){
	if(document.layers) {
		eval("myfwindow=window.open(was,'armacwin','toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=768,height=433');");
	} else {
		eval("myfwindow=window.open(was,'armacwin','toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=780,height=590');");
	}
	myfwindow.focus();
}
// *** Klappmenue *** //
var aktivSubentry = null;
function subMark(objName){
	/*
	try{
	var styleObj = document.getElementById(aktivSubentry).style;
	styleObj.backgroundColor = "#bdcece";
	}catch(e){}
	var styleObj = document.getElementById(objName).style;
	styleObj.backgroundColor = "#bdcece";
	aktivSubentry = objName;
	*/
}
function subView(state){
	var styleObj = document.getElementById('subentry').style;
	styleObj.display = ((state)?"block":"none");
}


