var agt=navigator.userAgent.toLowerCase();
if ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1)){
document.write('<style type="text/css">');
document.write('table.menu {font-size:100%;position:absolute;visibility:hidden;top:73px}');
document.write('table.submenu {font-size:100%;position:absolute;visibility:hidden;left:-176px}');
document.write('</style>');
}else{
document.write('<style type="text/css">');
document.write('table.menu {font-size:100%;position:absolute;visibility:hidden;top:65px}');
document.write('table.submenu {position:absolute;visibility:hidden}');
document.write('</style>');
}
		//Preload images
		if (document.images)
		{
			picAbtOn= new Image();
			picAbtOn.src="images/b-aboutus-over.gif";  
			picNewOn= new Image();
			picNewOn.src="images/b-newsroom-over.gif"; 
			picPrdOn= new Image();
			picPrdOn.src="images/b-products-over.gif";  
			picSerOn= new Image();
			picSerOn.src="images/b-services-over.gif"; 
			picMarOn= new Image();
			picMarOn.src="images/b-marketfocus-over.gif"; 
			
			picAbtOff= new Image();
			picAbtOff.src="images/b-aboutus.gif";  
			picNewOff= new Image();
			picNewOff.src="images/b-newsroom.gif"; 
			picPrdOff= new Image();
			picPrdOff.src="images/b-products.gif";  
			picSerOff= new Image();
			picSerOff.src="images/b-services.gif"; 
			picMarOff= new Image();
			picMarOff.src="images/b-marketfocus.gif"; 
		}
		
		function SetSelected(pic){
			eval(pic + 'Off.src=' + pic + 'On.src');
		}
					
		function showmenu(elmnt){
			document.getElementById('section1').style.visibility="hidden";
			document.getElementById('section2').style.visibility="hidden";
			document.getElementById('section3').style.visibility="hidden";
			document.getElementById('section4').style.visibility="hidden";
			//document.getElementById('section4.1').style.visibility="hidden";
			//document.getElementById('section4.2').style.visibility="hidden";
			document.getElementById('section5').style.visibility="hidden";
			turnoff('picAbt');
			turnoff('picNew');
			turnoff('picPrd');
			turnoff('picSer');
			turnoff('picMar');
			
			document.getElementById(elmnt).style.visibility="visible";
			
			switch (elmnt){
				case 'section1' :
					turnon('picAbt');
					break;
				case 'section2' :
					turnon('picNew');
					break;
				case 'section3' :
					turnon('picPrd');
					break;
				case 'section4' :
					turnon('picSer');
					break;
				case 'section5' :
					turnon('picMar');
					break;
				case 'section4.1' :
					if (!((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1))){
						var gapWidth = (document.body.offsetWidth - 750) / 2;
						document.getElementById('section4.1').style.left = 750 + gapWidth - 180 - 176;
					}
					if (agt.indexOf("opera") != -1){
						document.getElementById('section4.1').style.left = 60;
					}
					break;
				case 'section4.2' :
					if (!((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1))){
						var gapWidth = (document.body.offsetWidth - 750) / 2;
						document.getElementById('section4.2').style.left = 750 + gapWidth - 180 - 176;
					}
					if (agt.indexOf("opera") != -1){
						document.getElementById('section4.2').style.left = 60;
					}
					break;
			}
		}
		
		function turnon(imgName){
		   if (document.images){
		      imgOn=eval(imgName + 'On.src');
		      document[imgName].src= imgOn;
		    }
		 }
		
		function turnoff(imgName){
		   if (document.images){
		      imgOff=eval(imgName + "Off.src");
		      document[imgName].src= imgOff;
		    }
		 }
		
		function hidemenu(elmnt){
			document.getElementById(elmnt).style.visibility="hidden";
			switch (elmnt){
				case 'section1' :
					turnoff('picAbt');
					break;
				case 'section2' :
					turnoff('picNew');
					break;
				case 'section3' :
					turnoff('picPrd');
					break;
				case 'section4' :
					turnoff('picSer');
					break;
				case 'section5' :
					turnoff('picMar');
					break;
			}
		}