var bikeimg = $('#bike-link img');
var nextbtn = $('#btn-next-arrow');
//var prev;
//var next;

cycleImage();
nextbtn.fadeIn(100)
//nextbtn.click(clickCycle);



function cycleImage(){ 
			//setTimeout(function(){$('img.bike-front:visible').fadeOut(1000); $('img.bike-front:hidden').fadeIn(1000);}, 4000);
	setTimeout(function(){$('#homebike1').fadeOut(1000); $('#homebike2').fadeIn(1000);}, 2500);
	setTimeout(function(){$('#homebike2').fadeOut(1000); $('#homebike3').fadeIn(1000);}, 8000);
	setTimeout(function(){$('#homebike3').fadeOut(1000); $('#homebike4').fadeIn(1000);}, 12000);
	setTimeout(function(){$('#homebike4').fadeOut(1000); $('#homebike1').fadeIn(1000);}, 16000);
	setTimeout(function(){$('#homebike1').fadeOut(1000); $('#homebike2').fadeIn(1000);}, 20000);
	setTimeout(function(){$('#homebike2').fadeOut(1000); $('#homebike3').fadeIn(1000);}, 24000);
	setTimeout(function(){$('#homebike3').fadeOut(1000); $('#homebike4').fadeIn(1000);}, 28000);
	setTimeout(function(){$('#homebike4').fadeOut(1000); $('#homebike1').fadeIn(1000);}, 32000);
}
/*
function clickCycle(){
	doFade();
	
	prev = advanceId(prev);
	next = advanceId(next);
	
	return false;
}

function advanceId(obj){		
	   if (obj.attr("id").charAt(8) == "1")
	   	return $('#homebike2');
	   if (obj.attr("id").charAt(8) == "2")
	   	return $('#homebike3');
	   if (obj.attr("id").charAt(8) == "3")
	   	return $('#homebike1');
}
function doFade(){
		prev.fadeOut(1000);
		next.fadeIn(1000);
}
*/
