

$(document).ready(function() {
	
	// GOOGLE MAPS
	if ( $("#locationMap").length > 0 ) {// if there is an element with id = locationMap {
		loadGMAP();
		$("body").unload( function() { 
			GUnload();
		});		
	}
	
	
	// GUEST COMMENTS
	if ( $("ul.guestcomments").length > 0 ) {	// if there is an element with id = locationMap {
			$('ul.guestcomments li').hover(
				function(){
					 $(this).addClass("comment-hover");
					 $(this).css("cursor", "pointer");
					 
				},
				function(){
					 $(this).removeClass("comment-hover");
				}
			);
	}
	
	//SLIDESHOW
	// override these globally if you like 
	$('#slideshow').cycle({
		fx:    'fade', 
		pause:  1
	});





	// Define basic Shadowbox options for using the image player.
   /* var options = {
      handleOversize: 'none'
      ,animate: true
      ,displayNav: true
      ,handleUnsupported: 'remove'
      ,initialHeight: 60
      ,initialWidth: 100
    };
    Shadowbox.init(options);*/


	



	



	

	
	
	
	
});

		




//	GOOGLE MAPS
function loadGMAP() {
	if (GBrowserIsCompatible()) {
	var map = new GMap2(document.getElementById("locationMap"));
	map.setCenter(new GLatLng(51.361277, -2.346954), 12);
	map.addControl(new GLargeMapControl());
    map.addControl(new GMapTypeControl());
    
    var point = new GLatLng(51.34742131332959, -2.3163986206054688);
    map.addOverlay(new GMarker(point));
    
    map.openInfoWindow(point, document.createTextNode("Iona Cottage"));
    
    
	}
 }




