 $(document).ready( function(){
							 
	Shadowbox.init();

	
	 $('.fade').innerfade({ 
	 speed: 'slow', 
	 timeout: 5000, 
	 type: 'sequence', 
	 containerheight: '300px' });
							 

 	$("#start_date,#end_date").datepicker({ 
		    beforeShow: customRange, 
		    showOn: "both", 
		    dateFormat: "dd-mm-yy",     
		    buttonImage: "img/cal.gif", 
		    buttonImageOnly: true ,
			mandatory: true,
			onSelect: function(dateText) { 
		     } 
	});

						 
  } ); 
  
  
  function customRange(input) {
 return {minDate: (input.id == "end_date" ? $("#start_date").datepicker("getDate") : null)};
} 

  function validateFormEx() {

  if (!validateForm('f1'))
     return false;
     
  return true;
}
 
function sendme() 
{ 
//alert('Online reservations are currently offline. Please call at the hotel for availability');
//return false;

	if (!validateFormEx())
		return false;

    window.open("","myNewWin","width=970,height=690,toolbar=0,scrollbars=yes,location=no"); 
    var a = window.setTimeout("document.f1.submit();",500); 
    return true;
} 




    function initialize() {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map_canvas"));
        map.addControl(new GSmallMapControl());
						map.addControl(new GMapTypeControl(new GSize(10,10)));
						var ovMap = new GOverviewMapControl(new GSize(75,75));
						map.addControl(ovMap);

        map.setCenter(new GLatLng(37.91101, 23.71138), 15);
        map.setMapType(G_HYBRID_MAP);

        map.openInfoWindowHtml(map.getCenter(),
                   "<BR><b style='font-size:14px;font-family:verdana'>Galaxy Hotel</b>");
      }
    }

