function WriteFlash(src,x_width,y_height,src2,z_align)
{
	var strImg = "<IMG SRC=\'" + src2 + "\' BORDER=\'0\' ";
	if (x_width != "" && y_height != "")	
	{
		strImg += " WIDTH=\'" + x_width + "\' HEIGHT=\'" + y_height + "\' ";	
	}
	if (z_align != "")	
	{
		strImg += " align=\'" + z_align + "\' ";
	}		
	strImg += " >";

	if ( MM_checkPlugin('Shockwave Flash',true)	)
	{		
	
		var strObj = "<OBJECT CLASSID=\'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\' CODEBASE=\'https://active.macromedia.com/flash/cabs/swflash.cab#version=3,0,0,11\' ";
		if (x_width != "" && y_height != "")	
		{
			strObj += " WIDTH=\'" + x_width + "\' HEIGHT=\'" + y_height + "\' ";
		}
		if (z_align != "")	
		{
			strObj += " ALIGN=\'" + z_align + "\' ";
		}		
		strObj += " >";
		document.write(strObj);
		document.write("<PARAM NAME=\'Movie\' VALUE=\'" + src + "\'>");
		document.write("<PARAM NAME=\'quality\' VALUE=\'high\'>");
		document.write("<PARAM NAME=\'Loop\' VALUE=\'true\'>");
		document.write("<PARAM NAME=\'play\' VALUE=\'true\'>");
		document.write("<PARAM NAME=\'WMode\' VALUE=\'Transparent\'>");

		//If this browser understands the mimeTypes property and recognizes the MIME Type //"application/x-shockwave-flash"...
		if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]){
			//...write out the following <EMBED> tag into the document.
		
			var strEmbed = "<EMBED SRC=\'" + src + "\' LOOP=\'true\' QUALITY=\'high\' WMode=\'Transparent\'";
			if (x_width != "" && y_height != "")	
			{
				strEmbed += " WIDTH=\'" + x_width + "\' HEIGHT=\'" + y_height + "\' ";
			}
			if (z_align != "")	
			{
				strEmbed += " ALIGN=\'" + z_align + "\' ";
			}
			strEmbed += " />";
			document.write(strEmbed);
		}

		//Otherwise,...
		else {
		

		//...write out the following <IMG> tag into the document. The image need
		//not be the same size as the Flash Player movie, but it may help you lay out the
		//page if you can predict the size of the object reliably.
			document.write(strImg);	
						
		}
		document.write("</OBJECT>");
	}
	else
	{
		document.write(strImg);	
	}	
}

function MM_checkPlugin(plgIn, autoGo) { //v4.0
  var isFlash = true ;
  var ok=false; document.MM_returnValue = false;
  with (navigator) if (appName.indexOf('Microsoft')==-1 || (plugins && plugins.length)) {
    ok=(plugins && plugins[plgIn]);
  } else if (appVersion.indexOf('3.1')==-1) { //not Netscape or Win3.1
    if (plgIn.indexOf("Flash")!=-1 && window.MM_flash!=null){
		 ok=window.MM_flash;
		 isFlash = true;
    }
    else if (plgIn.indexOf("Director")!=-1 && window.MM_dir!=null) {
		ok=window.MM_dir;
		isFlash = true;
	}
    else ok=autoGo; }
  if (!ok)   {

	isFlash= false;
  }
  
return isFlash;

}



