if (typeof(MM_FlashInfo) != 'undefined') v_oFlashPlayer = new MM_FlashInfo();
v_oClientInfo = new Object();

cc_SupportNetscape = 0;
v_nRequiredFlash = 5;

function m_SetClientInfo(){

<!-- Browser -->
 if (navigator.appName == 'Microsoft Internet Explorer') v_oClientInfo.browser = 'e';
 else if (navigator.appName == 'Netscape') v_oClientInfo.browser = 'n';
 else v_oClientInfo.browser = -1;

<!-- Platform -->
 if (navigator.platform.indexOf('Win32') != -1) v_oClientInfo.os = 'win32'; 
 else if (navigator.platform.indexOf('SunOS') != -1) v_oClientInfo.os = 'SunOS';
 else v_oClientInfo.os = -1;

<!-- Java Support -->
// v_oClientInfo.java = navigator.javaEnabled();

 if (v_oClientInfo.browser != -1){

	<!-- Browser Version -->
	if (v_oClientInfo.browser == 'e'){
		v_oClientInfo.browserVer = parseFloat(navigator.appVersion.substring(navigator.appVersion.indexOf('MSIE') + 5.5, navigator.appVersion.indexOf('MSIE') + 8));
	}
	else if (v_oClientInfo.browser == 'n'){
		br = "n";

		if (navigator.userAgent.indexOf('Netscape6') != -1){
			v_oClientInfo.browserVer = navigator.userAgent.substring(navigator.userAgent.indexOf('Netscape6')+10,navigator.userAgent.length).replace(/\./g, '');
		}
		else if (navigator.userAgent.indexOf('Netscape/7') != -1){
			var l_nDelimit1 = navigator.userAgent.indexOf('Netscape/')+9;
			var l_nDelimit2 = navigator.userAgent.indexOf(' ', l_nDelimit1);
			if (l_nDelimit2 == -1) l_nDelimit2 = navigator.userAgent.length;
// 7-15-03			v_oClientInfo.browserVer = navigator.userAgent.substring(navigator.userAgent.indexOf('Netscape/')+9,navigator.userAgent.length).replace(/\./g, '');
			v_oClientInfo.browserVer = navigator.userAgent.substring(l_nDelimit1,l_nDelimit2).replace(/\./g, '');
		}
		else{
			v_oClientInfo.browserVer = 0;
		}

		if (v_oClientInfo.browserVer.length < 2) v_oClientInfo.browserVer = v_oClientInfo.browserVer + '0';
		if (v_oClientInfo.browserVer.length < 3) v_oClientInfo.browserVer = v_oClientInfo.browserVer + '0';
		v_oClientInfo.browserVer = parseInt(v_oClientInfo.browserVer);
	}

	<!-- Cookie Support -->
	if (v_oClientInfo.browser == 'e'){

		if (typeof(isPeripheralWindow) == 'undefined') var isPeripheralWindow = 0;

		if(isPeripheralWindow != 1){
			v_oClientInfo.persistentCookie = navigator.cookieEnabled;

			if (typeof(v_cAllowCookies) == 'undefined') v_cAllowCookies = true;
			if (v_cAllowCookies) document.cookie = 'scookietest=1';

			if (document.cookie.indexOf('scookietest=1') == -1) v_oClientInfo.sessionCookie = 0;
			else v_oClientInfo.sessionCookie = 1;
			if (v_cAllowCookies) document.cookie = 'scookietest=0';
		}
		else{
			v_oClientInfo.sessionCookie = 1;
		}
	}
	else if (v_oClientInfo.browser == 'n'){
		var l_dToday, l_dThisYear, l_dExpireDate;

		if (typeof(v_cAllowCookies) == 'undefined') v_cAllowCookies = true;
		if (v_cAllowCookies) document.cookie = 'scookietest=1';

		if (document.cookie.indexOf('scookietest=1') == -1) v_oClientInfo.sessionCookie = 0;
		else v_oClientInfo.sessionCookie = 1;
		if (v_cAllowCookies) document.cookie = 'scookietest=0';

		l_dToday = new Date();
		l_dThisYear = l_dToday.getFullYear()
		l_dExpireDate = new Date(l_dThisYear, 11, 31);
		if (v_cAllowCookies) document.cookie = 'cookietest=1;expires=' + l_dExpireDate.toGMTString();
		if (document.cookie.indexOf('cookietest=1') == -1) v_oClientInfo.persistentCookie = 0;
		else v_oClientInfo.persistentCookie = 1;
		if (v_cAllowCookies) document.cookie = 'cookietest=0;expires=Fri, 31 Dec 1999 23:59:59 GMT';
	}
 }
 else{
	v_oClientInfo.browserVer = -1;
	v_oClientInfo.persistentCookie = -1;
	v_oClientInfo.sessionCookie = -1;
 }
}

m_SetClientInfo();

function m_DisplaySystemInfo(){
 var l_cMsg;

 l_cMsg = 'Platform: ' + v_oClientInfo.os;

 if (v_oClientInfo.browser == 'e') l_cMsg += '\nBrowser: Internet Explorer ' + v_oClientInfo.browserVer;
 else if (v_oClientInfo.browser == 'n') l_cMsg += '\nBrowser: Netscape ' + v_oClientInfo.browserVer;
 else 

 if (v_oFlashPlayer.installed) l_cMsg += '\nFlash Player: ' + v_oFlashPlayer.version;
 else l_cMsg += '\nFlash Player: Not Installed';

 if (v_oClientInfo.sessionCookie) l_cMsg += '\nSession Cookies: Enabled';
 else l_cMsg += '\nSession Cookies: Not Enabled';

 if (v_oClientInfo.persistentCookie) l_cMsg += '\nPersistent Cookies: Enabled';
 else l_cMsg += '\nPersistent Cookies: Not Enabled';

// if (v_oClientInfo.java) l_cMsg += '\nJava: Enabled';
// else l_cMsg += '\nJava: Not Enabled';

 alert(l_cMsg);
}

function m_CheckRequirements(p_lWriteMsg){

 var l_lPass = 1;
 var l_cMsg = '';
// l_cMsg += "<hr size=1 width=100%><b><font size=+1>You do not meet the following system requirements: </font></b><br><br><font size=-1>";
 l_cMsg += "<b><font size=+3 color='red'>Alert!</font></b><br><br><font size=-1>";

 if (v_oClientInfo.os != 'win32'){
	l_cMsg += '<hr size=1 width=100%>Windows® 95, 98, 2000, XP, or Windows NT® 4.0 is required.<br>';
	l_lPass = 0;
 }

 if ((v_oClientInfo.browser != 'e' && v_oClientInfo.browser != 'n') || (v_oClientInfo.browser == 'e' && v_oClientInfo.browserVer < 5) || (v_oClientInfo.browser == 'n' && (v_oClientInfo.browserVer < 623 || v_oClientInfo.browserVer >= 710 || !cc_SupportNetscape))){
	if (cc_SupportNetscape) l_cMsg += '<hr size=1 width=100%>Internet Explorer versions 5, 5.5, or 6 or Netscape Navigator 6.2.3 - 7.0x needs to be installed<br>';
	else l_cMsg += '<hr size=1 width=100%>Internet Explorer versions 5, 5.5, or 6<br>';
	l_lPass = 0;
 }

/* 10-23-03
 if (v_oFlashPlayer.installed == false || v_oFlashPlayer.version <= 4){
	l_cMsg += "<hr size=1 width=100%>Macromedia Flash player 5 or later (Flash player 6 strongly recommended) needs to be installed. <a href='http://www.macromedia.com/go/getflashplayer/' target='_blank'>Click here to get the Player.</a><br>";
	l_lPass = 0;
 }
 if (v_oFlashPlayer.version < 6){
*/

 if (v_oFlashPlayer.installed == false || v_oFlashPlayer.version < v_nRequiredFlash){
	l_cMsg += "<hr size=1 width=100%>Macromedia Flash player " + v_nRequiredFlash + " or later is required. <a href='http://www.macromedia.com/go/getflashplayer/' target='_blank'>Click here to get the Player.</a><br>";
	l_lPass = 0;
 }

 if (v_oClientInfo.persistentCookie == 0 || v_oClientInfo.sessionCookie == 0){
	l_cMsg += '<hr size=1 width=100%>Cookies need to be enabled';
	l_lPass = 0;
 }

 l_cMsg += "<br><br>For additional Help:<br><a href='JavaScript:m_Requirments();'>Click here for System Requirements</a><br><a href='JavaScript:m_FAQ();'>Click here for Technical Support and FAQ</a><br><br>";
 //l_cMsg += "<hr size=1 width=100%></font><font size='+1'><b><br><br>If you meet all the requirements above <a href='JavaScript:m_StartCourse();'>click here to start the course.</a></b>";

 if (l_lPass == 0 && p_lWriteMsg) document.write(l_cMsg);

 return l_lPass;
}

function m_Requirments(){
 window.open(cc_cXMLPlayerLocation + 'system_req.htm', '_blank')
}

function m_FAQ(){
 window.open(cc_cXMLPlayerLocation + 'help/faq.htm', '_blank')
}