			
		function newImage(arg) {
			if (document.images) {
				rslt = new Image();
				rslt.src = arg;
				return rslt;
			}
		}
		
		function chIs() {
			if (document.images && (preloadFlag == true)) {
				for (var i=0; i<chIs.arguments.length; i+=2) {
					document[chIs.arguments[i]].src = chIs.arguments[i+1];
				}
			}
		}
		
		var preloadFlag = false;
		function preloadImages() {
			if (document.images) {								// preload rollovers
				pb1 = newImage("../is/stetho/on/menu1.gif");
				pb2 = newImage("../is/stetho/on/menu2.gif");
				pb3 = newImage("../is/stetho/on/menu3.gif");
				pb4 = newImage("../is/stetho/on/menu4.gif");
				pb5 = newImage("../is/stetho/on/menu5.gif");
				sb1 = newImage("../is/stetho/on/schlauch1.gif");
				sb2 = newImage("../is/stetho/on/schlauch2.gif");
				sb3 = newImage("../is/stetho/on/schlauch3.gif");
				sb4 = newImage("../is/stetho/on/schlauch4.gif");
				sb5 = newImage("../is/stetho/on/schlauch5.gif");
				preloadFlag = true; 
			}
		}
			
			menuTimer=0;
			
			
			function ov(myObj,myState,menu) {
				clrT();
				highlight(myObj,myState);
				hA();
				showLayer('popmenu'+menu);
				chIs('mainmenu'+menu,'../is/stetho/on/menu'+menu+'.gif');
				chIs('mainschlauch'+menu,'../is/stetho/on/schlauch'+menu+'.gif');
				}
			
			function ou(myObj,myState) {
				clsT();
				highlight(myObj,myState)
				}
			
			function highlight(that, state) {					// submenu rollover
//				var newColor=state?'#000000':'#ffffff';
				var newBG=state?'#5d5d5d':'#666666';
  //  			that.style.color= newColor;
		    	that.parentNode.style.backgroundColor=newBG;
				}
			
			
			function clsT() {
				menuTimer=setTimeout("hA()",1000);
				}	
			
			function clrT() {
				clearTimeout(menuTimer);
				}
				
								
			function popTop(menu) {								// pop the menu
				hA();
				showLayer('popmenu'+menu);
				chIs('mainmenu'+menu,'../is/stetho/on/menu'+menu+'.gif');
				chIs('mainschlauch'+menu,'../is/stetho/on/schlauch'+menu+'.gif');
					
				}
							
			
			function hA() { 									// hide all
				hideLayer('popmenu1','popmenu2','popmenu3','popmenu4','popmenu5');
			    for (var i=1; i<=5; i++) { 
					chIs('mainmenu'+i,'../is/stetho/menu'+i+'.gif');
					chIs('mainschlauch'+i,'../is/stetho/schlauch'+i+'.gif');
					}
				}	
				

				
			function showLayer() { 
			   var n=showLayer.arguments.length; 
			   for (var i=0; i<n; i++) { 
			     var lyr = getLayer(showLayer.arguments[i]); 
			     if(lyr) { 
				    	lyr.visibility="visible";
			     } 
			   } 
			} 
			
			function hideLayer() { 
			   var n=hideLayer.arguments.length; 
			   for (var i=0; i<n; i++) { 
			     var lyr = getLayer(hideLayer.arguments[i]) 
			     if(lyr) { 
				    	lyr.visibility = "hidden";
			     } 
			   } 
			} 
				
			
			function getLayer(name) { 
				if(typeof name != "string") return name; 
					return document.getElementById(name).style;
				return null 
				} 
