
//顶边的Logo在菜单上
function TopLogoOk(){
document.write ('<DIV align="center">');
document.write ('<TABLE cellPadding=0 cellSpacing=0 class="TopLogoA4">');
document.write ('<TR>'); 
document.write ('<TD align="center" background="../images/head.gif" height="140" width="1004"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="1002" height="140">');
document.write ('      <param name="wmode" value="Transparent" />');
document.write ('     <param name="movie" value="../images/2.swf" />');
document.write ('      <param name="quality" value="high" />');
document.write ('      <embed src="../images/2.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="1002" height="140"></embed>');
document.write ('    </object></TD>');
document.write ('</TR>');
document.write ('</TABLE>');
document.write ('</DIV>');
}
function DrawImage(ImgD){
var flag=false;
var image=new Image();
var iwidth = 250; //定义允许图片宽度，当宽度大于这个值时等比例缩小
var iheight = 200; //定义允许图片高度，当宽度大于这个值时等比例缩小
image.src=ImgD.src;
if(image.width>0 && image.height>0){
flag=true;
if(image.width/image.height>= iwidth/iheight){
if(image.width>iwidth){
ImgD.width=iwidth;
ImgD.height=(image.height*iwidth)/image.width;
}else{
ImgD.width=image.width;
ImgD.height=image.height;
}

ImgD.alt=image.width+"×"+image.height;
}
else{
if(image.height>iheight){
ImgD.height=iheight;
ImgD.width=(image.width*iheight)/image.height;
}else{
ImgD.width=image.width;
ImgD.height=image.height;
}
ImgD.alt=image.width+"×"+image.height;
}
}
}

function DrawImage1(ImgD){
var flag=false;
var image=new Image();
var iwidth = 130; //定义允许图片宽度，当宽度大于这个值时等比例缩小
var iheight = 130; //定义允许图片高度，当宽度大于这个值时等比例缩小
image.src=ImgD.src;
if(image.width>0 && image.height>0){
flag=true;
if(image.width/image.height>= iwidth/iheight){
if(image.width>iwidth){
ImgD.width=iwidth;
ImgD.height=(image.height*iwidth)/image.width;
}else{
ImgD.width=image.width;
ImgD.height=image.height;
}

ImgD.alt=image.width+"×"+image.height;
}
else{
if(image.height>iheight){
ImgD.height=iheight;
ImgD.width=(image.width*iheight)/image.height;
}else{
ImgD.width=image.width;
ImgD.height=image.height;
}
ImgD.alt=image.width+"×"+image.height;
}
}
}