// ------------------------- 
// Tickertape script to move a div left across a page creating scroll effect
// Seems to work on Win IE5+, firefox/Moz, Opera7, NN6+, Mac IE, Safari, Mac Netscape
// IE6 seems to require a hack to make scrolling work properly. Add a comment line as first line of HTML file //
// Requires divs and styles to be set up like below to work //
// #display {width:350px; height:20px; overflow:hidden; }
// #ticker {position:relative; width:2650px; /* Mac IE needs overflow:hidden for scroll to work*/ overflow:hidden;} //
//
//
// // ** Author: Marky Wong - 26 May 2004 ** // -------------------------
var xpos = 0; // init position of the ticker tape
var displayWidth = 700; // change to width of the display for ticker tape
var decrement = 1; // size of movement
var timedelay = 40; // time delay for next step in milliseconds
var scrollDivId = "ticker"; // ID of scrolling div/tickertape
//var tickerWidth = document.getElementById(scrollDivId).offsetWidth;// change to width of the ticker tape
var tickerWidth = 1500;
function init()
{
	scrollLeft(); 
}

function scrollLeft()
{
	if (xpos > -tickerWidth)
	{
		xpos -= decrement;
	}
	else
	{
		xpos = displayWidth;
	}

document.getElementById(scrollDivId).style.left = xpos + "px";
loop = window.setTimeout("scrollLeft();", timedelay);
} 
