﻿function LoadFlash(url,wmode,width,Height)
{ 
flash1.innerHTML='<embed src="' + url + '" wmode=' + wmode +
  ' quality="high" pluginspage=http://www.macromedia.com/go/getflashplayer type="application/x-shockwave-flash" width="' + width + 
  '" height="' + Height + '"></embed>';   
}
function LoadFlash2()
{ //smile 2006.3.20
 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="'+ focus_width +'" height="'+ swf_height +'">');
 document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="focus.swf"> <param name="quality" value="high"><param name="bgcolor" value="#E8E8E8">');
 document.write('<param name="menu" value="false"><param name=wmode value="transparent">');
 document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');
 document.write('<embed src="focus.swf" wmode="transparent" FlashVars="texts='+texts+'&pics='+pics+'&links='+links+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#071923" quality="high" width="'+ focus_width +'" height="'+ swf_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
 document.write('</object>');

}

function LoadFlash3(url,wmode,width,Height)
{ 
document.write('<embed src="' + url + '" wmode=' + wmode +
  ' quality="high" pluginspage=http://www.macromedia.com/go/getflashplayer type="application/x-shockwave-flash" width="' + width + 
  '" height="' + Height + '"></embed>');   
}


<!--
//图片等比缩放代码
var flag=false; 
function DrawImage(ImgD,img_width,img_height)
{ 
   var image=new Image(); 
   image.src=ImgD.src; 
   
   var img_width;
   var img_height;
   
   if(image.width>0 && image.height>0){ 
    flag=true; 
    if(image.width/image.height>= img_width/img_height){ 
     if(image.width>img_width){   
     ImgD.width=img_width; 
     ImgD.height=(image.height*img_width)/image.width; 
     }else{ 
     ImgD.width=image.width;   
     ImgD.height=image.height; 
     } 
     //ImgD.alt=image.width+"×"+image.height; 
     } 
    else{ 
     if(image.height>img_height){   
     ImgD.height=img_height; 
     ImgD.width=(image.width*img_height)/image.height;      
     }else{ 
     ImgD.width=image.width;   
     ImgD.height=image.height; 
     } 
     //ImgD.alt=image.width+"×"+image.height;
     } 
    } 
}
//图片等比缩放代码
//-->
