$.fn.delay = function(time, callback){
    // Empty function:
    jQuery.fx.step.delay = function(){};
    // Return meaningless animation, (will be added to queue)
    return this.animate({delay:1}, time, callback);
}

$(document).ready(function() {
	$('.slideshow').cycle();
	
	$('.fading-buttons h3 a').each(function(index) {
		var target = $(this);
		var speed = 1600;
		
		index += 1;
		
		target.fadeTo(0, 0).delay((500 * index)).fadeTo((speed * index), 1).fadeTo('normal', 0.5).hover(
			function() {$(this).fadeTo(400, 1);},
			function() {$(this).fadeTo(400, 0.5);}
		);
	});
});
