﻿
//Flash输出
function insertFlash(elm, url, w, h) {
 if (!document.getElementById(elm)) return;
 var str = '';
 str += '<object width="'+ w +'" height="'+ h +'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0">';
 str += '<param name="movie" value="'+ url +'">';
 str += '<param name="wmode" value="transparent">';
 str += '<param name="quality" value="autohigh">';
 str += '<embed width="'+ w +'" height="'+ h +'" src="'+ url +'" quality="autohigh" wmode="transparent" type="application/x-shockwave-flash" plugspace="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed>';
 str += '</object>';
 document.getElementById(elm).innerHTML = str;
}

function insertFlashSecode(elm) { 
 var str = '';
 str += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id=scriptmain name=scriptmain codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="263" height="274">';
 str += '<param name="movie" value="swf/bcastr.swf?bcastr_xml_url=xml/bcastr.xml">';
	 str += '<param name="quality" value="high">';
	 str += '<param name=scale value=noscale>';
	 str += '<param name="LOOP" value="false">';
	 str += '<param name="menu" value="false">';
	 str += '<param name="wmode" value="transparent">';
	 str += '<embed src="swf/bcastr.swf?bcastr_xml_url=xml/bcastr.xml" width="263" height="274" loop="false" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" salign="T" name="scriptmain" menu="false" wmode="transparent"></embed>';
 str += '</object>';
 document.getElementById(elm).innerHTML = str;
}

