// JavaScript 
$(function () {
    $('.thumb-holder a').stop().animate({
        "opacity": 1
    });
	
	var maxCount= $('#offers > *').length;
		var count=2;
		var previous=1;
		window.setInterval(function(){imageRotation();},10000); 
		
		function imageRotation() {
			$('#offer-'+previous).fadeOut();
			$('#offer-'+count).fadeIn();
			previous = count;
			count ++;
			if(count==maxCount+1) {
				count=1;
			}
			
		};
});
