<!--

// One of these boolean variables will be
// set to true based on the browser name
var its_ie = false
var its_ns = false
var its_opera = false
var its_webtv = false
var its_compatible = false

// One of these boolean variables will be set to 
// true based on the Internet Explorer version

var its_ie4 = false
var its_ie5plus = false

// One of these boolean variables will be set to 
// true based on the Netscape version
var its_ns4 = false
var its_ns5plus = false

// One of these boolean variables will be set to 
// true based on the Opera version
var its_opera4 = false
var its_opera5plus = false


// Let's work with lowercase letters to keep things simple
var user_agent = navigator.userAgent.toLowerCase()

// BROWSER NAME

// Use indexOf() to examine the userAgent string
// for telltale signs of the browser name

if (user_agent.indexOf("opera") != -1) { its_opera = true }
else if (user_agent.indexOf("webtv") != -1) { its_webtv = true }
else if (user_agent.indexOf("msie") != -1) { its_ie = true }
else if (user_agent.indexOf("mozilla") != -1) {

    // For "moziila", we need to rule out some other possibilities, first
    if ((user_agent.indexOf("compatible") == -1) && 
        (user_agent.indexOf("spoofer") == -1) && 
        (user_agent.indexOf("hotjava") == -1)) {
        its_ns = true
    }
    else { its_compatible = true }
}

// BROWSER VERSION

var major_version = parseInt(navigator.appVersion)
var full_version = parseFloat(navigator.appVersion)
var ie_start = user_agent.indexOf("msie")

if (ie_start != -1) {
    var version_string = user_agent.substring(ie_start + 5)
    major_version = parseInt(version_string)
    full_version = parseFloat(version_string)
}

// INTERNET EXPLORER
if (its_ie || its_webtv) {
    if (major_version < 5) { its_ie4 = true }
    else if (major_version >= 5) { its_ie5plus = true }
	
}

// NETSCAPE
if (its_ns) {
    if (major_version < 5) { its_ns4 = true }
    else if (major_version >= 5) { its_ns5plus = true }
}


// OPERA
if (its_opera) {
    if (major_version < 4) { its_opera4 = true }
    else if (major_version >= 4) { its_opera5plus = true }
   }

//ALERTS AND REDIRECTS

if (its_ie4) { alert("This site may not display properly in your browser - please upgrade your browser and then come back and visit us");
   }

else if (its_ns4) { alert("This site may not display properly in your browser - It is best viewed in Internet Explorer");
   }
else if (its_ns5plus) { alert("This site may not display properly in your browser - It is best viewed in Internet Explorer");
   }
else if (its_opera4) { alert("This site may not display properly in your browser - It is best viewed in Internet Explorer");
   }
else if (its_opera5plus) { alert("This site may not display properly in your browser - It is best viewed in Internet Explorer");
   }	

//-->