<!--
//控制图片大小136*110成比例缩放
var flag=false;
function idx_pro(ImgD){
var image=new Image();
image.src=ImgD.src;
if(image.width>0 && image.height>0){
flag=true;
if(image.width/image.height>= 136/110){
if(image.width>136){ 
ImgD.width=136;
}else{
ImgD.width=image.width; 
}
}
else{
if(image.height>110){ 
ImgD.height=110;
ImgD.width=(image.width*110)/image.height; 
}else{
ImgD.width=image.width; 
ImgD.height=image.height;
}
}
}
} 

//控制图片宽小于162成比例缩放
function idx_history(ImgD){
var image=new Image();
image.src=ImgD.src;
if(image.width>0 && image.height>0){
flag=true;
if(image.width>162){ 
ImgD.width=162;
}
}
}

//控制图片大小104*104成比例缩放
function pro_list(ImgD){
var image=new Image();
image.src=ImgD.src;
if(image.width>0 && image.height>0){
flag=true;
if(image.width/image.height>= 104/104){
if(image.width>104){ 
ImgD.width=104;
}else{
ImgD.width=image.width; 
}
}
else{
if(image.height>104){ 
ImgD.height=104;
ImgD.width=(image.width*104)/image.height; 
}else{
ImgD.width=image.width; 
ImgD.height=image.height;
}
}
}
}

//控制图片大小230*240成比例缩放
function pro_show(ImgD){
var image=new Image();
image.src=ImgD.src;
if(image.width>0 && image.height>0){
flag=true;
if(image.width/image.height>= 230/240){
if(image.width>230){ 
ImgD.width=230;
}else{
ImgD.width=image.width; 
}
}
else{
if(image.height>240){ 
ImgD.height=240;
ImgD.width=(image.width*240)/image.height; 
}else{
ImgD.width=image.width; 
ImgD.height=image.height;
}
}
}
}

//控制图片宽小于550成比例缩放
function pro_ct(ImgD){
var image=new Image();
image.src=ImgD.src;
if(image.width>0 && image.height>0){
flag=true;
if(image.width>550){ 
ImgD.width=550;
}
}
}


//使用方式：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';
        }
    }
}


//-->