
function WM_netscapeCssFix() {
  if (document.WM.WM_netscapeCssFix.initWindowWidth != window.innerWidth || document.WM.WM_netscapeCssFix.initWindowHeight != window.innerHeight) {
    document.location = document.location;
  }
}
function WM_netscapeCssFixCheckIn() {
  // This function checks to make sure the version of Netscape 
  // in use contains the bug; if so, it records the window's 
  // width and height and sets all resize events to be handled 
  // by the WM_netscapeCssFix() function.
  if ((navigator.appName == 'Netscape') && (parseInt(navigator.appVersion) == 4)) {
    if (typeof document.WM == 'undefined'){
      document.WM = new Object;
    }
    if (typeof document.WM.WM_scaleFont == 'undefined') {
      document.WM.WM_netscapeCssFix = new Object;
      document.WM.WM_netscapeCssFix.initWindowWidth = window.innerWidth;
      document.WM.WM_netscapeCssFix.initWindowHeight = window.innerHeight;
    }
    window.onresize = WM_netscapeCssFix;
  }
}

WM_netscapeCssFixCheckIn()

function MM_checkBrowser(NSvers,NSpass,NSnoPass,IEvers,IEpass,IEnoPass,OBpass,URL,altURL) { //v1.2
  var newURL = '', version = parseFloat(navigator.appVersion);
  if (navigator.appName.indexOf('Netscape') != -1) {
    if (version >= NSvers) {if (NSpass>0) newURL = (NSpass==1)?URL:altURL;}
    else {if (NSnoPass>0) newURL = (NSnoPass==1)?URL:altURL;}
  } else if (navigator.appName.indexOf('Microsoft') != -1) {
    if (version >= IEvers) {if (IEpass>0) newURL = (IEpass==1)?URL:altURL;}
    else {if (IEnoPass>0) newURL = (IEnoPass==1)?URL:altURL;}
  } else if (OBpass>0) newURL = (OBpass==1)?URL:altURL;
  if (newURL) {
    window.location = unescape(newURL);
    document.MM_returnValue = false;
  }
}
function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}
function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}




function out()  {
  if (document.layers)  {
      document.tooltip.visibility="hidden";
  }
}

function over(current,e,text)  {
   if (document.all) {
       thetitle=text.split('<br>');
       if (thetitle.length>1) {
           thetitles='';
           for (i=0;i<thetitle.length;i++)
                  thetitles+=thetitle[i];
          current.title=thetitles;
		  }
		  else
          current.title=text;
   }
   else if (document.layers) {
               document.tooltip.document.write("<layer bgColor='FFFFE1' style='border:1px solid black;font-size:12px;color:#000000;'>" +text+"</layer>");
               document.tooltip.document.close();
               document.tooltip.left=e.pageX+5;
               document.tooltip.top=e.pageY+5;
               document.tooltip.visibility="show";
            }
}


function regenerate(){
   window.location.reload();
}

function regenerate2(){
  if (document.layers){
     setTimeout("window.onresize=regenerate",450);
     intializemarquee();
  }
}

function intializemarquee(){
    document.cmarquee01.document.cmarquee02.document.write(marqueecontents);
    document.cmarquee01.document.cmarquee02.document.close();
    thelength=document.cmarquee01.document.cmarquee02.document.height;
    scrollit();
}

function scrollit(){
  if (document.cmarquee01.document.cmarquee02.top>=thelength*(-1)){
     document.cmarquee01.document.cmarquee02.top-=speed;
     setTimeout("scrollit()",100);
  }
  else{
     document.cmarquee01.document.cmarquee02.top=marqueeheight;
     scrollit();
  }
}

