// enables flash files in IE 7
	var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;

	function writeFlashTags(tileWidth, tileHeight, tileBgColor, swfURL, staticHTML) {


		if ( plugin ) {
			plugin = parseInt(plugin.description.substring(plugin.description.indexOf(".")-1)) >= 6;
		}
		else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && (navigator.userAgent.indexOf("Windows 95")>=0 || navigator.userAgent.indexOf("Windows 98")>=0 || navigator.userAgent.indexOf("Windows NT")>=0)) {
			document.write('<SCRIPT LANGUAGE=VBScript\> \n');
			document.write('on error resume next \n');
			document.write('plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6")))\n');
			document.write('<\/SCRIPT\> \n');
		}
		if ( plugin ) {
			document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="' + (location.protocol.toLowerCase()=='https:'?'https://':'http://') + 'download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="' + tileWidth + '" height="' + tileHeight + '">');
			document.write('<param name="movie" value="' + swfURL + '">');
			document.write('<param name="quality" value="high">');
			document.write('<param name="bgcolor" value="' + tileBgColor + '">');
			document.write('<param name="wmode" value="transparent">');
			document.write('<embed src="' + swfURL + '" quality="high" swLiveConnect="FALSE" bgcolor="' + tileBgColor + '" pluginspage="' + (location.protocol.toLowerCase()=='https:'?'https://':'http://') + 'www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + tileWidth + '" height="' + tileHeight + '" wmode="transparent"></embed>');
			document.write('</object>');
			document.write('<SCRIPT LANGUAGE="javascript">plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;</SCRIPT');
			document.write('>');
		} else if (!(navigator.appName && navigator.appName.indexOf("Netscape")>=0 && navigator.appVersion.indexOf("2.")>=0)){
			document.write( staticHTML );
			document.write('<SCRIPT LANGUAGE="javascript">plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;</SCRIPT');
			document.write('>');
		}
	}

