// These variables are global to the included page
var bMSIE = false;
var bMSIE4, bMSIE5, bMSIE55, bMSIE6;
var bNetscape = false, bNetscape_2 = false, bNetscape_3 = false, 
      bNetscape_4 = false;

function browser()
{
    var ua = window.navigator.userAgent;
    var an = window.navigator.appName;

    // Is it IE?
    bMSIE = (ua.indexOf("MSIE")>=1);
    if (bMSIE)
    {
        // IE4
       bMSIE4 = (ua.indexOf("MSIE 4.0")>=1);
     
        // IE5
        bMSIE5 = (ua.indexOf("MSIE 5.0")>=1);
      
      // IE5.5
        bMSIE55 = (ua.indexOf("MSIE 5.5")>=1);
      
      //IE6
      bMSIE6 = (ua.indexOf("MSIE 6.0")>=1);
      
    }
    else if (an == "Netscape")
    {
        bNetscape = true;
        appVer = parseInt(navigator.appVersion);
        if (appVer >= 4)
            bNetscape_4 = true;
        else if (appVer >= 3)
            bNetscape_3 = true;
        else
            bNetscape_2 = true;
    }
if (bMSIE4) {version=4;}
if (bMSIE5) {version=5;}
if (bMSIE55) {version=5.5;}
if (bMSIE6) {version=6;}
}

function normalstatus() {window.status="Welcome to the Dart Hockey Club website."; return true;}

function startPage() {
  if (location.href.indexOf("index.htm") != -1 || location.href.indexOf(".htm") == -1)
   {
   normalstatus();
   }
  else 
   {
   normalstatus();
   }
}

window.onload = startPage;
document.onmouseout = startPage;
