<!--		 

/*
Mozilla 1.7:
	userAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1;en-US; rv:1.7) Gecko/20040616
	appVersion: 5.0 (Windows;en-US)
	appName: Netscape
IE 6.0:
	userAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)
	appVersion: 4.0 (compatible; MSIE 6.0; Windows NT 5.1;  .NET CLR 1.1.4322
	appName: Microsoft Internet Explorer
Firefox 0.9.1:
	userAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040626 Firefox/0.9.1
	appVersion:5.0 (Windows;en-US)
	appName: Netscape
Netscape 7.1:
	userAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax)
	appVersion: 5.0 (Windows;en-US)
	appName: Netscape
Netscape 7.0:
	userAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02
	appVersion: 5.0 (Windows;en-US)
	appName: Netscape
Opera 7.51:
	userAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) Opera 7.51 [en]
	appVersion: 4.0 (compatible; MSIE 6.0; Windows NT 5.1
	appName: Microsoft Internet Explorer
*/
function Browser()
{
 	this.Opera = 0;
	this.ie6 = 0;
	this.Mozilla = 0;
	this.nn7 = 0;
	this.nn6 = 0;
	this.Firefox = 0;
 	this.AppVersion = navigator.appVersion;
	this.AppName = navigator.appName;
	this.Dom = document.getElementById?1:0;
	this.UserAgent = navigator.userAgent;		   
	var nPos;
	if(nPos = this.UserAgent.indexOf("Opera") != -1)
	{
	 	this.Opera = 1;
		this.Version = parseInt(this.UserAgent.substring(nPos + 6));
	}
	else if(nPos = this.UserAgent.indexOf("MSIE 6.0") != -1)
	{
	 	this.ie6 = 1;
		this.Version = 6;
	}
	else if(nPos = this.UserAgent.indexOf("MSIE 5.0") != -1)
	{
	 	this.ie5 = 1;
		this.Version = 5;
	}
	else if(nPos = this.UserAgent.indexOf("Netscape/7") != -1)
	{
	 	this.nn7 = 1;
		this.Version = 7;
	}
	else if(nPos = this.UserAgent.indexOf("Netscape6") != -1)
	{
	 	this.nn6 = 1;
		this.Version = 6;
	}
	else if(nPos = this.UserAgent.indexOf("Firefox") != -1)
	{
	 	this.Firefox = 1;
		if(this.UserAgent.substring(nPos + 9,1) == '0')
			this.Version = parseInt(this.UserAgent.substring(nPos + 11));
		else
			this.Version = parseInt(this.UserAgent.substring(nPos + 9));
	}
	else if(nPos = this.UserAgent.indexOf("Gecko") != -1)
	{
	 	this.Mozilla = 1;
		this.Version = parseInt(this.appVersion);
	}
/*	else
		alert(this.UserAgent + " - " + this.appName + " " + this.appVersion);
	alert( 	" Opera:"+this.Opera+
			" ie6:"+this.ie6+
			" Mozilla:"+this.Mozilla+
			" nn7:"+this.nn7+
			" nn6:"+this.nn6+
			" Firefox:" + this.Firefox+
			" Dom:" + this.Dom+
			" UserAgent:"+this.UserAgent);*/
}

var oBrows = new Browser();

function CheckBrowser()
{
 	if(oBrows)
	{
		if(oBrows.ie6)
			return "ie6";
		if(oBrows.Mozilla)
			return "mozilla";
		if(oBrows.nn7)
			return "nn7";
		if(oBrows.nn6)
			return "nn6";
		if(oBrows.Opera)
			return "Opera";
		if(oBrows.Firefox)
			return "Firefox";
	}
	if(document.all)
		return "ie4";
	if(document.layers)
		return "nn4";
	return "?";
}
function GetObj(sName)
{
 	if(oBrows && oBrows.Dom)
		 return document.getElementById(sName);
		
	sBrows = CheckBrowser();
 	switch(sBrows)
	{
		case "ie4":
			 return document.all[sName];
			 break;
		case "nn4":
			 return document.layers[sName];
	}
	return null;
}
-->
