
	function MM_showHideLayers(id,id1,id2) 
	{ 
	   var obj = document.getElementById(id);
	   var id2 = (id2=='show')?'visible':(id2=='hide')?'hidden':id2; 
	   
	   if(id1 == '0' && id2 == 'visible')
	   {
	       var width = 1024;
		   var screenWidth = window.screen.width;
		   var objWidth = obj.style.width;
		   var objs = parseInt(objWidth.split('px')[0]);
		   var eventWidht = event.screenX;
		   
		   var w = (screenWidth-width)/2;
		   var doc = eventWidht-w-50;
		   var l = parseInt(id.split('MenuLayer')[1])+1;
		   
		   var obj_width = objs + 50 + l*75;
		   
		   if( obj_width > width)
		   {
		   	   obj.style.left = 75 + l*75+w-objs;
		   }
	   }
	   obj.style.visibility = id2;
	}
	
	function divShow(id1,id2,id3,id4,img1,img2,url)
	{
		var obj1 = document.getElementById(id1);
		var obj2 = document.getElementById(id2);
		var obj3 = document.getElementById(id3);
		var obj4 = document.getElementById(id4);
		var obj5 = document.getElementById('moreLink');
	
		obj1.background = img1;
		obj2.background = img2;
		
		obj3.style.display = '';
		obj4.style.display = 'none';
		
		obj5.href = url;
	}