<!--

// Need to configure the redirect URLs
var g_flashPage = "flashpage.html"  // the location of the flash movie page
var g_noFlashPage = "noflash.html"  // send user here if they don't have the plugin or we can't detect it

var f_flashinstalled = 0;
var f_flashversion = 0;
var f_MSDetect = "false";
if (navigator.plugins && navigator.plugins.length)
{
	l_o_plg = navigator.plugins["Shockwave Flash"];
	if (l_o_plg)
	{
		f_flashinstalled = 2;
		if (l_o_plg.description)
		{
			l_o_plgdesc = l_o_plg.description;
            //alert(l_o_plgdesc); // Shockwave Flash 10.1 d51
			f_flashversion = l_o_plgdesc.substring(
                l_o_plgdesc.indexOf(' Flash ')+7,l_o_plgdesc.indexOf('.'));
		}
	}
	else
    {
		f_flashinstalled = 1;
    }
        
	if (navigator.plugins["Shockwave Flash 2.0"])
	{
		f_flashinstalled = 2;
		f_flashversion = 2;
	}
}
else if (navigator.mimeTypes && navigator.mimeTypes.length)
{
	l_o_plg = navigator.mimeTypes['application/x-shockwave-flash'];
	if (l_o_plg && l_o_plg.enabledPlugin)
		f_flashinstalled = 2;
	else
		f_flashinstalled = 1;
}
else
{
	f_MSDetect = "true";
}


// check the browser...we're looking for ie/win
var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;        // true if we're on ie
var isWin = (navigator.appVersion.indexOf("Windows") != -1) ? true : false; // true if we're on windows

// write vbscript detection if we're not on mac.
if(isIE && isWin) { // don't write vbscript tags on anything but ie win
    document.write('<SCR'+'IPT LANGUAGE=VBScript\> \n');
    document.write('on error resume next \n');
    
    document.write('If f_MSDetect = "true" Then \n');
    document.write('	For i = 2 to 15 \n');
    document.write('		If Not(IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & i))) Then \n');
    document.write('		Else \n');
    document.write('			f_flashinstalled = 2 \n');
    document.write('			f_flashversion = i \n');
    document.write('		End If \n');
    document.write('	Next \n');
    document.write('End If \n');
    document.write('If f_flashinstalled = 0 Then \n');
    document.write('    f_flashinstalled = 1 \n');
    document.write('End If \n');
    
    document.write('</SCR'+'IPT\> \n'); // break up end tag so it doesn't end our script
}

// This is the method called from live generated sites on flash animation
function detectUserFlash() {
    
    if(f_flashinstalled==1) // No flash installed
        window.location = g_noFlashPage;
    else // Flash installed
        window.location = g_flashPage;
        
}
// -->
