
var currBrowser;
var currBrowserStr = navigator.appName;
var currVersion;
var currVersionNum = parseFloat(navigator.appVersion);
var agt = navigator.userAgent.toLowerCase();
var currOS = 0;
var currOSStr = '';
var currJava;
var currCookies;
var currScreenWidth = parseInt(window.screen.width);
var currScreenHeight = window.screen.height;
var currScreenStr = currScreenWidth + ' x ' + currScreenHeight;

// Browser/Version
if (currBrowserStr == 'Netscape')
{
	currBrowser = false; //currBrowser = true;
	//if (currVersionNum >= 4.7) currVersion = true;
	//else currVersion = false;
}
else if (currBrowserStr == 'Microsoft Internet Explorer') 
{
	currBrowser = true;
	// Note: On IE5 and 6, appVersion returns 4, so use userAgent to detect IE5 and 6.
	if (currVersionNum = 4)
	{
		if (agt.indexOf("msie 5.0")!=-1)
		{
			currVersionNum = 5;
		}
		else if (agt.indexOf("msie 5.5")!=-1)
		{
			currVersionNum = 5.5
		}
		else if (agt.indexOf("msie 6")!=-1)
		{
			currVersionNum = 6
		}
		currVersion = true;
	}
	else
	{
		currVersionNum = currVersionNum;
		currVersion = false;
	}
}

else
{
	currBrowser = false;
	currVersion = false;
}



	// Operating System
	// NOTE: On Opera 3.0, the userAgent string includes "Windows 95/NT4" on all
	//         Win32, so you can't distinguish between Win95 and WinNT.
	//      Reliable detection of Win98 may not be possible. It appears that:
	//       - On Nav 4.x and before you'll get plain "Windows" in userAgent.
	// . . . . . .
	// currOS LEGEND: 0 = unsupported, 1 = supported, 2 = unknown
	//       (setting most to unknown for now as they are untested)
	if ((agt.indexOf("win95")!=-1) || (agt.indexOf("windows 95")!=-1))
	{
		currOSStr = "Windows 95";
		currOS = 1;
	}
	else if ((agt.indexOf("windows 3.1")!=-1) || (agt.indexOf("win16")!=-1) || (agt.indexOf("windows 16-bit")!=-1))
	{
		currOSStr = "Windows 3.1";
		currOS = 0;
	}
	else if ((agt.indexOf("win98")!=-1) || (agt.indexOf("windows 98")!=-1))
	{
		currOSStr = "Windows 98";
		currOS = 1;
	}
	else if ((agt.indexOf("winnt")!=-1) || (agt.indexOf("windows nt")!=-1))
	{
		// Windows 2000 sends 'Windows NT 5.0' as the userAgent, 
		// but since there is no 'Windows NT 5.0', catch it this way
		if ((agt.indexOf("winnt 5")!=-1) || (agt.indexOf("windows nt 5")!=-1))
		{
			currOSStr = "Windows 2000";
			currOS = 1;
		}
		else
		{
			currOSStr = "Windows NT";
			currOS = 1;
		}
	}
	else if (agt.indexOf("mac")!=-1)
	{
		currOSStr = "Macintosh";
		currOS = 0;
	}
	else if (agt.indexOf("sunos")!=-1)
	{
		currOSStr = "Sun";
		currOS = 0;
	}
	else if (agt.indexOf("irix")!=-1)
	{
		currOSStr = "Irix";
		currOS = 0;
	}
	else if (agt.indexOf("hp-ux")!=-1)
	{
		currOSStr = "HP-UX";
		currOS = 0;
	}
	else if (agt.indexOf("inux")!=-1)
	{
		currOSStr = "Linux";
		currOS = 0;
	}


// Java
if (navigator.javaEnabled()) currJava = true;
else currJava = false;



// Cookies
if (currBrowserStr == 'Microsoft Internet Explorer')
{
	if (navigator.cookieEnabled) currCookies = true;
	else currCookies = false;
}
else
{
	document.cookie="test cookie";
	currCookies = (document.cookie.length > 0);
}

// Resolution
if (currScreenWidth >= 800)
	currScreenRes = true;
else
	currScreenRes = false;

// Macromedia Flash

var MM_FlashControlInstalled;	// is the Flash ActiveX control installed?
var MM_FlashControlVersion;	// ActiveX control version if installed

function MM_FlashInfo()
{
    if (navigator.plugins && navigator.plugins.length > 0)
    {
	this.implementation = "Plug-in";
	this.autoInstallable = false;	// until Netscape SmartUpdate supported

	// Check whether the plug-in is installed:

	if (navigator.plugins["Shockwave Flash"])
	{
	    this.installed = true;

	    // Get the plug-in version and revision:

	    var words =
		navigator.plugins["Shockwave Flash"].description.split(" ");

	    for (var i = 0; i < words.length; ++i)
	    {
		if (isNaN(parseInt(words[i])))
		continue;

		this.version = words[i];
		this.revision = parseInt(words[i + 1].substring(1));
	    }
	}
	else
	{
	    this.installed = false;
	}
    }
    else if (MM_FlashControlInstalled != null)
    {
	this.implementation = "ActiveX control";
	this.installed = MM_FlashControlInstalled;
	this.version = MM_FlashControlVersion;
	this.autoInstallable = true;
    }

}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

//Pop-Up Blocker
try
{
	var mine = window.open('','','width=1,height=1,left=0,top=0,scrollbars=no');
	var popUpsBlocked = false
	mine.close()
}
catch(e)
{
	var popUpsBlocked = true
}