$(document).ready(function() { 

$.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);
}
	$('#directionsLink.animated').hover(function() {

		var frameRate = 60
	
		count = 0
			while(count > -600){
				$("#directionsLink.animated").animate({
											backgroundPosition: '0 ' + (count) + 'px'
											}, 0) 
				.delay(frameRate)
				count = count - 40;
			}
		});
});