// Title: Tigra Scroller
// Description: See the demo at url
// URL: http://www.softcomplex.com/products/tigra_scroller/
// Version: 1.5
// Date: 07-03-2003 (mm-dd-yyyy)
// Note: Permission given to use this script in ANY kind of applications if
//    header lines are left unchanged.

// set correct path to Tigra Scroller files
var Tscroll_path_to_files = 'scroller/'

// please, don't change anything below this line
function Tscroll_init (id) {
	document.write ('<iframe id="Tscr' + id + '" scrolling=no frameborder=no src="' + Tscroll_path_to_files + 'scroll.html?' + id + '" width="1" height="1" allowTransparency="true"></iframe>');
}


var pause = false;
var current_chart = 3;

function startscroll() {
 	var scr = document.getElementById("scroller");
 	if (!pause) {
		if (parseInt(scr.style.top) >= (scr.offsetHeight*(-1)+8))
			scr.style.top = parseInt(scr.style.top)-1+"px";
		else {
			scr.style.top = "228px"; // scr.height+8
			current_chart = current_chart<3? current_chart+1 : 0;
			
			document.getElementById("chart0").style.display = "none";
			document.getElementById("chart1").style.display = "none";
			document.getElementById("chart2").style.display = "none";
			document.getElementById("chart3").style.display = "none";
			document.getElementById("chart"+current_chart).style.display = "";
		}
	}
	if (parseInt(scr.style.top) == 0)
	    setTimeout("startscroll()", 3000);
	else
	    setTimeout("startscroll()", 20);
}

