// JavaScript Document

function SiteNotice (steps, delay, curObj) {
	_steps = steps;
	_delay = delay;
	_curObj = curObj;
	_curStep = 1;
}

SiteNotice.prototype._steps;
SiteNotice.prototype._delay;
SiteNotice.prototype._curObj;
SiteNotice.prototype._curStep;

SiteNotice.prototype.openNotice = function(){
	
	//alert(_curStep + " " + _curStep + "px" + _curObj.style.height);
	
	_curObj.style.visibility = "visible";
	_curObj.style.height = _curStep + "px";
	_curStep++;
	
	if (_curStep < _steps) {
		setTimeout("sn.openNotice()", _delay);
	}
}
