$(document).ready(function(){
	//	Promises pop-ips
		$("#promise1-box").hover(function(){$("#promise1").show();},function(){$("#promise1").hide();});
		$("#promise2-box").hover(function(){$("#promise2").show();},function(){$("#promise2").hide();});
		$("#promise3-box").hover(function(){$("#promise3").show();},function(){$("#promise3").hide();});
		$("#promise4-box").hover(function(){$("#promise4").show();},function(){$("#promise4").hide();});
		$("#promise5-box").hover(function(){$("#promise5").show();},function(){$("#promise5").hide();});
	
	//	Default
		var banner = 1;
	
	//	Counting total banners
		var total_banners = $(".banner").length;
	
	//	Slide second banner
		$("#timer").animate({width:'0'}, 0).animate({width:'630px'}, 8000).animate({width:'0'}, 0);
			
	//	Show first banner
		$("#banner-"+banner).show();
	
	$("#timer").everyTime(8000, function()
	{
		//	Count
			banner = banner + 1;
		
		//	Hide banners
			$(".banner").hide();
		
		//	Slide second banner
			$("#timer").animate({width:'0'}, 0).animate({width:'630px'}, 8000).animate({width:'0'}, 0);
		
		//	Show second banner
			$("#banner-"+banner).show();
		
		//	Restart count
			if(banner == total_banners)
			{
				banner = 0;
			}
		
	});
});
