<!--

//Determine Browser make and model

var oldbrowser
if (parseInt(navigator.appVersion) < 5 || (navigator.appName == "Microsoft Internet Explorer" && parseInt(navigator.appVersion) >= 4)){	oldbrowser = true
}else{	oldbrowser = false
}
is = new BrowserCheck()

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)
}

//Cross Browser variables

var coll = ""
var collEnd = ""
var styleObj = ""
var seeObj = ""
var noSeeObj = ""
var leftObj = ""
var topObj = ""
if (oldbrowser){
	if (is.ie){
		coll = "all."
		styleObj = ".style"
		seeObj = "'visible'"
		noSeeObj = "'hidden'"
		leftObj = ".pixelLeft"
		topObj = ".pixelTop"
	}else{
		seeObj = "'show'"
		noSeeObj = "'hide'"
		leftObj = ".left"
		topObj = ".top"
	}
}else{
	coll = "getElementById('"
	collEnd = "')"
	styleObj = ".style"
	seeObj = "'visible'"
	noSeeObj = "'hidden'"
	leftObj = ".pixelLeft"
	topObj = ".pixelTop"
}

//Write stylesheet for newer browsers

if (!oldbrowser || (navigator.appName == "Microsoft Internet Explorer" && parseInt(navigator.appVersion) >= 4)){
	document.write('<link rel="stylesheet" type="text/css" href="_includes/CRMstylerules.css">')
}

// browser upgrade

if (navigator.appName == "Netscape" && parseInt(navigator.appVersion) < 5){
	window.open("browserupgrade-netscape.htm","","width=380,height=145,left=20,top=20")
}
if (navigator.appName == "Microsoft Internet Explorer" && parseInt(navigator.appVersion) < 4){
	window.open("browserupgrade-ie.htm","","width=380,height=180,left=20,top=20")
}

// correct resolution

if (screen.width < 800 || screen.height < 600){
  alert("This site can not be viewed properly at resolutions below 800 x 600!")
}

// *** Resets all on resize (Netscape...get your act together!) ***

function handleResize() {
  location.reload()
  return false
}
if (is.ns4) {
  window.captureEvents(Event.RESIZE)
  window.onresize = handleResize
}
//-->