//调用flash代码，防止出现"单击以激活并使用此控件"提示
function LoadFlash(url,width,Height) 
{ 
   var FlashCode = "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0\" width=\""+width+"\" height=\""+Height+"\"><param name=movie value=\""+url+"\"><param name=\"wmode\" value=\"opaque\"><param name=quality value=high><embed src=\""+url+"\" quality=high pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\""+width+"\" height=\""+Height+"\"></embed></object>";

   document.write(FlashCode); 
} 


//调用flash滚动图片代码，防止出现"单击以激活并使用此控件"提示
function LoadFlashRollPic(SWFUrl,PicWidth,PicHeight,TextHeight,BgColor,PicUrlsLinksTextsStr) 
{ 
   var tempArray1;
   var tempArray2;
   var tempPicUrls = "";
   var tempPicLinks = "";
   var tempPicTexts = "";   
   var temp;
   var i;

   if (PicUrlsLinksTextsStr=="")
   {   document.write(""); 
   }
   else
   {
	   tempArray1 = PicUrlsLinksTextsStr.split(";;");
       
	   for (i=0; i<tempArray1.length; i++)
	   {   
		   tempArray2 = tempArray1[i].split("||");
           tempPicUrls = tempPicUrls + "|" + tempArray2[0];
		   tempPicLinks = tempPicLinks + "|" + tempArray2[1];
		   tempPicTexts = tempPicTexts + "|" + tempArray2[2];
	   }
       if (tempPicUrls!="") {  tempPicUrls = tempPicUrls.substr(1,tempPicUrls.length-1); }
	   if (tempPicLinks!="") {  tempPicLinks = tempPicLinks.substr(1,tempPicLinks.length-1); }
	   if (tempPicTexts!="") {  tempPicTexts = tempPicTexts.substr(1,tempPicTexts.length-1); }

	   var FlashCode = "<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=\"" + PicWidth + "\" height=\"" + (PicHeight + TextHeight) + "\"><param name=\"allowScriptAccess\" value=\"sameDomain\"><param name=\"movie\" value=\"" + SWFUrl + "\"><param name=\"quality\" value=\"high\"><param name=\"bgcolor\" value=\"" + BgColor + "\"><param name=\"menu\" value=\"false\"><param name=\"wmode\" value=\"opaque\"><param name=\"FlashVars\" value=\"pics=" + tempPicUrls + "&links=" + tempPicLinks + "&texts=" + tempPicTexts + "&borderwidth=" + PicWidth + "&borderheight=" + PicHeight + "&textheight=" + TextHeight + "\"></object>";
	   document.write(FlashCode);
   }
} 

