function displayFlash(map_name, img_height, img_width, img_path, alt_img_path, alt_img_height, alt_img_width, curAlignment, imgName){
	var MM_contentVersion = 5;
	var output = "";
	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_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
	}else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0
	   && (navigator.appVersion.indexOf("Win") != -1)) {
		var MM_FlashCanPlay = checkFlash(MM_contentVersion)
	}
	curAlignment = (curAlignment == "")? "":'align="' + curAlignment + '"'
	if ( MM_FlashCanPlay ) {
		output = output + '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" id="' + map_name + '" width="' + img_width + '" height="' + img_height + '" align="' + curAlignment + '">';
		output = output + '<param name="movie" value="' + img_path + '"/><param name="quality" value="high"/>';
		output = output + '<param name="wmode" value="transparent"/>';
		output = output + '<embed wmode="transparent" src="' + img_path + '" quality="high" width="' + img_width + '" height="' + img_height + '" name="' + map_name + '" ' + curAlignment + ' type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>';
		output = output + '</object>';
		//alert("output: " + output + "");
		document.write (output);
	}else{
		displayImage(alt_img_path,alt_img_height,alt_img_width,map_name,curAlignment,imgName);
	}
}
function displayImage(path, height, width, map_name, curAlignment, imgName){
	var output = "";
	output = '<img name="' + imgName + '" src="' + path + '" width="' + width + '" height="' + height + '" border="0" usemap="#' + map_name + '" border="0" ' + curAlignment + '/>';
	document.write (output);
}

