var su="";
document.write("");

function setStyle(title) {
var i, links;
links = document.getElementsByTagName("link");
for(i=0; links[i]; i++) {
if(links[i].getAttribute("rel").indexOf("style") != -1
&& links[i].getAttribute("title")) {
links[i].disabled = true;
if(links[i].getAttribute("title").indexOf(title) != -1)
links[i].disabled = false;
}
}
}


//Í¼Æ¬°´±ÈÀýËõÂÔÊ¹ÓÃonload=DrawImage(this,566,87);
function DrawImage(ImgD,w,h){
var image=new Image();
image.src=ImgD.src;
if(image.width>0 && image.height>0){
flag=true;
if(image.width/image.height>= w/h){
if(image.width>w){
ImgD.width=w;
ImgD.height=(image.height*w)/image.width;
}else{
ImgD.width=image.width;
ImgD.height=image.height;
}
//ImgD.alt=image.width+"¡Á"+image.height;
}
else{
if(image.height>h){
ImgD.height=h;
ImgD.width=(image.width*h)/image.height;
}else{
ImgD.width=image.width;
ImgD.height=image.height;
}
//ImgD.alt=image.width+"¡Á"+image.height;
}
}
}
