function NNresize(){
 if(document.layers){
  window.history.go(0);
 }
}

var centr = 0;
function center(layerName, nr)
 {
  if(document.layers)
   { centr = (window.innerWidth - 760)/2 - 20;
     if(centr < 0) 
	 {
	  document.layers[layerName].left = nr;
	 }
	  else
	   {	 
	    document.layers[layerName].left = Math.ceil(centr) + nr;
	   }
   }
   
   
  if(document.all)
   { 
     centr = (document.body.clientWidth -760)/2 - 20;
	 if(centr < 0) 
	  {
	   eval("document.all." + layerName + ".style.left = " + nr);
	  }
	   else
	   {
	    eval("document.all." + layerName + ".style.left = Math.round(centr) + " + nr);
	   }
	
   }
   
   
   if(document.getElementById && window.innerWidth)
	{
	 obj = document.getElementById(layerName);
	 centr = (window.innerWidth - 760)/2 - 20;
	   if(centr < 0) 
	   {
	    obj.style.left = nr;
	   }
		 else
	  	 {	 
	      obj.style.left = Math.ceil(centr) + nr;
	  	 }
	 }	 
  
 }
