// JavaScript Document

function checkBrowser(){

	this.win=(navigator.platform=="Win32")?1:0;
	this.mac=(navigator.platform=="MacPPC")?1:0;
	this.ver=navigator.appVersion;
	this.dom=document.getElementById?1:0;						/* The getElementById method is applicable to 5th generation browsers only. */
	this.ie5=(this.ver.indexOf("MSIE")!=-1 && this.dom)?1:0; 	/* Will handle both ie5 and ie5.5 */
	this.ie4=(document.all && !this.dom)?1:0;					/* Specifically ie4 */
	this.ns6=(this.dom && parseInt(this.ver)>=5)?1:0;			/* Netscape 6 (Mozilla) */
	this.ns4=(document.layers && !this.dom)?1:0;	
	this.ie=(this.ie5 || this.ie4);			
	this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5);		/* Only IE or Navigator */
	this.macIE50=(this.mac && this.ver.indexOf("MSIE")!=-1);
	this.op = (navigator.userAgent.indexOf("Opera") > -1);

	return this;
}

var bw = new checkBrowser();
