// JavaScript Document
function scrollDoor(){
}
scrollDoor.prototype = {
sd : function(menus,divs,openClass,closeClass){
var _this = this;
        if(menus.length==9){
			for(var i = 0 ; i < menus.length ; i++)
			{
			_this.$(menus[i]).value = i;
			_this.$(menus[i]).className = closeClass;
			_this.$(divs[i]).style.display = "none";
			}
		    var now = new Date( );//创建一个表示当前日期和时间的对象NOW
			var date=now.getDate();
			var num=date%9;
			_this.$(menus[num]).className = openClass;
			_this.$(divs[num]).style.display = "block";
		}	
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;
}
}//在coupletad.js触发

