// JavaScript Document
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; 
    } 
} 
window.onload = function(){ 
    var SDmodel = new scrollDoor(); 
    SDmodel.sd(["zthd_1_m_01","zthd_1_m_02"],["zthd_1_c_01","zthd_1_c_02"],"zthuadongbg01","zthuadongbg02"); 
    SDmodel.sd(["thd_1_m_01","thd_1_m_02","thd_1_m_03","thd_1_m_04","thd_1_m_05","thd_1_m_06","thd_1_m_07","thd_1_m_08"],["thd_1_c_01","thd_1_c_02","thd_1_c_03","thd_1_c_04","thd_1_c_05","thd_1_c_06","thd_1_c_07","thd_1_c_08"],"thuadongbg01","thuadongbg02"); 
    SDmodel.sd(["thd_2_m_01","thd_2_m_02","thd_2_m_03","thd_2_m_04","thd_2_m_05","thd_2_m_06","thd_2_m_07","thd_2_m_08","thd_2_m_09","thd_2_m_10","thd_2_m_11","thd_2_m_12"],["thd_2_c_01","thd_2_c_02","thd_2_c_03","thd_2_c_04","thd_2_c_05","thd_2_c_06","thd_2_c_07","thd_2_c_08","thd_2_c_09","thd_2_c_10","thd_2_c_11","thd_2_c_12"],"thuadongbg01","thuadongbg02"); 
    SDmodel.sd(["xxhd_1_m_01","xxhd_1_m_02"],["xxhd_1_c_01","xxhd_1_c_02"],"xxhuadongbg01","xxhuadongbg02"); 
    SDmodel.sd(["xxhd_2_m_01","xxhd_2_m_02"],["xxhd_2_c_01","xxhd_2_c_02"],"xxhuadongbg01","xxhuadongbg02"); 
    SDmodel.sd(["xxhd_3_m_01","xxhd_3_m_02"],["xxhd_3_c_01","xxhd_3_c_02"],"xxhuadongbg01","xxhuadongbg02"); 
    SDmodel.sd(["xxhd_4_m_01","xxhd_4_m_02"],["xxhd_4_c_01","xxhd_4_c_02"],"xxhuadongbg01","xxhuadongbg02"); 
} 

