// Flash Player 6 Detect
var url_file = '';
var MM_FlashPlayerVersion = 6;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) {
		var words = navigator.plugins["Shockwave Flash"].description.split(" ");
	    for (var i = 0; i < words.length; ++i)
	    {
		if (isNaN(parseInt(words[i])))
		continue;
		var MM_PluginVersion = words[i]; 
	    }
		var MM_FlashPlayerInstalled = MM_PluginVersion >= MM_FlashPlayerVersion;
	}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && (navigator.appVersion.indexOf("Win") != -1)) {
	document.write('<scr' + 'ipt language=VBScript\> \n'); //FS hide this from IE4.5 Mac by splitting the tag
	document.write('on error resume next \n');
	document.write('MM_FlashPlayerInstalled = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_FlashPlayerVersion)))\n');
	document.write('</scr' + 'ipt\> \n');
}

// Hook for Internet Explorer. the ActiveX player raises events
// that need to be handled via vbscript. calls the eqivalent JS function
// that does the work. you need 1 of these functions per swf instance on the page.
function writeVBHandler(id)
{
	 var s = '';
	
	if (navigator.appName && 
	  navigator.appName.indexOf("Microsoft") != -1 &&
	  navigator.userAgent.indexOf("Windows") != -1 && 
	  navigator.userAgent.indexOf("Windows 3.1") == -1) 
	{	 
	  s += '<SCRIPT LANGUAGE=VBScript\> \n';
	  s += 'on error resume next \n';
	  s += 'sub '+id+'_FSCommand(ByVal command, ByVal args)\n';
	  s += ' call '+id+'_DoFSCommand(command,args)\n';
	  s += 'end sub\n';
	  s += '</SCRIPT\> \n';	  	
	}
	return s;
}