var d = document;
var agt = navigator.userAgent.toLowerCase();

function reloadPage(init) {  //Reloads the window if Netscape 4.x resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.pgW=innerWidth; document.pgH=innerHeight; onresize=reloadPage; }}
  else if (innerWidth!=document.pgW || innerHeight!=document.pgH) location.reload();
}
reloadPage(true);

function holdW(where){
  var mW = "";
  if(agt.indexOf('opera') != -1) { return mW }
  else if((!d.getElementById) || (d.getElementById('top').style.minWidth == undefined)){
    var mW = ("<hr size=\"0\" color=\"white\" class=\"" + where + "\">");
    return mW
  }  
  else return mW;
} 

function pageDown () {
  if (window.scrollBy)
    window.scrollBy(0, window.innerHeight ? window.innerHeight : 
document.body.clientHeight);
}
function pageUp () {
  if (window.scrollBy)
    window.scrollBy(0, window.innerHeight ? -window.innerHeight : -
document.body.clientHeight);
}
function bottomOfPage () {
  if (window.scrollBy)
    window.scrollBy(0, 999999);
}
function topOfPage () {
  if (window.scrollBy)
    window.scrollBy(0, -999999);
}

