	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-725)/2;
		else
			varIncrementX = (document.body.clientWidth-725)/2;
		
		
		if(varIncrementX > 0)
			newleft = 238 + varIncrementX;
		else
			newleft = 238;

		if(document.layers)								// If NS4.7
		{
			
			if(varIncrementX > 0)
				document.layers[0].left = newleft - 8;
			else
				document.layers[0].left = newleft;
		}
		else		  
			document.getElementById("Menu0").style.left = newleft  + "px";
		  	
		 	

		// For menu2
		
		if(document.layers)								// If NS4.7
		{
			if(varIncrementX > 0)
				document.layers[1].left = newleft - 8;
			else
				document.layers[1].left = newleft;
		}
		else
			document.getElementById("Menu1").style.left = newleft + "px"; 

		// For menu5
		
		newleft = newleft +  168;

		if(document.layers)								// If NS4.7
		{
			if(varIncrementX > 0)
				document.layers[3].left = newleft - 8;
			else
				document.layers[3].left = newleft;
		}
		else
			document.getElementById("Menu3").style.left = newleft + "px";

		// For menu4
		newleft = newleft + 130;
		
		if(document.layers)								// If NS4.7
		{
			if(varIncrementX > 0)
				document.layers[4].left = newleft - 8;
			else
				document.layers[4].left = newleft;
		}
		else
			document.getElementById("Menu4").style.left = newleft + "px";

		newleft = newleft - 130;
		
		if(document.layers)								// If NS4.7
		{
			if(varIncrementX > 0)
				document.layers[5].left = newleft - 8;
			else
				document.layers[5].left = newleft;
		}
		else
			document.getElementById("Menu5").style.left = newleft + "px";
			
		newleft = newleft +30;
		
		if(document.layers)								// If NS4.7
		{
			if(varIncrementX > 0)
				document.layers[6].left = newleft - 8;
			else
				document.layers[6].left = newleft;
		}
		else
			document.getElementById("Menu6").style.left = newleft + "px";
		newleft = newleft - 132;
		
		if(document.layers)								// If NS4.7
		{
			if(varIncrementX > 0)
				document.layers[7].left = newleft - 8;
			else
				document.layers[7].left = newleft;
		}
		/*else
			document.getElementById("Menu7").style.left = newleft + "px";*/
		// For menu3
		newleft = newleft + 285;
		
		if(document.layers)								// If NS4.7
		{
			if(varIncrementX > 0)
				document.layers[2].left = newleft - 8;
			else
				document.layers[2].left = newleft;
		}
		else
			document.getElementById("Menu2").style.left = newleft + "px";
	
	}