// Version 2 Beta

// Detect Browser, Use this function for filter those browser which don't support DHTML and give different browser different function...
function BrowserMaster() {
	this.ver=navigator.appVersion;
	this.ua=navigator.userAgent;
	this.mac=(this.ua.indexOf("Mac")!=-1)?1:0;
	this.win=(this.ua.toUpperCase().indexOf("WINDOWS")!=-1)||(this.ua.toUpperCase().indexOf("WINNT")!=-1)?1:0;
	this.x11=(this.ua.toUpperCase().indexOf("X11")!=-1)?1:0;
	this.dom=document.getElementById?1:0;
    this.ie5=(this.ver.indexOf("MSIE 5")>-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?'ie5':this.ie4?'ie4':this.ns4?'ns4':this.ns5?'ns5':''
	return this;
}

// Browser detector
bw=new BrowserMaster();

// Redirect incompatible browser to another page
//if (bw.bw=='') window.location.href="/PCCW/message.html"


