		var spacerImageUrl			= "/Portals/0/images/spacer.gif";
		var tickerWidth					= -1;		// ako -1 onda preutima širinu od holder DIV-a
		var tickerStartDirection		= "left";
		var tickerSpeed					= 1;			// veci znaci brži
		var tickerTickPause			= 20;
		var tickerId					= "tickerHolder";
		var tickerContentId		= "tickerContent";
		var tickerPaused			= false;
	
		function TickerStart() {
			setTickerVariables()
			setTickerContent()
	
			getTickerObject().scrollLeft 		= (tickerStartDirection == "right") ? getTickerObject().scrollWidth - getTickerObject().offsetWidth : 0;
			getTickerObject().style.display	= "block";
			TickerTick();
		}
		function TickerTick() {
			if (!tickerPaused)	getTickerObject().scrollLeft += tickerSpeed * (tickerStartDirection == "right" ? -1 : 1);
	
			if (tickerStartDirection == "right" && getTickerObject().scrollLeft <= 0)
				getTickerObject().scrollLeft = getTickerObject().scrollWidth - getTickerObject().offsetWidth;
	
			if (!(tickerStartDirection == "right") && getTickerObject().scrollLeft >= getTickerObject().scrollWidth - getTickerObject().offsetWidth)
				getTickerObject().scrollLeft = 0;
	
			tick();
		}
		function TickerResume() { tickerPaused = false; }
		function TickerPause()	{ tickerPaused = true;	}
	
		function getTickerObject() {
			return document.getElementById(tickerId);
		}
		function getTickerContentObject() {
			return document.getElementById(tickerContentId);
		}
		function getTickerSpacerImage() {
			return "<img src='" + spacerImageUrl + "' border='0' width='" + tickerWidth + "' height='1' />";
		}
		function setTickerContent() {
			if (getTickerContentObject() != 'undefined')
					getTickerContentObject().innerHTML = getTickerSpacerImage() + getTickerContentObject().innerHTML + getTickerSpacerImage();
		}
		function setTickerVariables() {
			if (tickerWidth == -1)	tickerWidth = getTickerObject().style.width;
		}
		function tick() {
			window.setTimeout("TickerTick()", tickerTickPause);
		}