function content_scroll(id,height)
{
	this.id = id;
	this.content = null;
	this.interval = null;
	this.height = height;
	return this;
}
content_scroll.prototype.set = function()
{
	if(!this.content)
		this.content = getElem(this.id + 'Content');
	this.content.style.position = 'absolute';
	this.content.style.overflow = 'hidden';
}
content_scroll.prototype.scroll = function(dir)
{
	switch(dir)
	{
		case 1: //up
			if(this.content.scrollTop > 0)
				this.content.scrollTop = (this.content.scrollTop) - 45;
			else
				clearInterval(this.interval);
			break;
		case -1: //down
			this.content.scrollTop = (this.content.scrollTop) + 45;
			break;
		case 0: //top
			this.content.scrollTop = 0;
			break;
		case -2: // bottom
			this.content.scrollTop = this.content.scrollHeight - this.height;
			break;
	}
	return false;
}
content_scroll.prototype.mouseScroll = function()
{
	if (event.wheelDelta >= 120)
		this.scroll(1);
  else if (event.wheelDelta <= -120)
		this.scroll(-1);
	return false;
}