/*
 CA Library
 Version: 1.3
 */
var m_isIE  = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;    // true if we're on ie
var m_isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false; // true if we're on windows
var m_jsVersion = 1.1;

var m_flash2Installed = false;
var m_flash3Installed = false;
var m_flash4Installed = false;
var m_flash5Installed = false;
var m_flash6Installed = false;
var m_flash7Installed = false;
var m_flash8Installed = false;
var m_flash9Installed = false;
var m_maxVersion = 9;             // highest version we can actually detect
var m_actualVersion = 0;          // version the user really has
var m_hasRightVersion = false;    // boolean. true if it's safe to embed the flash movie in the page
var m_requiredVersion = 7;   // Version the user needs to view site (max 9, min 2)

if(m_isIE && m_isWin)
{
	document.write('<scr' + 'ipt type="text/vbscript"\> \n');
	document.write('on error resume next \n');
	document.write('m_flash2Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.2"))) \n');
	document.write('m_flash3Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.3"))) \n');
	document.write('m_flash4Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.4"))) \n');
	document.write('m_flash5Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5"))) \n');  
	document.write('m_flash6Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6"))) \n');  
	document.write('m_flash7Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.7"))) \n');
	document.write('m_flash8Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.8"))) \n');
	document.write('m_flash9Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.9"))) \n');
	document.write('<\/scr' + 'ipt\> \n'); // break up end tag so it doesn't end our script
}

function detectFlash() 
{  
	if (navigator.plugins) 
	{
		if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) 
		{
			var isVersion2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
			var flashDescription = navigator.plugins["Shockwave Flash" + isVersion2].description;
			var flashVersion = parseInt(flashDescription.substring(16));
			m_flash2Installed = flashVersion == 2;    
			m_flash3Installed = flashVersion == 3;
			m_flash4Installed = flashVersion == 4;
			m_flash5Installed = flashVersion == 5;
			m_flash6Installed = flashVersion == 6;
			m_flash7Installed = flashVersion == 7;
			m_flash8Installed = flashVersion == 8;
			m_flash9Installed = flashVersion >= 9;
		}
	}
  
	for (var i = 2; i <= m_maxVersion; i++) 
		if (eval("m_flash" + i + "Installed") == true) m_actualVersion = i;
  
	if(navigator.userAgent.indexOf("WebTV") != -1) m_actualVersion = 4;  
  
	if (m_actualVersion >= m_requiredVersion) 
	{
		m_hasRightVersion = true;                
	} 
}


function validateFlashVersion(version)
{
	if (version >= 5)
	return true;
	else
	return false;
}
