// Generic browser checking code	
function checkBrowser(){
	this.ver=navigator.appVersion
	this.dom=document.getElementById?1:0
	this.mac=(navigator.appVersion.indexOf('Mac') != -1)?1:0	
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
	this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom)?1:0;
	this.ie4=(document.all && !this.dom)?1:0;
	this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;
	this.ns4=(document.layers && !this.dom)?1:0;
	this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5);
	this.safari=(this.ver.indexOf("Safari/8")>-1)?1:0;
	return this;
}

function printPage() {
	window.print();
}

function rolloverBG(cellId,bgc) {

if (document.getElementById) 	document.getElementById(cellId).style.background = bgc;
if (document.all)       		eval(cellId).style.background = bgc;

}

function rolloverBGImg(cellId,bgImg) {

var bgImage = 'url(images/'+bgImg+')';
if (document.getElementById)  document.getElementById(cellId).style.backgroundImage = bgImage;
//if (document.all)       		eval(cellId).style.background = bgc;

}

var objBrowser=new checkBrowser();
