var c;
var o;

$(document).ready(function(){

	o=setTimeout("cyclea()",10000);

	$("#leftSide").hover(
	function () {
		stopCount();
	},
	function () {
		o=setTimeout("cyclea()",10000);
	}
	);

	$("#stopcount").toggle(function(){
		clearTimeout(c);
	},function(){
		o=setInterval("cyclea()",10000);
	});

});

function stopCount()
{
	clearTimeout(c);
}

function prevRotator(){
	nextAda = currentAda - 1;
	cyclea();
}

function nextRotator(){
	cyclea();
}

function sendIt(current){
	if(current!=null){
		c=setTimeout("playCurrent("+current+")",1000);
	}else{
		stopCount();
	}
}

function playCurrent(current){
	nextAda=current;
	cyclea();
}


