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.NS5) this.VER5 = true;
if (this.IE4 || this.NS4) this.VER4 = true;
this.OLD = (! this.VER5 && ! this.VER4) ? true : false;
this.min = (this.NS||this.IE);
}
is = new BrowserCheck();

(is.NS) ? document.write('<link rel="stylesheet" href="new/includes/ns.css" type="text/css">') : document.write('<link rel="stylesheet" href="new/includes/ie.css" type="text/css">')

function toggleDiv(graphicName) {
	toggleLayer = (is.VER5) ? document.getElementById("roll") : (is.NS) ? document.layers["roll"].document : document.all["roll"];
	if (graphicName == '') {
		graphic ='new/images/home/ctr_medal.gif'; 
	} else {
		graphic ='new/images/home/ctr_'+graphicName+'.gif'; 
	}
	(is.NS4) ? document.layers['roll'].document.images['tags'].src = graphic : document.images['tags'].src = graphic;
}

function toggleArr(graphicName) {
	toggleLayer = (is.VER5) ? document.getElementById("roll") : (is.NS) ? document.layers["roll"].document : document.all["roll"];
	if (graphicName == '') {
		graphic ='new/images/spacer.gif'; 
	} else {
		graphic ='new/images/menuarr_'+graphicName+'.gif'; 
	}
	(is.NS4) ? document.layers['roll'].document.images['arrs'].src = graphic : document.images['arrs'].src = graphic;
}

function toggleGet(sTate,itemNum) {
	graphicName='get_'+itemNum;
	(sTate) ? graphicFile='new/images/gets/'+graphicName+'_ovr.gif' : graphicFile='new/images/gets/'+graphicName+'.gif';
	(is.NS4) ? document.layers['nav'].document.images[graphicName].src = graphicFile : document.images[graphicName].src = graphicFile;
}
