var ns4up = (document.layers) ? 1 : 0;
var ie4up = (document.all) ? 1 : 0;

function HOffset()
{
   var window_width = window.innerWidth ? window.innerWidth : (document.body.clientWidth ? document.body.clientWidth : 0);
   return Math.max( 0, Math.floor( (window_width - 775) / 2 ) - 0 ).toString();
}
document.write( "<DIV ID='IDAlignPage' style='position:absolute;top:0px;left:" + HOffset() + "px;'>&nbsp;" );
function DoReposition() 
{
var o='IDAlignPage';
if(document.getElementById(o)){
var e=document.getElementById(o);
e.style.left=HOffset()+'px';
}else if(ie4up){
var e=eval('document.all.'+o);
e.style.left=HOffset()+'px';
}else if (ns4up){
var e=eval('document.'+o);
e.left=HOffset();}
}

window.onresize=DoReposition;
window.onload=DoReposition;