(function($) {
	//This function makes the glow pulsate
	function pulsate(t) {
		$(t).animate({"text-shadow": "#ddea48 0 0 5pt"}, {queue: false, duration: 700,
			complete: function() {
				$(t).animate({"text-shadow": "#ddea48 0 0 23pt"}, {queue: false, duration: 700,
					complete: function() {
						if($(t).data("pulseTimer"))
							pulsate(t);
					}
				});
			}
		});
	}
	$(document).ready(function() {
		//Set up the pulsate function per element
		$("ul#navigation li a").hover(
			function() {
				$(this).data("pulseTimer", true);
				$(this).animate({"text-shadow": "#ddea48 0 0 15pt", color: "#ddea48"}, {queue: false, duration: 700, complete: function() { pulsate(this); }});
			},
			function() {
				$(this).data("pulseTimer", false);
				$(this).stop(true);
				$(this).animate({"text-shadow": "none", color: "#92998f"}, {queue: false, duration: 700});
			}
		);
	});
})(jQuery);