function show_swfv(swfName, swfWidth, swfHeight, swfVars)
{
 var hout = "";
  hout += "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width='"+swfWidth+"' height='"+swfHeight+"' id='"+swfName+"' align='middle'>";
  hout += "<param name='allowScriptAccess' value='sameDomain' />";
  hout += "<param name='movie' value='"+swfName+"' />";
  hout += "<param name='quality' value='high' />";
  hout += "<param name='menu' value='false' />";
  hout += "<param name='FlashVars' value='"+swfVars+"'>";
  hout += "<param name='wmode' value='transparent' />";
  hout += "<embed src='"+swfName+"' FlashVars='"+swfVars+"' quality='high' wmode='transparent' width='"+swfWidth+"' height='"+swfHeight+"' name='"+swfWidth+"' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />";
  hout += "</object>";
 document.write(hout);
}

var flag=false; 
function CDrawImage(ImgD){ 
 var image=new Image(); 
 image.src=ImgD.src; 
 if(image.width>0 && image.height>0){ 
  flag=true; 
  if(image.width/image.height>= 150/150){ 
   if(image.width>150){
    ImgD.width=150; 
    ImgD.height=(image.height*150)/image.width; 
   }else{ 
    ImgD.width=image.width;
    ImgD.height=image.height; 
   } 
   ImgD.alt="点击查看详细信息..."; 
  } 
  else{ 
   if(image.height>150){
    ImgD.height=150; 
    ImgD.width=(image.width*150)/image.height; 
   }else{ 
    ImgD.width=image.width;
    ImgD.height=image.height; 
   } 
   ImgD.alt="点击查看详细信息..."; 
  } 
 }
}

function DrawImage(ImgD){ 
 var image=new Image(); 
 image.src=ImgD.src; 
 if(image.width>0 && image.height>0){ 
  flag=true; 
  if(image.width/image.height>= 110/110){ 
   if(image.width>110){
    ImgD.width=110; 
    ImgD.height=(image.height*110)/image.width; 
   }else{ 
    ImgD.width=image.width;
    ImgD.height=image.height; 
   } 
   ImgD.alt="点击查看详细信息..."; 
  } 
  else{ 
   if(image.height>110){
    ImgD.height=110; 
    ImgD.width=(image.width*110)/image.height; 
   }else{ 
    ImgD.width=image.width;
    ImgD.height=image.height; 
   } 
   ImgD.alt="点击查看详细信息..."; 
  } 
 }
}
