// Initialize book now form and links
jQuery.fn.booknowForm = function(option){
	var ob = $(this);

	var origSubmitVal = ob.find('.submit').html();

	// Add submit button action
	ob.find('form').ajaxForm({dataType: 'json', beforeSubmit: function(arr, jqForm, options){if(formValidate(arr, jqForm, options)){ob.find('.submit').html("Sending Booking Request..."); return true;}else{ob.find('.submit').html(origSubmitVal); return false;}}, error:function(e,d,e,$form){ob.find('.submit').html(origSubmitVal);alert("Error");},success: function(responseText, statusText, xhr, $form){
		$form.fadeOut('slow', function(){
			ob.find(".success").fadeIn();
			setTimeout(function(){$.fancybox.close();}, 100000);
		});
		ob.find('.submit').html(origSubmitVal);
	}});
	
}

