<!------------------------------------------------------------------->
<!--                     Browser "Sniffer" 1.0                     -->
<!--   Copyright 2000-2002 CollegeNET, Inc. All rights reserved.   -->
<!------------------------------------------------------------------->
function Is() {
	var agt=navigator.userAgent.toLowerCase()

	if (navigator.appVersion.indexOf("MSIE")!=-1){
		this.major = parseInt(navigator.appVersion.substr(navigator.appVersion.indexOf("MSIE")+5))
		this.minor = parseFloat(navigator.appVersion.substr(navigator.appVersion.indexOf("MSIE")+5))
	}else{
	   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.nav3up = (this.nav && (this.major >= 3))
	this.nav4 = (this.nav && this.major == 4)
	this.nav4up = (this.nav && (this.major >= 4))
	this.nav6 = (this.nav && this.major == 5)
	this.nav6up = (this.nav && this.major >= 5)

	this.ie = (agt.indexOf("msie") != -1)
	this.ie4 = (this.ie  && (this.major == 4))
	this.ie4up = (this.ie  && (this.major >= 4))
	this.ie5 = (this.ie  && (this.major == 5))
	this.ie5up = (this.ie  && (this.major >= 5))
	this.ie6 = (this.ie  && (this.major == 6))
	this.ie6up = (this.ie  && (this.major >= 6))

	this.opera = (agt.indexOf("opera") != -1)

	this.win = ( (agt.indexOf("win") != -1) || (agt.indexOf("16bit") != -1))
	this.mac = (agt.indexOf("mac") != -1)
		
	var thePlugin = (this.nav) ? navigator.plugins["LiveAudio"] : null // reference to LiveAudio plugin object, if installed
	var theMimeType = (thePlugin!=null) ? thePlugin["audio/wav"] : null // reference to audio/wav MimeType object, if supported
	this.liveAudioEnabled = this.nav && theMimeType && theMimeType.enabledPlugin==thePlugin
	
	this.ieSoundCapable = (this.ie4up)
	this.navSoundCapable = (this.nav && navigator.appVersion.indexOf("68K")==-1 && this.liveAudioEnabled)
	this.soundCapable = (this.ieSoundCapable || this.navSoundCapable)
}

// create a new "sniffer" object
var is = new Is() 

// Only support DHTML/CSS compatible browsers
//if (!is.nav4up && !is.ie4up){
	//window.location="./sorry.html"
//}
