function flash(pics,links,texts){
	this.pics=pics;
	this.links=links;
	this.texts=texts;
	this.play=function(){
		var flash_width=170;
		var pic_height=130;
		var text_height=60;
		var text_width=160;
		var flash_height = pic_height+text_height
		document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"  width="'+ flash_width +'"height="'+ flash_height +'">');
		document.write('<param name="quality" value="high"> <param name="wmode" value="transparent"> ');
		document.write('<param name="allowScriptAccess" value="sameDomain"><param name="SRC" value="/images/flash.swf">');
		document.write('<param name="menu" value="false">');
		document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+flash_width+'&borderheight='+pic_height+'&textheight='+text_height+'">');
		document.write('<embed src="./images/flash.swf" wmode="transparent"  quality="high" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+flash_width+'&borderheight='+pic_height+'&textheight='+text_height+'&textwidth='+text_width+'" menu="false" bgcolor="#F0F0F0" quality="high" width="'+ flash_width +'" height="'+ flash_height+'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash">');		
		document.write('</object>');
	}
}


var pic='/xwdt/tpxw/images/2009/10/27/61379D2D2C3ABE90F27F001A29422844.jpg|/xwdt/tpxw/images/2009/08/20/760448E44767B3EB47BB9D5E5EF8183A.jpg|/xwdt/tpxw/images/2009/05/20/1240A79F5AA022E745CC71BAA1552508.jpg';

var link='/xwdt/tpxw/10/562860.shtml|/xwdt/tpxw/08/533140.shtml|/xwdt/tpxw/05/259861.shtml'

var text='首届“2009加拿大--中国工程技<br>术展览会”在温哥华举办 陈健<br>　副部长出席开幕式并致辞　|高虎城副部长和俄罗斯工贸部<br>副部长马捷罗夫共同主持中俄<br>森林资源开发和利用合作常设<br>　　工作小组第八次会议　　|5月14日，陈健副部长与驻土<br>　中资企业和机构座谈　　'
var theflash=new flash(pic,link,text);
theflash.play();
