function addFlash(player,purl)
{
	var w=694;
	var h=520;//440
	var pary=purl.split('$');
	var plen=pary.length;
	switch(plen)
	{
		case 1:break;
		
		case 3:
		player=pary[2];
		purl=pary[1];
		break;
		
		default:
		alert('²¥·Å²ÎÊý´íÎó');
		return;
		break;
	}
	switch(player)
	{
		case 'tudou':
		document.write ("<OBJECT ID='flashgame' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0' width='"+w+"' height='"+h+"'>\n");
		document.write ("<PARAM NAME='allowScriptAccess' VALUE='never'>\n");
		document.write ("<PARAM NAME='movie' VALUE='http://js.tudouui.com/bin/douwan/douwanPlayer_3.swf?iid=" + purl + "'>\n");
		document.write ("<PARAM NAME='allowFullScreen' VALUE='true'>\n");
		document.write ("<PARAM NAME='allowNetworking' VALUE='internal'>\n");
		document.write("<embed id='flashgame1' name='flashgame' src='http://js.tudouui.com/bin/douwan/douwanPlayer_3.swf?iid=" + purl + "' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+w+"' height='"+h+"' allowScriptAccess='never' allowNetworking='internal'></embed>");
		document.write ("<PARAM NAME='quality' VALUE='high'>\n");
		document.write ("</OBJECT>\n");
		break;
		case 'youku':
		document.write('<embed type="application/x-shockwave-flash" src="http://static.youku.com/v1.0.0182/v/swf/qplayer.swf" id="flashgame1" name="flashgame" quality="high" flashvars="isShowRelatedVideo=false&amp;showAd=0&amp;show_pre=1&amp;show_next=1&amp;isAutoPlay=false&amp;isDebug=false&amp;winType=interior&amp;playMovie=true&amp;MMControl=false&amp;MMout=false&amp;VideoIDS='+purl+'" wmode="transparent"  allowFullScreen="true" allowscriptaccess="never" width="'+w+'" height="'+h+'">');break;
		case 'sina':
		document.write ("<OBJECT ID='flashgame' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0' width='"+w+"' height='"+h+"'>\n");
		document.write ("<PARAM NAME='allowScriptAccess' VALUE='never'>\n");
		document.write ("<PARAM NAME='movie' VALUE='http://vhead.blog.sina.com.cn/player/bn_topic.swf?vid=" + purl + "&clip_id=&imgurl=&auto=1&vblog=1&type=0&tabad=1'>\n");
		document.write ("<PARAM NAME='allowFullScreen' VALUE='true'>\n");
		document.write ("<PARAM NAME='allowNetworking' VALUE='internal'>\n");
		document.write("<embed id='flashgame1' name='flashgame' src='http://vhead.blog.sina.com.cn/player/bn_topic.swf?vid=" + purl + "&clip_id=&imgurl=&auto=1&vblog=1&type=0&tabad=1' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+w+"' height='"+h+"' allowScriptAccess='never' allowNetworking='internal'></embed>");
		document.write ("<PARAM NAME='quality' VALUE='high'>\n");
		document.write ("</OBJECT>\n");
		break;
		case 'ku6':
			document.write('<embed type="application/x-shockwave-flash" src="http://player.ku6cdn.com/default/out/pV2.7.3.swf" id="flashgame1" name="flashgame" quality="high" flashvars="ver=108&amp;jump=0&amp;api=1&amp;auto=1&amp;color=0&amp;deflogo=0&amp;flag=hd&amp;adss=0&amp;vid='+purl+'&amp;type=v" wmode="transparent" allowscriptaccess="always" allowfullscreen="true" width="'+w+'" height="'+h+'">');break;
		case '56':
		document.write ("<OBJECT ID='flashgame' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0' width='"+w+"' height='"+h+"'>\n");
		document.write ("<PARAM NAME='allowScriptAccess' VALUE='never'>\n");
		document.write ("<PARAM NAME='movie' VALUE='http://player.56.com/" + purl + ".swf'>\n");
		document.write ("<PARAM NAME='allowFullScreen' VALUE='true'>\n");
		document.write ("<PARAM NAME='allowNetworking' VALUE='internal'>\n");
		document.write("<embed id='flashgame1' name='flashgame' src='http://player.56.com/" + purl + ".swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+w+"' height='"+h+"' allowScriptAccess='never' allowNetworking='internal'></embed>");
		document.write ("<PARAM NAME='quality' VALUE='high'>\n");
		document.write ("</OBJECT>\n");
		break;
		case 'sohu':
		document.write ("<OBJECT ID='flashgame' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0' width='"+w+"' height='"+h+"'>\n");
		document.write ("<PARAM NAME='allowScriptAccess' VALUE='always'>\n");
		document.write ("<PARAM NAME='movie' VALUE='http://share.vrs.sohu.com/" + purl + "/v.swf'>\n");
		document.write ("<PARAM NAME='allowFullScreen' VALUE='true'>\n");
		document.write ("<PARAM NAME='allowNetworking' VALUE='internal'>\n");
		document.write ("<embed id='flashgame1' name='flashgame' src='http://share.vrs.sohu.com/" + purl + "/v.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+w+"' height='"+h+"' allowScriptAccess='always' allowNetworking='internal'></embed>");
		document.write ("<PARAM NAME='quality' VALUE='high'>\n");
		document.write ("</OBJECT>\n");break;
		case 'qiyi':
		document.write ("<OBJECT ID='flashgame' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0' width='"+w+"' height='"+h+"'>\n");
		document.write ("<PARAM NAME='allowScriptAccess' VALUE='never'>\n");
		document.write ("<PARAM NAME='movie' VALUE='http://www.qiyi.com/player/20110506184000/player.swf?vid="+purl+"'>\n");
		document.write ("<PARAM NAME='allowFullScreen' VALUE='true'>\n");
		document.write ("<PARAM NAME='allowNetworking' VALUE='internal'>\n");
		document.write("<embed id='flashgame1' name='flashgame' src='http://www.qiyi.com/player/20110506184000/player.swf?vid=" + purl + "' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+w+"' height='"+h+"' allowScriptAccess='never' allowNetworking='internal'></embed>");
		document.write ("<PARAM NAME='quality' VALUE='high'>\n");
		document.write ("</OBJECT>\n");
		break;
		case 'cctv':
			document.write('<object id="flashgame" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+w+'" height="'+h+'"><param name="movie" value="http://space.tv.cctv.com/playcfg/CCTVvideoplayer.swf?id='+purl+'&amp;site=http://space.tv.cctv.com&amp;method=http&amp;share=1"><param name="allowFullScreen" value="true"><param name="flashvars" value=""><param name="quality" value="high"><param name="bgcolor" value="#000"><param name="menu" value="false"><param name="SCALE" value="exactfit"><param name="allowScriptAccess" value="always"><embed id="flashgame1" name="flashgame" src="http://space.tv.cctv.com/playcfg/CCTVvideoplayer.swf?id='+purl+'&amp;site=http://space.tv.cctv.com&amp;method=http&amp;share=1" flashvars="" allowscriptaccess="always" quality="high" bgcolor="#000" allowfullscreen="true" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="'+w+'" height="'+h+'"></object>');break;
		case 'cntv':
			document.write("<embed id='flashgame1' width='"+w+"' height='"+h+"' flashvars='"+purl+"' allowNetworking='internal' allowFullScreen='true' allowscriptaccess='never' menu='false' quality='best' bgcolor='#000000' name='flashgame' src='http://player.cntv.cn/standard/cntvOutSidePlayer.swf?v=0.170.9.6.0.1' type='application/x-shockwave-flash'/>");break;
		default:
		document.write ("<OBJECT ID='flashgame' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0' width='"+w+"' height='"+h+"'>\n");
		document.write ("<PARAM NAME='allowScriptAccess' VALUE='never'>\n");
		document.write ("<PARAM NAME='movie' VALUE='" + purl + "'>\n");
		document.write ("<PARAM NAME='allowFullScreen' VALUE='true'>\n");
		document.write ("<PARAM NAME='allowNetworking' VALUE='internal'>\n");
		document.write("<embed id='flashgame1' name='flashgame' src='" + purl + "' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+w+"' height='"+h+"' allowScriptAccess='never' allowNetworking='internal'></embed>");
		document.write ("<PARAM NAME='quality' VALUE='high'>\n");
		document.write ("</OBJECT>\n");
		break;
	}
}

document.write ("<OBJECT ID='flashgame'  classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0' width='650' height='498'>\n");
document.write ("<PARAM NAME='movie' VALUE='" + str + "'>\n");
document.write ("<PARAM NAME='allowFullScreen' VALUE='true'>\n");
document.write ("<PARAM NAME='allowScriptAccess' VALUE='never'>\n");
document.write ("<PARAM NAME='allowNetworking' VALUE='internal'>\n");
document.write ("<PARAM NAME='menu' VALUE='false'>\n");
document.write ("<PARAM NAME='quality' VALUE='high'>\n");
document.write("<embed name='flashgame' ID='flashgame1' src='" + str + "' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='650' height='498' allowScriptAccess='never' allowNetworking='internal' menu='false'></embed>");
document.write ("</OBJECT>\n");

