(function($) {
$(document).ready(function() {

	$("a.fancy").fancybox({
		'overlayShow': true
	});
    // Loop through the nav list items
    $("#Navigation li").each(function() {

        // only perform the change on hover if the IDs don't match (so the active link doesn't change on hover)
		// for mouse actions
		$(this).children("a").hover(function() {
		    // add a class to the list item so that additional styling can be applied to the <em> and the text
		    $(this).addClass('over');
		    $(this).find("span").fadeIn(400);
		}, function() {
		    $(this).removeClass('over');
		    // fade out the span then remove it completely to prevent the animations from continuing to run if you move over different items quickly
		    $(this).find("span").fadeOut(400);
		});
    });
		
})
})(jQuery);