hours= 30;

function startTimea(){
	var timea= new Date();
	if (hours==30){
	
		document.bannera.src = bannera1.src;
		document.bannerb.src = bannerb1.src;
		document.bannerc.src = bannerc1.src;
		document.bannerd.src = bannerd1.src;
		//document.bannere.src = bannere1.src;
	}	
	hours= timea.getHours();
	mins= timea.getMinutes();
	secs= timea.getSeconds();
	closeTime=hours*3600+mins*60+secs;
	closeTime+=8;    // How many seconds til the next rotation
	Timer();}

function startTimeb(){}
function startTimec(){}
function startTimed(){}
//function startTimee(){}

function Timer(){
	var timea= new Date();
	hours= timea.getHours();
	mins= timea.getMinutes();
	secs= timea.getSeconds();
	curTimea=hours*3600+mins*60+secs
	if (curTimea>=closeTime){
		if (a < linksa.length - 1){    // The number a is the amount of banners that you have
			a++;
			document.bannera.src = eval("bannera" + a + ".src");}
		else {
			a = 1;
			document.bannera.src = eval("bannera" + a + ".src");}
			

		if (b < linksb.length - 1){
			b++;
			document.bannerb.src = eval("bannerb" + b + ".src");}
		else{
			b = 1;
			document.bannerb.src = eval("bannerb" + b + ".src");}

		if (c < linksc.length - 1){
			c++;
			document.bannerc.src = eval("bannerc" + c + ".src");}
        	else{
			c = 1;
			document.bannerc.src = eval("bannerc" + c + ".src");}
			
		if (d < linksc.length - 1){
			d++;
			document.bannerd.src = eval("bannerd" + d + ".src");}
        	else{
			d = 1;
			document.bannerd.src = eval("bannerd" + d + ".src");}	
			

		startTimea();
	}
	else{
		window.setTimeout("Timer()",5000)
		}
	}
		
function clickLinka(){ location = linksa[a]; }
function descripta(){ window.status = descriptiona[a]; }
function clickLinkb(){ location = linksb[b]; }
function descriptb(){ window.status = descriptionb[b]; }
function clickLinkc(){ location = linksc[c]; }
function descriptc(){ window.status = descriptionc[c]; }
function clickLinkd(){ location = linksd[d]; }
function descriptd(){ window.status = descriptiond[d]; }

