<!--//hidden

/////////////////////////////////////////
// Convert userAgent string to Lowercase
/////////////////////////////////////////


var agt=navigator.userAgent.toLowerCase();


///////////////////
// Browser Version
///////////////////


var is_major = parseInt(navigator.appVersion);
var is_minor = parseFloat(navigator.appVersion);

var is_ns  = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1) && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1) && (agt.indexOf('webtv')==-1));

var is_ie   = (agt.indexOf("msie") != -1);

////////////
// Platform
////////////


var is_win   = ( (agt.indexOf("win")!=-1) || (agt.indexOf("16bit")!=-1) );
var is_win95 = ((agt.indexOf("win95")!=-1) || (agt.indexOf("windows 95")!=-1));
var is_win16 = ((agt.indexOf("win16")!=-1) || (agt.indexOf("16bit")!=-1) || (agt.indexOf("windows 3.1")!=-1) || (agt.indexOf("windows 16-bit")!=-1) );
var is_win31 = ((agt.indexOf("windows 3.1")!=-1) || (agt.indexOf("win16")!=-1) || (agt.indexOf("windows 16-bit")!=-1));

var is_win98 = ((agt.indexOf("win98")!=-1) || (agt.indexOf("windows 98")!=-1));
var is_winnt = ((agt.indexOf("winnt")!=-1) || (agt.indexOf("windows nt")!=-1));
var is_win32 = (is_win95 || is_winnt || is_win98 || ((is_major >= 4) && (navigator.platform == "Win32")) || (agt.indexOf("win32")!=-1) || (agt.indexOf("32bit")!=-1));

var is_mac= (agt.indexOf("mac")!=-1);


/////////////////////////////////////
// Detect IE 4.5 on the mac
// Many Problems with this browser
/////////////////////////////////////


var is_ie45mac  = (is_mac && is_ie && (agt.indexOf("msie 5.0")==-1) && (agt.indexOf("msie 5.5")==-1) && (agt.indexOf("msie 4.5")!=-1));


//////////////////////////////////////////
// Flash 3, 4 AND 5 Detection
// Last Modified: 10-03-00
// NOT checking for enabledPlugin (buggy)
//////////////////////////////////////////


var is_flash5 = 0;
var is_flash4 = 0;
var is_flash3 = 0;


if (navigator.plugins["Shockwave Flash"]) {

	var plugin_version = 0;
	var plugin_description = navigator.plugins["Shockwave Flash"].description.split(" ");


	for (var i = 0; i < plugin_description.length; ++i) {

	if (isNaN(parseInt(plugin_description[i])))

	continue;

	plugin_version = plugin_description[i];

		}
	}

	if (plugin_version >= 5) {

	is_flash5 = 1;


	}


	if (plugin_version >= 4) {

	is_flash4 = 1;


	}


	if (plugin_version >= 3) {

	is_flash3 = 1;


	}


if (is_ie && is_win32) { // Check IE on windows for flash 3, 4 AND 5 using VB Script

	document.write('<SCRIPT LANGUAGE="VBScript"\>\n');
	document.write('on error resume next\n');
	document.write('is_flash5 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5")))\n');
	document.write('on error resume next\n');
	document.write('is_flash4 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.4")))\n');
	document.write('on error resume next\n');
	document.write('is_flash3 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.3")))\n');
	document.write('<'+'/SCRIPT> \n');
}


// -->
