var pTimer = null;
var pMax = 6;
var pWidth = 185;

function createTimer(secs, items)
{				  
	pMax = items;
	
	pTimer = $.timer(autoScroll, secs * 1000);
}

function setWidth(width)
{
    pWidth = width;
}

function startTimer()
{
	pTimer.play();	
}

function pauseTimer()
{
	pTimer.pause();	
}

var pos = 1;		
function autoScroll()
{			
	if((pMax  + 1) - pos == 0)
	{
		pos = 1;
	}
	
	$('#kau .cover').animate({left:-pWidth*(parseInt(pos)-1)});
	pos++;
}		

