function resize_imagecontainer(id, width)
{

ScreenWidth = screen.width;
ScreenWidth = document.body.offsetWidth;
//alert(ScreenWidth);
/*
layerInnerWidth = document.getElementById(id).offsetWidth;
distanceleft = (ScreenWidth-layerInnerWidth)/2;

 document.getElementById(id).style.left=distanceleft+"px";
 */
 
// alert("move by"+distanceleft);
 //alert(distanceleft);
 
 
		distanceleft = (ScreenWidth-width)/2;

 document.getElementById(id).style.left=distanceleft+"px";
		
}

