Is();

// SwitchThingy:
			function SwitchThingy(imgDocID,imgObjName) {
				if (document.images) {
					document.images[imgDocID].src = eval(imgObjName + ".src");
				}
			}

 //Reload when window is resized
			 	function reloadOnResize() { 
			 		location.reload(); 
			 		return false; 
			 	} 
			 	window.onresize=reloadOnResize;

//Layers
	function showGenLayer(myLayer) {
		if (is.ie4up) document.all[myLayer].style.visibility = 'visible';
		if (is.nav4up) document.layers[myLayer].visibility = 'visible';
	}

	function hideGenLayer(myLayer) {
		if (is.ie4up) document.all[myLayer].style.visibility = 'hidden';
		if (is.nav4up) document.layers[myLayer].visibility = 'hidden';
	}
			 	 				
//Shiftlayers according to screenwidth
//domtranslator
	var domstyle,domlayer;
	if (this.nav6up){  
		 domstyle=".style";
	} 
	else if (this.nav4)  {
		domlayer=".layers";
		domstyle="";
	}
	else if (this.ie4up)  {
		domlayer=".all";
		domstyle=".style";
	} 

//move the layers	
//function to move a layer to the right depending on to window size
function shiftLayer(lyr,offset){	
		 
		 if(lyr=="mainFrame"){
	 			//alert("Ahum");
	 			eval("document"+domlayer+"['"+lyr+"']"+domstyle+".clip.left='"+(pointLeft+5)+"'");
	 			eval("document"+domlayer+"['"+lyr+"']"+domstyle+".clip.right='"+(pointLeft+415)+"'");
	 		}

	var lyrshifted = (pointLeft + offset);
		
	 		
		if (this.nav6up){
			eval("document.getElementById('"+lyr+"').style.left='"+ lyrshifted +"'");
			eval("document.getElementById('"+lyr+"').style.visibility='visible'");
		}
		else{
			
	 		eval("document"+domlayer+"['"+lyr+"']"+domstyle+".left='"+ lyrshifted +"'");
	 		eval("document"+domlayer+"['"+lyr+"']"+domstyle+".visibility='visible'");
 		}
}

function shiftAllLayers(template){
	//First move the scrollbar layers (exist in ie4up only)
	//How much the scrollbar will be moved depends on which template
	var	templateshift;
	if(template==1){
		templateshift=436;
	}
	if(template==2){
		templateshift=750;
	}
	if(template==3){
		templateshift=752;
	}
		
	if(is.ie4up){
		//alert(pointLeft);
		var moveby = 5;
		shiftLayer('mainFrame',moveby);
		//shiftLayer('main',moveby);
		shiftLayer('scrollyr',templateshift);
		
	}
//now move menulayers	
	//shiftLayer('mainnav',42);
	
}
	 	
