	function Scroller(parentContainerId, containerId, tickerContainerId, tickerHeaderId, tickerId, tickerSpanId){
		var parentCont = document.getElementById(parentContainerId);
		var cont = document.getElementById(containerId);
		var tickerCont = document.getElementById(tickerContainerId);
		var tickerHeader = document.getElementById(tickerHeaderId);
		var ticker = document.getElementById(tickerId);
		var tickerSpan = document.getElementById(tickerSpanId);
		this.scrollTimer;
		this.scrollSpeed = 50;
		if(cont == null || parentCont == null || ticker == null || tickerCont == null || tickerSpan == null){
			throw new exception("Invalid elementId's");
		}
		this.ticker = ticker;
		this.tickerHeader = tickerHeader;
		this.tickerContainer = tickerCont;
		this.cont = cont;
		this.parentCont = parentCont;
		this.tickerSpan = tickerSpan;
		
		this.ConfigureSizes();
	}
	
	Scroller.prototype.ConfigureSizes = function(){
		this.cont.style.width = this.parentCont.offsetWidth + "px";
		var headerWidth = this.getElementWidth(this.tickerHeader) + 10;
		this.tickerContainer.style.width = parseInt(this.cont.offsetWidth) - headerWidth + "px";
		this.ticker.style.left = this.tickerContainer.offsetWidth;
	}
	
	Scroller.prototype.StartScrolling = function(){
		this.ticker.style.marginLeft = (parseInt(this.ticker.style.marginLeft)-2)+"px";
		var x = -(parseInt(this.tickerSpan.offsetWidth) + 1);
		var y = parseInt(this.ticker.style.marginLeft);
		if(y < x){
			this.ticker.style.marginLeft = this.tickerContainer.offsetWidth+"px";
			this.scrollTime = setTimeout("scroller.StartScrolling();", 3000);
		}else{
			this.scrollTimer = setTimeout("scroller.StartScrolling();", this.scrollSpeed);
		}
	}
	
	Scroller.prototype.getElementWidth = function(ele){
		var eleLeft = (!isNaN(parseInt(ele.style.marginLeft)))? parseInt(ele.style.marginLeft): 0;
		eleLeft += (!isNaN(parseInt(ele.style.paddingLeft)))? parseInt(ele.style.paddingLeft): 0;
		var eleRight = (!isNaN(parseInt(ele.style.marginRight)))? parseInt(ele.style.marginRight): 0;
		eleRight += (!isNaN(parseInt(ele.style.paddingRight)))? parseInt(ele.style.paddingRight): 0;
		return eleLeft + parseInt(ele.offsetWidth) + eleRight;
	}
	var scroller;
	function integrateScroller(){
		scroller = new Scroller("left_div", "notification_cont", "notification_content_cont", "notification_head", "notification_content", "notification_content_span");
		scroller.cont.style.visibility = "visible";
		scroller.StartScrolling();
	}
