var MM_FlashCanPlay = true;


function writeSWF(pFlashCanPlay, pSWF, pIMG, pWidth, pHeight, pFlashVars) {
	if (pFlashCanPlay) {
		var toWrite = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="swfWidth" height="swfHeight"><param name="wmode" value="transparent" /><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="swfName" /><param name="quality" value="high" /><param name="FlashVars" value=';
		toWrite += "'" + pFlashVars + "'";
		toWrite += '><embed src="swfName" width="swfWidth" height="swfHeight" wmode="transparent" quality="high" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars=';
		toWrite += "'" + pFlashVars + "'";
		toWrite += '/></object>';
		toWrite = toWrite.replace("swfName", pSWF);
		toWrite = toWrite.replace("swfName", pSWF);
		toWrite = toWrite.replace("swfWidth", pWidth);
		toWrite = toWrite.replace("swfWidth", pWidth);
		toWrite = toWrite.replace("swfHeight", pHeight);
		toWrite = toWrite.replace("swfHeight", pHeight);

	} else {
		var toWrite = '<img src="imgPath" width="imgWidth" height="imgHeight" alt="Flash$B$,:F@8$G$-$^$;$s!#(B" border=0>';
		toWrite = toWrite.replace("imgPath", pIMG);
		toWrite = toWrite.replace("imgWidth", pWidth);
		toWrite = toWrite.replace("imgWidth", pWidth);
	}
	//alert(toWrite);
	document.write(toWrite);
}

