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(["m01","m02"],["c01","c02"],"sd01","sd02");
  SDmodel.sd(["mm01","mm02","mm03"],["cc01","cc02","cc03"],"sd01","sd02");
 SDmodel.sd(["bx01","bx02"],["cbx01","cbx02"],"sd01","sd02");
  SDmodel.sd(["bx03","bx04"],["cbx03","cbx04"],"sd01","sd02");
  SDmodel.sd(["zq01","zq02"],["czq01","czq02"],"sd01","sd02");
  SDmodel.sd(["zq03","zq04"],["czq03","czq04"],"sd01","sd02");
   SDmodel.sd(["lc01","lc02"],["clc01","clc02"],"sd01","sd02");
  SDmodel.sd(["lc03","lc04","lc05","lc06"],["clc03","clc04","clc05","clc06"],"sd01","sd02");
/*SDmodel.sd(["jg","xh","yh","csh","bx","rz"],["cjg","cxh","cyh","ccsh","cbx","crz"],"jrjg01","jrjg02");*/
  SDmodel.sd(["tl01","tl02","tl03","tl04","tl05","tl06"],["ctl01","ctl02","ctl03","ctl04","ctl05","ctl06"],"tool01","tool02");
/*  SDmodel.sd(["ha","sa","hb","sb"],["cha","csa","chb","csb"],"gushi01","gushi02");
*/  /*SDmodel.sd(["xs","zf","yhgc","bxgc"],["cxs","czf","cyhgc","cbxgc"],"xs01","xs02");*/
  SDmodel.sd(["xh","yh","csh","bx","rz"],["cxh","cyh","ccsh","cbx","crz"],"jrjg01","jrjg02");
 /*SDmodel.sd(["mmm01","mmm02","mmm03","mmm04","mmm05"],["ccc01","ccc02","ccc03","ccc04","ccc05"],"sd01","sd02");*/
}