<!--
// generic function to center a given object on screen
// allows x, y offset adjustment
function center ( id, offX, offY ) {
measure ( );
el = document.all ? document.all [ id ] : dom ?
document.getElementById ( id ) : document [ id ];
if ( dom ) {
els = el.style;
elWidth = el.offsetWidth;
elHeight = el.offsetHeight;
elLeft = el.offsetLeft;
elTop = el.offsetTop;
}
else {
els = el;
elWidth = el.clip.width;
elHeight = el.clip.height;
elLeft = el.left;
elTop = el.top;
}
els.visibility = "visible";
xOffset = 0; yOffset = 0;
if ( docWidth > elWidth )
xOffset = elLeft + ( ( docWidth - elWidth ) / 2 );
if ( docHeight > elHeight )
yOffset = elTop + ( ( docHeight - elHeight ) / 2 );
els.top = elTop + yOffset + offY;
els.left = elLeft + xOffset + offX;
}
function measure ( ) {
if ( ie4up ) {
docWidth = document.body.offsetWidth;
docHeight = document.body.offsetHeight;
scrollOffsetLeft = document.body.scrollLeft;
scrollOffsetTop = document.body.scrollTop;
}
else {
docWidth = window.innerWidth;
docHeight = window.innerHeight;
scrollOffsetLeft = window.pageXOffset;
scrollOffsetTop = window.pageYOffset;
}
}
function redraw ( ) {
window.location.reload ( );
}
window.defaultStatus=document.title;
//-->