jQuery(document).ready(function(){jQuery('form#idForm').each(function(){var that=this;jQuery(that).attr('name','idForm').attr('target','dispoprice');jQuery(that).find('.symlink').hover(function(){jQuery(this).addClass('hover');},function(){jQuery(this).removeClass('hover');});jQuery(that).find('select#HotelList').change(function(){$(this).focus();document.idForm.Hotelnames.value=$(this).val();});jQuery(that).find('select#fromyear').change(function(){update_departure();});jQuery(that).find('#btn-submit').click(function(){hhotelDispoprice(that);});jQuery(that).find('#link-cancel').click(function(){if (jQuery(that).find('#Hotelnames').val() !="All")  {hhotelcancel(jQuery(that).find('#Hotelnames').val(),'');} else  { alert("S'il vous pla\u00eet s\u00e9lectionner un h\u00f4tel\r\nPlease select an Hotel first"); } });jQuery(that).find('#link-options').click(function(){hhotelSearch(jQuery(that).find('#Clusternames').val(),"","","","","","&amp;FSTBKNGTrackLink=");});jQuery('a.book-now-link').live('click',function(){var rel=jQuery(this).attr('rel'),patt=/offer\|(.*)\|(.*)/,result=patt.exec(rel),hn,oc;if(result.length===3){hn=result[1];oc=result[2];if(typeof(hn)!=='undefined'){hhotelResaDirect(hn,'',oc,'','offers','');}}return false;});start();if(jQuery('#DatePicker').size()===1){var today=new Date(),rangeLow=new Date(today.getFullYear(),today.getMonth(),today.getDate()),rangeHigh=new Date(today.getFullYear()+1,12,31);var showLabelDate=function(argObj){jQuery('#DatePicker').val(datePickerController.printFormattedDate(argObj.date,"d-sl-m-sl-Y",true));};var opts={lang:'fr',formElements:{"fromday":"j","frommonth":"n","fromyear":"Y"},positioned:"datepicker-holder",noTodayButton:true,callbackFunctions:{"create":[showLabelDate],"dateset":[showLabelDate]}};datePickerController.createDatePicker(opts);datePickerController.setSelectedDate('fromday',(function(){var dat=new Date(jQuery('#fromyear').val(),jQuery('#frommonth').val(),jQuery('#fromday').val());}()));datePickerController.setRangeLow("fromday",(function(){var dat=new Date();dat.setDate(dat.getDate());return datePickerController.printFormattedDate(dat,'Y-m-d',false);}()));datePickerController.setRangeHigh("fromday",(function(){var dat=new Date();var year=(parseInt(dat.getFullYear()+1,10))+'';return year+'1231';}()));jQuery('#DatePicker').focus(function(){datePickerController.show('fromday');});}});});

