function getNewPosition()
	{
	
		var varIncrementX;			// This parameter calculates the X distance that needs to be added
		var newleft;				// This is the new X co-ordinate

		// Get the portion from left/right that is outside the main table boundary
		
		if(document.layers)								// If NS4.7
			varIncrementX = (window.innerWidth-776)/2;
		else
			varIncrementX = (document.body.clientWidth-776)/2;
		
		
		if(varIncrementX > 0)
			newleft = 60 + varIncrementX;
		else
			newleft = 60;

		// For menu1
		 newleft = newleft + 130;
		 
        for(i=0;i<=loop;i++){
		if(document.layers){
			if(varIncrementX > 0)
				document.layers[i].left = newleft - 8;
			else
				document.layers[i].left = newleft;
		}	
		else{
				try{document.getElementById("Menu" + i).style.left = newleft + "px";} catch(e){}
			}
		}
}
