function findHideSelect(v){
    var sobj=document.getElementsByTagName("select");
    if (sobj==null) return;
    for(var i=0;i<sobj.length;++i){
        if (sobj[i].size<=0) sobj[i].style.visibility=(v=='')?'hidden':'visible';
    }
}

function mover(src,color){
    src.style.backgroundColor=color;
}

function mout(src,color){
    src.style.backgroundColor=color;
}

function expandtree(L1){
    var LL1=document.getElementById(L1);
    var LLL1=document.getElementById('_L'+L1);
    if (LL1.style.display==''){
        LL1.style.display='none';
        LLL1.src='http://www.texabc.com/english/imgs/plus.gif';
    }else{
        LL1.style.display='';
        LLL1.src='http://www.texabc.com/english/imgs/down.gif';
    }
}

function showDisplayLayers(id){
    var v,top;
    var obj = document.getElementById(new String(id));
    if(obj.style.display == ""){
		v = "none";
        top = 10;
    } else {
        v = "";
        top = null;
    }
    obj.style.display=v;
    obj.style.top = top;
    if (top == null){
        var _oldtop=obj.style.top;
        var ofttop=obj.offsetTop;
        var oftheight=obj.offsetHeight;
        var clientheight=document.body.clientHeight;
        obj.style.top =(oftheight>(clientheight*0.5))?(ofttop>(oftheight*0.5))?(ofttop-(oftheight*0.5)):(((oftheight*0.5)-ofttop)/5):_oldtop;
    }
    findHideSelect(v);
}

