//function scrollDoor(){ 
//} 
//scrollDoor.prototype = { 
//    sd : function(menus,divs,openClass,closeClass){ 
//        var _this = this; 
//        if(menus.length != divs.length) 
//        { 
//            alert("menus.length != divs.length"); 
//            return false; 
//        }                 
//        for(var i = 0 ; i < menus.length ; i++) 
//        {     
//            _this.$(menus[i]).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"; 
//                } 
//                _this.$(menus[this.value]).className = openClass;     
//                _this.$(divs[this.value]).style.display = "block";                 
//            } 
//        } 
//        }, 
//    $ : function(oid){ 
//        if(typeof(oid) == "string") 
//        return document.getElementById(oid); 
//        return oid; 
//    } 
//} 
//window.onload = function(){ 
//    var SDmodel = new scrollDoor(); 
//    SDmodel.sd(["h01","h02"],["c01","c02"],"i_t111s","i_t111e"); 
//	SDmodel.sd(["fk01","fk02","fk03","fk04","fk05","fk06"],["fc01","fc02","fc03","fc04","fc05","fc06"],"i_hdm0","i_hdm1");
//	SDmodel.sd(["nk01","nk02","nk03","nk04","nk05","nk06"],["nc01","nc02","nc03","nc04","nc05","nc06"],"i_hdm0","i_hdm1");
//	SDmodel.sd(["gc01","gc02","gc03","gc04","gc05","gc06"],["gcc01","gcc02","gcc03","gcc04","gcc05","gcc06"],"i_hdm0","i_hdm1");
//	SDmodel.sd(["b01","b02"],["bc01","bc02"],"i_t811a","i_t811b");
//} 


function scrollDoor(){ 
} 
scrollDoor.prototype = { 
sd : function(menus,divs,openClass,closeClass){ 
var _this = this; 
if(menus.length != divs.length) 
{ 
alert("菜单层数量和内容层数量不一样!"); 
return false; 
} 
for(var i = 0 ; i < menus.length ; i++) 
{ 
_this.$(menus[i]).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"; 
} 
_this.$(menus[this.value]).className = openClass; 
_this.$(divs[this.value]).style.display = "block"; 
} 
} 
}, 
$ : function(oid){ 
if(typeof(oid) == "string") 
return document.getElementById(oid); 
return oid; 
} 
} 
