/****h* NesCard/browsercheck/browsercheck.js
* DESCRIPTION
*   Checks browser type and platform. Creates object with info.
* AUTHOR
*   Dan Steinman - http://www.dansteinman.com
* INPUTS
*   None
* OUTPUT
*   Object - is
*/
/*******/

// ---------------------------------------------
// Cross browser init
// ---------------------------------------------
// Original script by Dan Steinman - http://www.dansteinman.com
// Modified by Jacob Hage
// --------------------------------------------- 
// Available properties:
// .v 	= browserversion 	(int)
// .b 	= browsername		(string)
// .p	= platform		(string)
// .j	= Java enabled		(boolean)
// .ns	= Netscape > 4		(boolean)
// .ns4	= Netscape = 4		(boolean)
// .ns5 = Netscape = 5		(boolean)
// .ie	= Explorer > 4		(boolean)
// .ie4	= Explorer = 4		(boolean)
// .ie5	= Explorer = 5		(boolean)
// .min	= NS4+ or IE4+		(boolean)
// ---------------------------------------------
var cssSupport = false;
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.v = parseInt(navigator.appVersion);
	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 = (navigator.userAgent.indexOf('MSIE 4')>0);
	this.ie5 = (navigator.userAgent.indexOf('MSIE 5')>0);
	if (this.ie5) this.v = 5;
	this.min = (this.ns||this.ie);
	this.p = navigator.platform;
	//this.j = navigator.javaEnabled();
}
var is = new BrowserCheck();