$(document).ready(function() {

	var fb = $("#fb img").attr("src");
	$("#fb").hover(function() {
		$("img", this).attr("src", $("img", this).attr("data-hover"));
	
	}, function() {
	
		$("img", this).attr("src", fb);
	
	});
	
		
		// Mark the selected menu item with the "pin" icon.
		var selected = $("#menu .selected");
		
		selected.prepend('<div class="pin"></div>');  // Prepend the pin

		$(".pin").css("left", (selected.width() / 2));  // Position the pin to be centered in the <li> of the menu item
	

});
