

function select_move(c,val)
{
    var list= $i("search_select_list");
    list.style.display=val;
}

function addSelectList()
{
    
    var as=document.getElementById("search_select_list").getElementsByTagName("a");
    for(var i=0;i<as.length;i++)
    {
        as[i].onclick=function(){
            var select=$i("search_select");
            select.setAttribute("val",this.getAttribute("val"));
            select.innerHTML=this.innerHTML;
            select.style.color="#000";
            select_move(null,"none");
			try{
				$i("typeinfo").setAttribute("typeid", this.getAttribute("val"));
				_jsc.state.getState("l");
			} catch(e) {}
            return false;
        }
    }
}

//  ÏÔÊ¾ÓëÒþ²Ø
function Move_Show(moveid,showid,showevent){
        this.mid = document.getElementById(moveid);
        this.sid = document.getElementById(showid);
        this.sevent = showevent
        this.hidetimer = null;
        this.adjustwidth = 0;
        var _this = this;
        this.init = function(){
            _this.mid.onmouseover =function(){
                if(!_this.sid.style.width){
                    var newsid = _this.mid;
                    while(newsid.parentNode.tagName.toLowerCase() != "li"){
                       newsid = newsid.parentNode;
                       }
                    _this.sid.style.width = newsid.offsetWidth + _this.adjustwidth + "px";
                }
                _this.sid.style.display="block";
                if(_this.sevent)
                    _this.sevent;
                if(_this.hidetimer)
                    window.clearTimeout(_this.hidetimer);
            }
            _this.mid.onmouseout = function(){
                _this.disp_none();
            }
            
            _this.sid.onmouseover = function(){
                if(_this.hidetimer)
                    window.clearTimeout(_this.hidetimer);
            }
            _this.sid.onmouseout = function(){
                _this.disp_none();
            }
        }
        
        this.disp_none = function(){
            _this.hidetimer = window.setTimeout(function(){
                _this.sid.style.display="none";
            },300);
        }
    }
    