 function scrollDoor() 
    {
    }

    scrollDoor.prototype =
    {
            sd: function(
                    menus,          /*菜单ID数组*/
                    divs,           /*内容ID数组*/
                    mores,           /*其他数组*/
                    openClass,      /*菜单展开选中样式*/
                    closeClass,     /*菜单闭合样式*/
                    defaultSelect   /*默认选中的菜单ID,可为空,则设为第一项*/
                    ) {
            var _this = this;
            if (menus.length != divs.length) {
                alert("菜单层数量和内容层数量不一样!");
                return false;
            }
           var moreslength=mores.length ;
            
            for (var i = 0; i < menus.length; i++) {
                _this.$(menus[i]).Order_Value = i; /*设置每个菜单的序号*/

                _this.$(menus[i]).onmouseover = function() /*设置每个菜单的单击事件*/
                {
                    for (var j = 0; j < menus.length; j++) {
                        _this.$(menus[j]).className = closeClass;
                        _this.$(divs[j]).style.display = "none";
                        if(moreslength>0){ 
                        _this.$(mores[j]).style.display = "none";}
                    }
                    _this.$(menus[this.Order_Value]).className = openClass;
                    _this.$(divs[this.Order_Value]).style.display = "block";
                    if(moreslength>0){
                    _this.$(mores[this.Order_Value]).style.display = "block";}
                }

                /*初始化显示和设置默认选中值*/
                _this.$(menus[i]).className = closeClass;
                _this.$(divs[i]).style.display = "none";
                if(moreslength>0){
                _this.$(mores[i]).style.display = "none";}
                if (defaultSelect) {
                    if (defaultSelect == menus[i]) {
                        _this.$(menus[i]).className = openClass;
                        _this.$(divs[i]).style.display = "block";
                        if(moreslength>0){
                        _this.$(mores[i]).style.display = "block";}
                    }
                }
                else if (i == 0) {
                    _this.$(menus[i]).className = openClass;
                    _this.$(divs[i]).style.display = "block";
                    if(moreslength>0){
                    _this.$(mores[i]).style.display = "block";}
                }
            }
        },

        $: function(oid) {
            if (typeof (oid) == "string")
                return document.getElementById(oid);
            return oid;
        }
    }
