function ShowFlash(FlashSrc,FlashID,FlashWidth,FlashHeight){
	if(gFV()>=6){
		document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' width='"+FlashWidth+"' height='"+FlashHeight+"'><param name='movie' value='"+FlashSrc+"'><param name='allowScriptAccess' value='sameDomain'><param name='quality' value='high'><param name='wmode' value='transparent'><param name='menu' value='0'><embed src='"+FlashSrc+"' quality='high' name='"+FlashID+"' bgcolor='#ffffff' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' wmode='transparent'></object>");
		}else{
			document.write("<FONT color='#FFFFFF'>This你好 content requires Macromedia Flash Player. </FONT><A href='http://www.adobe.com/go/gntray_dl_getflashplayer' class='TopLink' target='_blank'>Get Flash Player</A>")
		}
	}
var fV=0;
var ver=-1;
function gFV(){  //检测是否支持Flash
	var lfv=12;
	var ag=navigator.userAgent.toLowerCase();
	if(ag.indexOf("mozilla/3")!=-1&&ag.indexOf("msie")==-1){
		fV=0;
	}
	if(ver!=-1)return ver;
	if(navigator.plugins!=null&&navigator.plugins.length>0){
		var flashPlugin=navigator.plugins['Shockwave Flash'];
		if(typeof flashPlugin=='object'){
			for(var i=lfv;i>=3;i--){
				if(flashPlugin.description.indexOf(i+'.')!=-1){
					fV=i;
					break;
				}
			}
		}
	}else if(ag.indexOf("msie")!=-1&&parseInt(navigator.appVersion)>=4&&ag.indexOf("win")!=-1&&ag.indexOf("16bit")==-1){
		var doc='<scr'+'ipt language="VBScript"\> \r';
		doc+='On Error Resume Next \r';
		doc+='Dim obFlash \r';
		doc+='For i='+lfv+' To 3 Step -1 \r';
		doc+='   Set obFlash=CreateObject("ShockwaveFlash.ShockwaveFlash." & i) \r';
		doc+='   If IsObject(obFlash) Then \r';
		doc+='      fV=i \r';
		doc+='      Exit For \r';
		doc+='   End If \r';
		doc+='Next \r';
		doc+='</scr'+'ipt\>';
		document.write(doc);
	}else{
		fV=0
	};
	ver=fV;
	return fV;
}


function showsubmenu(sid)
{
whichEl = eval("submenu" + sid);
imgmenu = eval("imgmenu" + sid);
if (whichEl.style.display == "none")
{
eval("submenu" + sid + ".style.display=\"\";");
imgmenu.background=""images//menuup.jpg";
}
else
{
eval("submenu" + sid + ".style.display=\"none\";");
imgmenu.background=""images//menudown.jpg";
}
}


var flag=false; 
function imgs(ImgD){ 
 var image=new Image(); 
 image.src=ImgD.src; 
 if(image.width>0 && image.height>0){ 
  flag=true; 
  if(image.width/image.height>= 160/120){ 
   if(image.width>160){
    ImgD.width=160; 
    ImgD.height=(image.height*160)/image.width; 
   }else{ 
    ImgD.width=image.width;
    ImgD.height=image.height; 
   } 
    ImgD.alt="产品图片"; 
  } 
  else{ 
   if(image.height>120){
    ImgD.height=120; 
    ImgD.width=(image.width*120)/image.height; 
   }else{ 
    ImgD.width=image.width;
    ImgD.height=image.height; 
   } 
   ImgD.alt="产品图片"; 
  } 
 }
}


var flags=false; 
function img(ImgD){ 
 var image=new Image(); 
 image.src=ImgD.src; 
 if(image.width>0 && image.height>0){ 
  flags=true; 
  if(image.width/image.height>= 200/200){ 
   if(image.width>200){
    ImgD.width=200; 
    ImgD.height=(image.height*200)/image.width; 
   }else{ 
    ImgD.width=image.width;
    ImgD.height=image.height; 
   } 
   ImgD.alt="产品图片";  
  } 
  else{ 
   if(image.height>200){
    ImgD.height=200; 
    ImgD.width=(image.width*200)/image.height; 
   }else{ 
    ImgD.width=image.width;
    ImgD.height=image.height; 
   } 
    ImgD.alt="产品图片"; 
  } 
 }
}




var flags=false; 
function imgb(ImgD){ 
 var image=new Image(); 
 image.src=ImgD.src; 
 if(image.width>0 && image.height>0){ 
  flags=true; 
  if(image.width/image.height>= 500/500){ 
   if(image.width>500){
    ImgD.width=500; 
    ImgD.height=(image.height*500)/image.width; 
   }else{ 
    ImgD.width=image.width;
    ImgD.height=image.height; 
   } 
   ImgD.alt="产品图片";  
  } 
  else{ 
   if(image.height>500){
    ImgD.height=500; 
    ImgD.width=(image.width*500)/image.height; 
   }else{ 
    ImgD.width=image.width;
    ImgD.height=image.height; 
   } 
    ImgD.alt="产品图片"; 
  } 
 }
}