/*
	monkeymountain :: browsercheck
	derek@monkeymountain.co.uk
	01 03 2001
	-> 27 05 02 - added check for IE6
	-> 23 06 03 - updated opera version check
	
	browser check for monkeymountain homepage
*/


/*Browsercheck:*/
function checkBrowser(){
	this.name = navigator.appName;
	this.ver = navigator.appVersion;
	this.userAgent = navigator.userAgent;
	this.dom=document.getElementById?1:0;
	this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom)?1:0;
	this.ie5_5=(this.ver.indexOf("MSIE 5.5")>-1 && this.dom)?1:0;
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
	this.ie=(document.all && !this.dom)?1:0;
	this.n6=(this.dom && parseInt(this.ver) >= 5) ?1:0;
	this.n=(document.layers && !this.dom)?1:0;
	this.opera = (this.name.indexOf("Opera")>-1)?true:false;
	this.opera5 = (this.name.indexOf("Opera")>-1 && this.ver.indexOf("5")==0)?true:false;
	this.opera6 = (this.name.indexOf("Opera")>-1 && this.ver.indexOf("6")==0)?true:false;
	this.opera7 = (this.name.indexOf("Opera")>-1 && this.ver.indexOf("7")==0)?true:false;
	return this
}
bw=new checkBrowser();
ie6=bw.ie6;
ie5_5=bw.ie5_5;
ie5=bw.ie5;
n6=bw.n6;
ie=bw.ie;
n=bw.n;
opera=bw.opera;
opera5=bw.opera5;
opera6=bw.opera6;
opera7=bw.opera7;
dom = bw.dom;


//	browser check loaded.
//alert("browser check loaded.");
/*if (ie5){
	var myFunctionLoaded = document.createElement("<div id='mmFunctionLoaded'>");
	myFunctionLoaded.innerHTML = "<img src='images/function_loaded.gif' alt='' border='0' width='100' height='20' />";
	document.body.appendChild(myFunctionLoaded);
	setTimeout("myFunctionLoaded.removeNode(true);",1000)
}*/
/*if (ie||ie5){
document.write("<div id='mmBrowserCheckLoaded'>");
document.write("<img src='images/browsercheck_loaded.gif' alt='' border='0' width='100' height='20' />");
document.write("</div>");
setTimeout("mmBrowserCheckLoaded.style.display = 'none'",1000);
} else if (n){
//	window.location = "monkeymountain_ns_teaser.html";
}*/
