$(document).ready(function(){
		
	//Font replacement
	Cufon.replace('.edwardian', { fontFamily: 'edwardian script' });
	
	//Calander Box
	$("#datepicker").datepicker();
	
	//Slideshow Plugin
	$('.slideshow').cycle({ timeout:3500, speed:800 });

	
	//Google Map
	function initialize(address) {
	if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map"));
		
		var geocoder = new GClientGeocoder();
		geocoder.getLatLng(address,
			function(point){
				if (!point) {	
        			alert(address + " not found");
      			}
				else {		
					map.setCenter(point, 15);
        			map.setUIToDefault();
					var pholocation = new GLatLng(point);
					var phoIcon = new GIcon(G_DEFAULT_ICON);
					phoIcon.image = "/images/pin.png";					
					markerOptions = { icon:phoIcon };
					var marker = new GMarker(point, markerOptions);
					map.addOverlay(marker);
					
					GEvent.addListener(marker, "click", function() {
						var bubbleContent = "The Lodge,<br />162a High Street,<br />Boston Spa,<br />West Yorkshire<br />LS23 6BW<br /><br />";
						
            			marker.openInfoWindowHtml(bubbleContent,{maxHeight:20,maxWidth:20});
          			});
					
					
				}}
			);
      }
	} 
	
	http://maps.google.co.uk/maps?f=q&source=s_q&hl=en&geocode=&q=The+Lodge,+162a+High+Street,+Boston+Spa,+West+Yorkshire,+LS23+6BW&sll=53.800651,-4.064941&sspn=17.099342,39.506836&ie=UTF8&hq=&hnear=162A+High+St,+Boston+Spa,+Wetherby,+West+Yorkshire+LS23+6BW,+United+Kingdom&ll=53.905098,-1.346949&spn=0.001038,0.002411&z=19&layer=c&cbll=53.905162,-1.347089&panoid=cDHC1ebwBpUHIe-bj8Q0rw&cbp=12,197.87,,0,1.4
	
	
	
	initialize('The Lodge, 162a High Street, Boston Spa, West Yorkshire, LS23 6BW');


});
