var margleft=600;
var flag=true;
function animateband(){
	var toanimate=document.getElementById("scroll");
	margleft=margleft-2;
	toanimate.style.left=""+margleft+"px";
	if(margleft<-80  && flag==true){
		getnextquote();
	}
}
var animator=12;
function startanimation(){
	clearInterval(animator);
	margleft=600;
	flag=true;
	animator=setInterval("animateband()", 35);
}
function getnextquote(){
	clearInterval(animator);
	document.getElementById("ajaxdiv").innerHTML="<div id='scroll' style='width:500px;cursor:pointer;position:relative;left:600px;'>&nbsp;</div>";
	flag=false;
	ttoget++;
	if (ttoget>last) ttoget=1;
	makerequest("bandgetuigenissen.php?t="+qa[ttoget], "ajaxdiv",1);
	setTimeout("startanimation()",50);
}