 // check for browser type and write notification

function Is () 
{   // convert all characters to lowercase to simplify testing 
    var agt=navigator.userAgent.toLowerCase(); 

    // *** BROWSER VERSION *** 
    // Note: On IE5, these return 4, so use is.ie5up to detect IE5. 
    this.major = parseInt(navigator.appVersion); 
    this.minor = parseFloat(navigator.appVersion); 

    this.nav  = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1) 
                && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1) 
                && (agt.indexOf('webtv')==-1)); 
    this.nav2 = (this.nav && (this.major == 2)); 
    this.nav3 = (this.nav && (this.major == 3)); 
    this.nav4 = (this.nav && (this.major == 4)); 
    this.nav4up = (this.nav && (this.major >= 4)); 
    this.navonly      = (this.nav && ((agt.indexOf(";nav") != -1) || 
                          (agt.indexOf("; nav") != -1)) ); 
    this.nav5 = (this.nav && (this.major == 5)); 
    this.nav5up = (this.nav && (this.major >= 5)); 

    this.ie   = (agt.indexOf("msie") != -1); 
    this.ie3  = (this.ie && (this.major < 4)); 
    this.ie4  = (this.ie && (this.major == 4) && (agt.indexOf("msie 5.0")==-1) ); 
    this.ie4up  = (this.ie  && (this.major >= 4)); 
    this.ie5  = (this.ie && (this.major == 4) && (agt.indexOf("msie 5.0")!=-1) ); 
    this.ie5up  = (this.ie  && !this.ie3 && !this.ie4); 

    // KNOWN BUG: On AOL4, returns false if IE3 is embedded browser 
    // or if this is the first browser window opened.  Thus the 
    // properties is.aol, is.aol3, and is.aol4 aren't 100% reliable. 
    this.aol   = (agt.indexOf("aol") != -1); 
    this.aol3  = (this.aol && this.ie3); 
    this.aol4  = (this.aol && this.ie4); 

    this.opera = (agt.indexOf("opera") != -1); 
    this.webtv = (agt.indexOf("webtv") != -1); 

}

var is;
var isIE3Mac = false; 
// this section is designed specifically for IE3 for the Mac

if ((navigator.appVersion.indexOf("Mac")!=-1) && (navigator.userAgent.indexOf("MSIE")!=-1) && (parseInt(navigator.appVersion)==3)) 
       isIE3Mac = true; 
else   is = new Is();  

if (isIE3Mac) document.write("<p class='notice'>You are using IE3 for the Mac. Our site with all its features is optimized to be experienced with the latest browsers. Upgrade now by downloading a free copy of <a class='this' href='http://microsoft.com/windows/ie/default.htm' target='_blank'>Internet Explorer 5+</a> or <a class='this' href='http://netscape.com/computing/download/index.html' target='_blank'>Netscape 5+</a>!</p>");

  else if (!isIE3Mac && is.nav5up)
  {
   document.write("<p class='notice'><b>Welcome!</b> You are using Netscape 6.<br>Enjoy your visit!</p>")
  }
  else if  (!isIE3Mac && is.nav4)
  {
   document.write("<p class='notice'>You are using Netscape 4 which does not support all of the features that our site offers! For best experience please use <a class='this' href='http://microsoft.com/windows/ie/default.htm' target='_blank'>MS Internet Explorer 4+</a> or upgrade to <a class='this' href='http://netscape.com/computing/download/index.html' target='_blank'>Netscape 5+</a></p>")
  }
  else if (!isIE3Mac && is.ie4up)
  {
   document.write("<br>")
  }
  else
  {
   document.write("<p class='notice'>Our site is optimized to be viewed in <a class='this' href='http://microsoft.com/windows/ie/default.htm' target='_blank'>Internet Explorer 4+</a> or <a class='this' href='http://netscape.com/computing/download/index.html' target='_blank'>Netscape 5+</a></p>")
  }