<!-- MENU CONSTRUCTEUR SS2002arcMediA - 25.09.2002.00.05ss




self.onerror = null;
preload_finish = false;
Pfad = "../shared_img/menu/";  // Pfad der Bilder
Endung = "_o"; 					// Endung des 2. Bildes
Menus = "5";                      // Anzahl Menupunkte
Stab = "5"						// Anzahl Stabstellen
AnzSubnav = "5";

// MENUPUNKT DEFINITION
Menupunkt1 = "ueberuns";
Menupunkt2 = "kompetenzen";
Menupunkt3 = "produkte";
Menupunkt4 = "referenzen";
Menupunkt5 = "kontakt";

// STAB STellen DEFINITION

for (i=0; i<(Menus+1); i++) {
		eval ('nav'+i+'On=new Image();');
 		eval ('nav'+i+'Off=new Image();');	
}

nav1On.src = Pfad+Menupunkt1+Endung+".gif";
nav1Off.src = Pfad+Menupunkt1+".gif";
nav2On.src = Pfad+Menupunkt2+Endung+".gif";
nav2Off.src = Pfad+Menupunkt2+".gif";
nav3On.src = Pfad+Menupunkt3+Endung+".gif";
nav3Off.src = Pfad+Menupunkt3+".gif";
nav4On.src = Pfad+Menupunkt4+Endung+".gif";
nav4Off.src = Pfad+Menupunkt4+".gif";
nav5On.src = Pfad+Menupunkt5+Endung+".gif";
nav5Off.src = Pfad+Menupunkt5+".gif";

nav77On = new Image; nav77On.src = "../shared_img/top_o.gif"; // TOP Button
nav77Off = new Image; nav77Off.src = "../shared_img/top.gif";
nav78On = new Image; nav78On.src = "../shared_img/print_o.gif"; // PRINT Button
nav78Off = new Image; nav78Off.src = "../shared_img/print.gif";

// STAB STellen DEFINITION
stab_On = new Image();
stab_On.src = "../shared_img/stab_punkt.gif";
stab_Off = new Image();
stab_Off.src = "../shared_img/stab_punkt_off.gif";

pfeil_On = new Image();
pfeil_On.src = "../shared_img/menu/pfeil_on.gif";
pfeil_Off = new Image();
pfeil_Off.src = "../shared_img/menu/pfeil_off.gif";




preload_finish = true;

function roll(num,state){
	if ((active != num))  {
		if(preload_finish==true)
			eval("document.images['nav" + num + "'].src = nav" + num + state + ".src;");
	}
}

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 roll_pfeil(num,img_name){
	if (active != num) {
		eval("document.images['p" + num + "'].src = " + img_name + ".src;");
	}
}


function s_on(i) {
		eval("document.images['s" + i + "'].src=stab_On.src;");
	}

function s_off(i) {
	if (stabactive != i) {
		eval("document.images['s" + i + "'].src=stab_Off.src;");
	}
}



/*function Bildwechsel(Layer,Bild,Bildobjekt) {
   window.document.layers[Layer].document.images[Bild].src = pfeil_On.src;
}*/

var isIE, isNS, isNS6, isDOM, lR, sR, vis, invis, myTimeOut, goName;
	if (document.all) {isIE= true;lR="document.all.";sR=".style";vis="visible";invis="hidden";}
	if (document.layers){isNS = true;lR="document.layers.";sR="";vis="show";invis="hide";}
	if (document.getElementById &&!isIE) {isDOM=true;lR = "document.getElementById('";sR = "').style";invis ="hidden";vis = "visible"}
	if (isDOM == true && navigator.appName =="Netscape") isNS6 = true;
	
var oldwhich = 1;
var x=1;
var layerTimer;
var muh=1;
	
//turn on layer and rollover
	function NavOver(which)	{
		// if (active==which){
			x=0;
			l = eval(lR + "l" + which + sR);
			eval("roll("+which+",'On');");
			if (oldwhich != which)
				{
					ol = eval(lR + "l" + oldwhich + sR);
					eval("roll("+oldwhich+",'Off');");
					ol.visibility = invis;
				}
			l.visibility = vis;
			oldwhich = which;
			clearTimeout(layerTimer);
			return;
		//	}
		muh=4;
		}
	
//turn off layer and rollover if user is completely off nav 
	function stopOver(zahl) 	{
		if (active!=oldwhich) {
			if (x<5) x++;
			else
			{
			ol = eval(lR + "l" + oldwhich + sR);
			ol.visibility = invis;
			eval("roll("+oldwhich+",'Off');");
			
			x=0;
			}
		layerTimer = setTimeout("stopOver()",150)
		
		}
		
		
	/*if((muh!=4)||(muh!=3)) {
		setTimeout("SetNavigation()",1000)
		muh=2;
		}*/	
	}
	
//reset the timer
	function startOver()
	{
	x=0
	clearTimeout(layerTimer);
	}
	
function Activate(num) {
	lastactive=active;
	if (active != 0) {
		eval("document.images['nav" + active + "'].src = nav" + active + "On.src;");
		NavOver(active);
		if (subactive != 0) {
		p_on(subactive);
		}
	 }
	
	if (lastactive!=0){
		roll(lastactive);
		NavOver(lastactive);
		p_on(subactive);
	}
}
	 
 function Activatestab(num) {
	 if (stabactive != 0) {
	   eval("document.images['s" + stabactive + "'].src=stab_On.src;");
	 }

}

function SetNavigation(){
	Activate(active);
	Activatestab(stabactive);
}

//netscape resize bug fix
function NSresize() {
  if (document.FIX.NSfix.initWindowWidth != window.innerWidth || document.FIX.NSfix.initWindowHeight != window.innerHeight) {
    document.location = document.location;
  }
}

function NSCheck() {
  if ((navigator.appName == 'Netscape') && (parseInt(navigator.appVersion) == 4)) {
    if (typeof document.FIX == 'undefined'){
      document.FIX = new Object;
    }
    if (typeof document.FIX.FIX_scaleFont == 'undefined') {
      document.FIX.NSfix = new Object;
      document.FIX.NSfix.initWindowWidth = window.innerWidth;
      document.FIX.NSfix.initWindowHeight = window.innerHeight;
    }
    window.onresize = NSresize;
  }
}

NSCheck();

//-->
