<!--
//控制图片大小125*100成比例缩放
var flag=false;
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>= 125/100){
if(image.width>125){ 
ImgD.width=125;
}else{
ImgD.width=image.width; 
}
}
else{
if(image.height>100){ 
ImgD.height=100;
ImgD.width=(image.width*100)/image.height; 
}else{
ImgD.width=image.width; 
ImgD.height=image.height;
}
}
}
} 

//控制图片大小220*200成比例缩放
function DrawImage_list(ImgD){
var image=new Image();
image.src=ImgD.src;
if(image.width>0 && image.height>0){
flag=true;
if(image.width/image.height>= 220/200){
if(image.width>220){ 
ImgD.width=220;
}else{
ImgD.width=image.width; 
}
}
else{
if(image.height>200){ 
ImgD.height=200;
ImgD.width=(image.width*200)/image.height; 
}else{
ImgD.width=image.width; 
ImgD.height=image.height;
}
}
}
}

//控制图片大小150*50成比例缩放
function DrawImage_list2(ImgD){
var image=new Image();
image.src=ImgD.src;
if(image.width>0 && image.height>0){
flag=true;
if(image.width/image.height>= 150/50){
if(image.width>150){ 
ImgD.width=150;
}else{
ImgD.width=image.width; 
}
}
else{
if(image.height>50){ 
ImgD.height=50;
ImgD.width=(image.width*50)/image.height; 
}else{
ImgD.width=image.width; 
ImgD.height=image.height;
}
}
}
}

//控制图片宽小于180成比例缩放
function DrawLogo(ImgD){
var image=new Image();
image.src=ImgD.src;
if(image.width>0 && image.height>0){
flag=true;
if(image.width>180){ 
ImgD.width=180;
}
}
}

//控制图片宽小于720成比例缩放
function DrawLogo2(ImgD){
var image=new Image();
image.src=ImgD.src;
if(image.width>0 && image.height>0){
flag=true;
if(image.width>720){ 
ImgD.width=720;
}
}
}


//使用方式：shiftListItem(this)
//使用场合：左侧我查看过的列表
function shiftListItem(obj)
{
    if(obj)
    {
        var childnodes = obj.parentNode.childNodes;
        for(var i=0; i < childnodes.length;i++)
        {
            if(childnodes[i].nodeName.toLowerCase() == "dl")
            {
                childnodes[i].style.display = 'none';
            }
            else if(childnodes[i].nodeName.toLowerCase() == "ul")
            {
                childnodes[i].style.display = '';
            }
        }
        obj.style.display = 'none';
        if(document.all)
        {
            obj.nextSibling.style.display='block';//不把持FF
        }
        else
        {
            obj.nextSibling.nextSibling.style.display='block';
        }
    }
}


//-->