//FLEXIBLE HEADER MENU


// 2003.June.27 BY RIGHTBRAIN.CO





var xwidth;





function setlayposi(xw){


 if(xw < 663){


	xhome = 590;


	xlogo = 4;


 }


 else{


	xw /= 2;


	xw = Math.round(xw);


	xhome = xw +260;


	xlogo = xw - 326;


 }


	xcontact = xhome - 140;


	xlinks = xcontact - 120;


	xhelpmsg = xcontact - 63;


}





function hdmenu(){


 if(document.getElementById){


	xwidth = document.body.clientWidth   //NN6x and IE4,5,6 —p


	setlayposi(xwidth);





	xhome = xhome + "px";


	xlogo = xlogo + "px";


	xcontact = xcontact + "px";


	xlinks = xlinks + "px";


	document.getElementById("yflogo").style.left = xlogo;


	document.getElementById("bk2home").style.left = xhome;


	document.getElementById("contactinfo").style.left = xcontact;


	document.getElementById("usefullinks").style.left = xlinks;


	document.getElementById("helpmsg").style.left = xhelpmsg;


 }


 else if(document.layers){


	xwidth = window.innerWidth     //NN4.x—p


	setlayposi(xwidth);


	document.layers["yflogo"].left = xlogo;


	document.layers["bk2home"].left = xhome;


	document.layers["contactinfo"].left = xcontact;


	document.layers["usefullinks"].left = xlinks;


	document.layers["helpmsg"].left = xhelpmsg;


 }





window.onresize = hdmenu;





}



