(function($, undefined)
{
    $(function()
	{
		//Google Map
		if ($('#map').length)
        {
			var myLatlng = new google.maps.LatLng(56.190483,-2.819714);
			var myOptions = 
			{
				zoom: 15,
				center: myLatlng,
				mapTypeId: google.maps.MapTypeId.ROADMAP
			}
			
			var map = new google.maps.Map(document.getElementById("map"), myOptions);
			
			var marker = new google.maps.Marker(
			{
				position: myLatlng, 
				map: map,
				title:"Elie Deli"
			});
		}
		
		/*$('#clickme').click(function() {
			$('#book').animate({
			  opacity: 0.25,
			  left: '+=50',
			  height: 'toggle'
			}, 5000, function() {
			  // Animation complete.
			});
		  });*/
		
		$('#buoy-img').hover(function(event)
		{
			event.preventDefault();
			$('#buoy-img').stop(true, true).animate(
			{
				left: "835px"
			}, 2000, function()
			{
			  $('#buoy-img').stop(true, true).animate(
				{
					left: "0"
				}, 4000);
			});
		});
		
	});
	
})(jQuery);
