//BrowserCheck
//Checa versão do Browser e suporte à recursos
//	ver: versão do navegador
//	dom: se suporta a DocumentObjectModel da W3C
//	ie5: se é Internet Explorer 5
//	ie4: se é Internet Explorer 4
//	ie:  se é Internet Explorer
//	ns4: se é Netscape 4
//	ns5: se é Netscape 5
//	anyBrowser: se é algum dos browsers suportados
function BrowserCheck(){
	this.ver=navigator.appVersion
	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.ie=this.ie4||this.ie5
	this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0; 
	this.ns4=(document.layers && !this.dom)?1:0;
	this.anyBrowser=(this.ie5 || this.ie4 || this.ns4 || this.ns5 || this.dom)
	return this
}
var browser=new BrowserCheck()

// no caso de não permitir o acesso à página se o browser não for suportado
//if(!browser.anyBrowser) location.href='sorry.html'
