function Ticker() {
	this.tickerDiv = document.getElementById('container-ticker-content');
	this.tickerWrapperDiv = document.getElementById('container-ticker');
	this.tickerDiv.style.position="relative";
	this.tickerDiv.style.display="inline-block";
	
	//'display: inline-block
	this.tickerDiv.position=0;
	this.speed = 1;
}

Ticker.prototype.move = function() {
	
	this.tickerDiv.position-=this.speed;
	this.tickerDiv.style.top = this.tickerDiv.position+'px';
	//this.tickerDiv.scrollTop = this.tickerDiv.position;
	//alert(this.tickerDiv.clientHeight);
	if ( ((-1)*this.tickerDiv.position) < this.tickerDiv.clientHeight-this.tickerWrapperDiv.clientHeight) {
		//alert('moving')
		window.setTimeout("ticker.move()", 100);
		//setTimeout('ticker.move()', 100);
	}
}

var ticker;
window.onload = function() {
	
	//ticker.move();
	makeFlashTicker();
}

function makeFlashTicker() {
		document.getElementById('container-ticker-flash').innerHTML='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="280" height="80" id="dylan" align="middle">	<param name="allowScriptAccess" value="sameDomain" />	<param name="allowFullScreen" value="false" />	<param name="movie" value="dylan.swf" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><param name="bgcolor" value="#b0d6e1" />	<embed src="dylan.swf" quality="high" wmode="transparent" bgcolor="#b0d6e1" width="280" height="80" name="dylan" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>';
}