// JavaScript Document

this.ie    = !!document.all
this.n4    = !!document.layers
this.ua    = navigator.userAgent
this.mac45 = ua.indexOf('MSIE 4.5; Mac_PowerPC') != -1
this.win   = ua.indexOf('Win') !=-1
this.opr   = !!window.opera

window.onresize = register;
//register(event);

function register(e)
{
	if (!e) e = window.event;
	center();
	return true;
}

function moveLayer(layName,x,y){
	//window.status= document.getElementById("bglayer").width;
    if(document.getElementById){        //e5,e6,n6,n7,m1,o6,o7,s1
		document.getElementById(layName).style.left = x+"px";
        document.getElementById(layName).style.top  = y+"px";
    } 
	else if(document.all){            //e4
        document.all(layName).style.pixelLeft = x
        document.all(layName).style.pixelTop  = y
    } else if(document.layers)          //n4
        document.layers[layName].moveTo(x,y)
  }


function center()
{	
	
	  if(this.ie&&!this.opr) {
            w  = document.body.clientWidth;
			//h   = (document.body.clientHeight <= 560)?560:document.body.clientHeight;
      } else {
            w  = window.innerWidth;
            //h   = window.innerHeight;
      }
      //window.status="w="+w+" h="+h;
	 
	 moveLayer('fond', w/2 -10 - 1200/2, -35);

}