/*
JAVASCRIPT LIBRARY FILE: simple browser check
 
All material herein (c) Copyright 2003 Binary Minds, Inc.              
All Rights Reserved.
 
Current Administrator: Tom
 
Changes (incl. date and name)
7/04/03 Tom: created
 
Usage:
function creates an object is.  Code Example:
if (is.ns) {
		place Netscape code
	}
	else if (is.ie) {
		place IE code
	}
*/

// BrowserCheck Object
function BrowserCheck() {
	var b = navigator.appName
	if (b=="Netscape") this.b = "ns"
	else if (b=="Microsoft Internet Explorer") this.b = "ie"
	else this.b = b
	this.version = navigator.appVersion
	this.v = parseInt(this.version)
	this.ns = (this.b=="ns" && this.v>=4)
	this.ns4 = (this.b=="ns" && this.v==4)
	this.ns5 = (this.b=="ns" && this.v==5)
	this.ie = (this.b=="ie" && this.v>=4)
	this.ie4 = (this.version.indexOf('MSIE 4')>0)
	this.ie5 = (this.version.indexOf('MSIE 5')>0)
	this.min = (this.ns||this.ie)
}
is = new BrowserCheck()
