// JavaScript Document
function scrollDoor(){
}
scrollDoor.prototype = {
	sd : function(menus,divs1,divs2,openClass,closeClass){
	
		var _this = this;
		if(menus.length != divs1.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 = openClass;
					_this.$(divs1[j]).style.display = "none";
					_this.$(divs2[j]).style.display = "none";
				}
				_this.$(menus[this.value]).className = closeClass;
				_this.$(divs1[this.value]).style.display = "block";
				_this.$(divs2[this.value]).style.display = "block";
			}
		}
		},
	$ : function(oid){
		if(typeof(oid) == "string")
		return document.getElementById(oid);
		return oid;
	}
}