var schoolticker;
var tickerCounterS = 0;

function showschools() {
	schoolticker = document.getElementById('schoolsTicker');
	if( schoolticker) {
		schoolticker = schoolticker.firstChild;
		schoolticker.style.top = "0px";
		setTimeout( "scrollschools()", 3000);
	}
}

function scrollschools() {
	var t = parseInt(schoolticker.style.top);
	var h = schoolticker.offsetHeight -1;
	if( h>0) {
		if( Math.abs(t)>=(h-90)) {
			t=1;
			tickerCounterS=100;
		}
		schoolticker.style.top = t-1 + 'px';
		tickerCounterS++;
		if( tickerCounterS<90)
			setTimeout( "scrollschools()", 30);
		else {
			tickerCounterS = 0;
			setTimeout( "scrollschools()", 3000);
		}
	}
}

