﻿/*Show Flash*/
function ShowFlashActive(Filename,FWidth,FHeight,Bg)
{
		html = "<OBJECT id='Shockwaveflash1' ";
		//html += "codeBase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,29,0'";		
		html += "codeBase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0'";
		//html +=	"height=\""+FHeight+"\" width=\""+FWidth+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" VIEWASTEXT>";
		html +=	"height=\""+FHeight+"\" width=\""+FWidth+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\">";
		//html += "<PARAM NAME=\"_cx\" VALUE=\"10848\">";
		//html +=	"<PARAM NAME=\"_cy\" VALUE=\"2646\">";
		//html += "<PARAM NAME=\"FlashVars\" VALUE=\"\">";
		html +=	"<PARAM NAME=\"Movie\" VALUE=\""+Filename+" \">";
		html +=	"<PARAM NAME=\"Src\" VALUE=\""+Filename+" \">";
		html +=	"<PARAM NAME=\"WMode\" VALUE=\"transparent\">";
		html += "<PARAM NAME=\"Play\" VALUE=\"-1\">";
		html +=	"<PARAM NAME=\"Loop\" VALUE=\"-1\">";
		html +=	"<PARAM NAME=\"Quality\" VALUE=\"High\">";
		html +=	"<PARAM NAME=\"SAlign\" VALUE=\"\">";
		html +=	"<PARAM NAME=\"Menu\" VALUE=\"-1\">";
		html +=	"<PARAM NAME=\"Base\" VALUE=\"\">";
		html +=	"<PARAM NAME=\"AllowScriptAccess\" VALUE=\"\">";
		html +=	"<PARAM NAME=\"Scale\" VALUE=\"ShowAll\">";
		html +=	"<PARAM NAME=\"DeviceFont\" VALUE=\"0\">";
		html +=	"<PARAM NAME=\"EmbedMovie\" VALUE=\"0\">";
		html +=	"<PARAM NAME=\"BGColor\" VALUE=\"\">";
		html +=	"<PARAM NAME=\"SWRemote\" VALUE=\"\">";
		html +=	"<PARAM NAME=\"MovieData\" VALUE=\"\">";
		html +=	"<PARAM NAME=\"SeamlessTabbing\" VALUE=\"1\">";
		html +=	"<PARAM NAME=\"Profile\" VALUE=\"0\">";
		html +=	"<PARAM NAME=\"ProfileAddress\" VALUE=\"\">";
		html +=	"<PARAM NAME=\"ProfilePort\" VALUE=\"0\">";
		html +=	"<EMBED width=\""+FWidth+"\" height=\""+FHeight+"\" src='"+Filename+"' quality='high'";
		//html +=	"bgcolor="+Bg+" TYPE='application/x-shockwave-flash'";
		if(FWidth == 285 || FHeight == 118)
		{
		    html +=	" wmode='transparent' TYPE='application/x-shockwave-flash'";
		}
		else
		{
		    html +=	" TYPE='application/x-shockwave-flash'";
		}
		html +=	"PLUGINSPAGE='http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash'></EMBED>";
		html +=	"</OBJECT>";
		if(window.navigator.appName.indexOf("Microsoft")>-1)
		{
			document.write(html);
		}
		else
		{
			document.write(html);
		}
}

function ShowHMTLFlashActive(Filename,FWidth,FHeight,Bg)
{
		html = "<OBJECT id='Shockwaveflash1' ";
		//html += "codeBase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,29,0'";		
		html += "codeBase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0'";
		//html +=	"height=\""+FHeight+"\" width=\""+FWidth+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" VIEWASTEXT>";
		html +=	"height=\""+FHeight+"\" width=\""+FWidth+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\">";
		//html += "<PARAM NAME=\"_cx\" VALUE=\"10848\">";
		//html +=	"<PARAM NAME=\"_cy\" VALUE=\"2646\">";
		//html += "<PARAM NAME=\"FlashVars\" VALUE=\"\">";
		html +=	"<PARAM NAME=\"Movie\" VALUE=\""+Filename+" \">";
		html +=	"<PARAM NAME=\"Src\" VALUE=\""+Filename+" \">";
		//html +=	"<PARAM NAME=\"WMode\" VALUE=\"transparent\">";
		html += "<PARAM NAME=\"Play\" VALUE=\"-1\">";
		html +=	"<PARAM NAME=\"Loop\" VALUE=\"-1\">";
		html +=	"<PARAM NAME=\"Quality\" VALUE=\"High\">";
		html +=	"<PARAM NAME=\"SAlign\" VALUE=\"\">";
		html +=	"<PARAM NAME=\"Menu\" VALUE=\"-1\">";
		html +=	"<PARAM NAME=\"Base\" VALUE=\"\">";
		html +=	"<PARAM NAME=\"AllowScriptAccess\" VALUE=\"\">";
		html +=	"<PARAM NAME=\"Scale\" VALUE=\"ShowAll\">";
		html +=	"<PARAM NAME=\"DeviceFont\" VALUE=\"0\">";
		html +=	"<PARAM NAME=\"EmbedMovie\" VALUE=\"0\">";
		html +=	"<PARAM NAME=\"BGColor\" VALUE=\"\">";
		html +=	"<PARAM NAME=\"SWRemote\" VALUE=\"\">";
		html +=	"<PARAM NAME=\"MovieData\" VALUE=\"\">";
		html +=	"<PARAM NAME=\"SeamlessTabbing\" VALUE=\"1\">";
		html +=	"<PARAM NAME=\"Profile\" VALUE=\"0\">";
		html +=	"<PARAM NAME=\"ProfileAddress\" VALUE=\"\">";
		html +=	"<PARAM NAME=\"ProfilePort\" VALUE=\"0\">";
		html +=	"<EMBED width=\""+FWidth+"\" height=\""+FHeight+"\" src='"+Filename+"' quality='high'";
		//html +=	"bgcolor="+Bg+" TYPE='application/x-shockwave-flash'";
		if(FWidth == 285 || FHeight == 118)
		{
		    html +=	" wmode='transparent' TYPE='application/x-shockwave-flash'";
		}
		else
		{
		    html +=	" TYPE='application/x-shockwave-flash'";
		}
		html +=	"PLUGINSPAGE='http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash'></EMBED>";
		html +=	"</OBJECT>";
		if(window.navigator.appName.indexOf("Microsoft")>-1)
		{
			return html;
		}
		else
		{
			return html;
		}
}
