function moveOnResize()
{
	var fixWidth = 779		//the width of the fixed middle part of the window where the content is placed
	var menuTabLeft = 168; //the left point from where the menu starts
	var correction = 0;
	
	//document.clientWidth - the width of the window
	
	var  pos =(document.body.clientWidth - fixWidth)/2 + menuTabLeft;  //pos is the window width minus the fixed width of the content part, then devided by 2 (for both left and right resizable sides) and plus the start point 
		
	
	if(pos<(menuTabLeft + correction))  {pos = menuTabLeft + correction;} // if pos is less than the menu start point then it is equal to the start point 

	if (navigator.appName=='Microsoft Internet Explorer') //for MIE and Opera
	{
		document.all.menu1Container.style.left = pos; //change the left attribute of the container to the value of pos
		document.all.menu2Container.style.left = pos; //change the left attribute of the container to the value of pos
	}
	else
	{
		var el = document.getElementById('menu1Container'); //for Netscape 
		el.style.left=pos + "px"; //change the left attribute of the container to the value of pos
		var e2 = document.getElementById('menu2Container'); //for Netscape 
		e2.style.left=pos + "px"; //change the left attribute of the container to the value of pos
	}
}
