
var sBrowserVersion = ''
var sScreenResulation = ''
var bBrowserMin = false
var bResulationMin = false

function BrowserCheck() {
	var correctwidth=1024
	var correctheight=768
	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)
	this.ie55 = (navigator.userAgent.indexOf('MSIE 5.5')>0)
	this.ie6 = (navigator.userAgent.indexOf('MSIE 6')>0)
	if (this.ie4) this.v = 4
	if (this.ie5) this.v = 5
	if (this.ie55) this.v = 5.5
	if (this.ie6) this.v = 6
	this.min = (this.v>=5.5&&this.b=="ie")
	this.BrowserVersion = b + ' ' + this.v
	this.resmin = (screen.width>=correctwidth&&screen.height>=correctheight)
	
	sBrowserVersion = this.BrowserVersion
	sScreenResulation = screen.width + 'x' + screen.height
	bBrowserMin = this.min
	bResulationMin = this.resmin

		
		//alert(this.BrowserVersion)
		//alert(screen.width + 'x' + screen.height)
}


// automatically create the "is" object
is = new BrowserCheck()
