// http://www.solutec.com.au/hot_jobs.php
var boxHeight;
var repeatHeight;
var stopScroll = 0;
var x;
function scrollMe() {
	clearTimeout(x);
	if (stopScroll == 1) { return; }
	$('scroller-container').scrollTop = $('scroller-container').scrollTop + 1;
	if ($('scroller-container').scrollTop<=repeatHeight) {
		// keep on scrolin' 
		x = setTimeout("scrollMe()", 40);
	} else { //we have hit the wrap point
		$('scroller-container').scrollTop = 0;
		x = setTimeout("scrollMe()", 40);
	}
}
function loadScroller() {
	if ($('scroller-container')) {
		boxHeight = $('scroller-container').style.height.replace('px','');
		// get the current height so we know when to wrap
		repeatHeight = $('scroller-container').scrollHeight;
		// add a second copy so we can scroll down to the wrap point
		$('scroller-container').innerHTML = $('scroller-container').innerHTML + $('scroller-container').innerHTML;  
		x = setTimeout('scrollMe()', 1000);
	}
}
