var pic = 0;
var stopped = 0;

function runfromstop(){
		
		if(stopped==1){
		swap();
		timerID = setInterval(swap,6000);
		
		stopped = 0;
		}
	}
	
	
	
	
	
function stopcount()
{
	stopped = 1
clearTimeout(timerID);
/*timerID = setTimeout(swap,100000);
runfromstop();*/
}

function swap(){


pic = (pic +1);



if(pic == 1){
	ajaxpage('carousel/stvdio.html', 'loader');}
	
	if(pic == 2){
	ajaxpage('carousel/governors.html', 'loader');}
	
	if(pic == 3){
	ajaxpage('carousel/quote1.html', 'loader');
	}
	
	if(pic == 4){
	ajaxpage('carousel/compresults.html', 'loader');
	pic = 0;}
	
}

if(stopped==0){
timerID = setInterval(swap,6000);}
	
