function flashPlay1 (pics, texts, links, width, height)
{
	var flash_width		= width;
	var flash_height	= height;
	var text_height		= 22;
	var swf_height		= flash_height + text_height;

	var banner			= '<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="/images/flash1.swf"><param name="quality" value="high"><param name="bgcolor" value="#FFFFFF">'
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="' + flash_width + '" height="' + swf_height + '">');
	document.write(banner);
	document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
	document.write('<param name="FlashVars" value="pics=' + pics + '&links=' + links + '&texts=' + texts + '&borderwidth=' + flash_width + '&borderheight=' + flash_height + '&textheight=' + text_height + '">');
	document.write('<embed src="/images/flash1.swf" quality="high" allowScriptAccess="sameDomain" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="opaque" width="' + flash_width + '" height="' + swf_height + '" bgcolor="#FFFFFF" menu="false" FlashVars="pics=' + pics + '&links=' + links + '&texts=' + texts + '&borderwidth=' + flash_width + '&borderheight=' + flash_height + '&textheight=' + text_height + '"></embed>');
	document.write('</object>');
}

function flashPlay2 (pics, texts, links, width, height)
{
	var flash_width		= width;
	var flash_height	= height;
	var timeOut			= 5000;  //图片播放速度
	var playMode		= 1;  //播放模式,"0"手动，"1"自动
	var txtColor		= "0xFFFFFF";  //标题颜色
	var txtColor2		= "0xFF0000";  //鼠标触碰标题颜色
	var titleY			= -200;  //标题Y轴
	var btnVisible		= 1;  //按钮可见，"0"不可见，"1"可见
	var btnColor		= "0xFF6600";  //按钮触碰或点击颜色
	var btnWidth		= 20;  //按钮宽
	var btnHeight		= 20;  //按钮高
	var btnInterval		= 5;  //按钮间隔
	var btnX			= 1;  //按钮X轴
	var btnY			= 5;  //按钮Y轴

	var flashVars = "&flashWidth=" + flash_width + "&flashHeight=" + flash_height + "&image=" + pics + "&title=" + texts + "&url=" + links + "&timeOut=" + timeOut + "&playMode=" + playMode + "&txtColor=" + txtColor + "&txtColor2=" + txtColor2 + "&titleY=" + titleY + "&btnVisible=" + btnVisible + "&btnColor=" + btnColor + "&btnWidth=" + btnWidth + "&btnHeight=" + btnHeight + "&btnInterval=" + btnInterval + "&btnX=" + btnX + "&btnY=" + btnY;
	document.write('<object codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="' + flash_width + '" height="' + flash_height + '" align="left" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" ><param name="FlashVars" value="flashVars=' + flashVars + '" /> <param name="movie" value="/images/flash2.swf" /> <param name="quality" value="high" /> <param name="play" value="true" /> <param name="loop" value="true" /> <param name="scale" value="noscale" /> <param name="wmode" value="window" /> <param name="devicefont" value="false" /> <param name="bgcolor" value="#999999" /> <param name="menu" value="true" /> <param name="allowFullScreen" value="false" /> <param name="allowScriptAccess" value="sameDomain" /> <param name="salign" value="lt" /> <embed FlashVars="flashVars=' + flashVars + '" width="' + flash_width + '" height="' + flash_height + '" src="/images/flash2.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" align="left" play="true" loop="true" scale="noscale" wmode="window" devicefont="false" bgcolor="#999999" menu="true" allowFullScreen="false" allowScriptAccess="sameDomain" salign="lt" type="application/x-shockwave-flash" > </embed> </object>');
}
