
function UserAgent() {

	var b=navigator.appName;
	
	if (b=="Netscape")
	    this.b="ns";
	else 
	    if (b=="Microsoft Internet Explorer")
	        this.b="ie";
	    else
	        this.b=b;
	
	this.version=navigator.appVersion;
	
	this.v=parseInt(this.version);
	
	this.ns=(this.b=="ns" && this.v>=4);
//	if (this.ns) alert("ns > 4");
	this.ns4=(this.b=="ns" && this.v==4);
//	if (this.ns4) alert("ns4");
	this.ns5=(this.b=="ns" && this.v==5);
//	if (this.ns5) alert("ns5");
	this.ns6=(this.b=="ns" && this.v==5);
//	if (this.ns6) alert("ns6");
	this.ns7=(this.b=="ns" && this.v==5);
//	if (this.ns7) alert("ns7");
	
	this.ie=(this.b=="ie" && this.v>=4);
//	if (this.ie) alert("ie");
	this.ie4=(this.version.indexOf('MSIE 4')>0);
//	if (this.ie4) alert("ie4");
	this.ie5=(this.version.indexOf('MSIE 5')>0);
//	if (this.ie5) alert("ie5");
	this.MacIE5=((this.version.indexOf('MSIE 5')>0) && (this.version.indexOf('Macintosh')>0));
	if (this.MacIE5) { alert("MacIE5"); this.ie4 = true;}
	this.ie55=(this.version.indexOf('MSIE 5.5')>0);
//	if (this.ie55) alert("ie55");
	this.ie6=(this.version.indexOf('MSIE 6.0')>0);
//	if (this.ie6) alert("ie6");
	this.ie7=(this.version.indexOf('MSIE 7.0')>0);
//	if (this.ie7) alert("ie7");
}
at=new UserAgent();

IE4 = (document.all);
NS4 = (document.layers);

//var dom = (document.getElementById) ? true : false;
//var ns5 = ((navigator.userAgent.indexOf("Gecko")>-1) && dom) ? true: false;
//var ie5 = ((navigator.userAgent.indexOf("MSIE")>-1) && dom) ? true : false;
//var ns4 = (document.layers && !dom) ? true : false;
//var ie4 = (document.all && !dom) ? true : false;

nodyn = (!at.ns5 && !at.ns4 && !at.ie4 && !at.ie5 && !at.ie55 && !at.ie6 && !at.ns7 && !at.ie7) ? true : false;

// overly simplistic test for IE
 
isIE = (document.all ? true : false);

// both IE5 and NS6 are DOM-compliant

//isDOM = (document.getElementById ? true : false);
isDOM = (at.ns5 || at.ns4 || at.ie4 || at.ie5 || at.ie55 || at.ie6 || at.ns7 || at.ie7) ? true : false;

//alert("Navigator App: " + navigator.appName + "\r\n Version App: " + navigator.appVersion + "\r\n Version Number: " + parseInt(this.version));
if (!at.ns7 && !at.ie55 && !at.ie6 && !at.ie5 && !at.ie7) {
     alert("Navigator App: " + navigator.appName + "\r\n Version App: " + navigator.appVersion + "\r\n Version Number: " + parseInt(this.version));
     location.href = "notsupported.htm";
}