var counter = 0;
function timed()
{
	var timer = window.setInterval("swap()", 6000);
}

function imagesSwap(path){
	var img = document.getElementById('rotator');
	img.src = path;	
}

function titleSwap(path){
	var img = document.getElementById('lblTitle');
	img.innerText = path;	
}

function goThere(){
	if(counter>0){
		counter = counter - 1 ;
	}
	var path = links(counter);
	window.location = path;
}

function swap(){
	if (images(counter)!=null){
		imagesSwap(images(counter));
		titleSwap(titles(counter));
		counter++;
	}
	else{
		imagesSwap(images(0));
		titleSwap(titles(0));
		counter = 0;
	}
}
function setFirst(){
	swap();
}



