LRINamespace.register("LRI.WEB.SS");LRI.WEB.SS.indexOf=function(List,Value){if(List.length>0) {for(i=0;i-1) {if($jQ("#sideSrchHeader").hasClass("sprite-Collapsed")==true) {$jQ("#sideSrchHeader").removeClass("sprite-Collapsed");$jQ("#sideSrchHeader").addClass("sprite-Expanded");} else {$jQ("#sideSrchHeader").removeClass("sprite-Expanded");$jQ("#sideSrchHeader").addClass("sprite-Collapsed");}} else {$jQ("#sideSrchHeader").toggleClass("sprite-Collapsed");}};LRI.WEB.SS.miniSrchResultsHeaderClick=function(){$jQ("#divMiniSearchResults").slideToggle("fast");$jQ("#miniSrchResultsHeader").toggleClass("sprite-Collapsed");};LRI.WEB.SS.LocationsCount=function(){LRI.WEB.SS.LocationsNum=$jQ("#LocationsCHK :checkbox:checked").filter(":not([count='0'])").length;var txt;if(LRI.WEB.SS.LocationsNum==0) {txt="All Locations";LRI.WEB.SS.TXT_LocationsSC=txt;} if(LRI.WEB.SS.LocationsNum>0){txt="";$jQ("#LocationsCHK :checkbox:checked").filter(":not([count='0'])").each(function(){txt+=", "+Destinations[$jQ(this).attr("ID").split("|")[0].substr(1)][2][$jQ(this).attr("ID").split("|")[1].substr(1)][2][$jQ(this).attr("ID").split("|")[2].substr(1)][1];});txt=txt.substr(2);LRI.WEB.SS.TXT_LocationsSC=txt;} $jQ("#LocationsDrop").children().eq(0).text(ss_trim(txt));};function Locations_Close(){LRI.WEB.SS.FLAG__LOC_OPEN=false;$jQ("#LocationsBody").hide();LRI.WEB.SS.form__listboxes__display();LRI.WEB.SS.SelectedLocations=[];if(LRI.WEB.SS.LocationsNum>0) $jQ("#LocationsCHK :checkbox:checked").filter(":not([count='0'])").each(function(){LRI.WEB.SS.SelectedLocations.push(Destinations[$jQ(this).attr("ID").split("|")[0].substr(1)][2][$jQ(this).attr("ID").split("|")[1].substr(1)][2][$jQ(this).attr("ID").split("|")[2].substr(1)][0]);});} function Locations_Populate(){var LL="";var RegionsToUncheck=[];$jQ("#RegionsCHK :checkbox:checked").filter(":not([count='0'])").each(function(){var i=$jQ(this).attr("ID").split("|");i[0]=i[0].substr(1);i[1]=i[1].substr(1);var RegionCheck=true;LL+="
";for(var j in Destinations[i[0]][2][i[1]][2]) {RegionCheck=RegionCheck&&!(LRI.WEB.SS.indexOf(LRI.WEB.SS.SelectedLocations,Destinations[i[0]][2][i[1]][2][j][0])>=0);LL+="      =0)?"Checked":"")+">
";} if(!RegionCheck){RegionsToUncheck.push("#LL"+i[0]+"R"+i[1]);}});$jQ("#LocationsCHK").html(LL);for(i in RegionsToUncheck){$jQ(RegionsToUncheck[i]).removeAttr("checked");} LRI.WEB.SS.LocationsCount();Locations_Close();LRI.WEB.SS.form__intializeComponents_linkEvents__Loc__inner();} function RegionsCount(){LRI.WEB.SS.RegionsNum=$jQ("#RegionsCHK :checkbox:checked").filter(":not([count='0'])").length;var txt;if(LRI.WEB.SS.RegionsNum==0) {txt="All Regions";LRI.WEB.SS.TXT_RegionsSC=txt;LRI.WEB.SS.TXT_LocationsSC="All Locations";} if(LRI.WEB.SS.RegionsNum>0){txt="";$jQ("#RegionsCHK :checkbox:checked").filter(":not([count='0'])").each(function(){txt+=", "+Destinations[$jQ(this).attr("ID").split("|")[0].substr(1)][2][$jQ(this).attr("ID").split("|")[1].substr(1)][1];});txt=txt.substr(2);LRI.WEB.SS.TXT_RegionsSC=txt;} $jQ("#RegionsDrop").children().eq(0).text(ss_trim(txt));} function Regions_Close(){LRI.WEB.SS.FLAG__REG_OPEN=false;$jQ("#RegionsBody").hide();LRI.WEB.SS.form__listboxes__display();$jQ("#LocationsCHK").html("");LRI.WEB.SS.SelectedRegions=[];if(LRI.WEB.SS.RegionsNum>0) {$jQ("#RegionsCHK :checkbox:checked").filter(":not([count='0'])").each(function(){LRI.WEB.SS.SelectedRegions.push(Destinations[$jQ(this).attr("ID").split("|")[0].substr(1)][2][$jQ(this).attr("ID").split("|")[1].substr(1)][0]);});Locations_Populate();} else LRI.WEB.SS.SelectedLocations=[];} function Regions_Populate(){var RR="";var DestToUncheck=[];$jQ("#DestinationsCHK :checkbox:checked").filter(":not([count='0'])").each(function(){var i=$jQ(this).attr("ID").substr(1);var DestCheck=true;RR+="
";for(var j in Destinations[i][2]) {DestCheck=DestCheck&&!(LRI.WEB.SS.indexOf(LRI.WEB.SS.SelectedRegions,Destinations[i][2][j][0])>=0);RR+="      =0)?"Checked":"")+">
";} if(!DestCheck){DestToUncheck.push("#RR"+i);}});$jQ("#RegionsCHK").html(RR);for(i in DestToUncheck){$jQ(DestToUncheck[i]).removeAttr("checked");} RegionsCount();Regions_Close();LRI.WEB.SS.form__intializeComponents_linkEvents__Reg__inner();} function ss_trim(txt) {var limit=30 if(txt.length>limit) {txt=txt.substr(0,limit)+"...";} return txt;} function DestinationsCount(){LRI.WEB.SS.DestinationsNum=$jQ("#DestinationsCHK :checkbox:checked").filter(":not([count='0'])").length;var txt;if(LRI.WEB.SS.DestinationsNum==0) {txt="All Destinations";LRI.WEB.SS.TXT_RegionsSC="All Regions";LRI.WEB.SS.TXT_LocationsSC="All Locations";} if(LRI.WEB.SS.DestinationsNum>0){txt="";$jQ("#DestinationsCHK :checkbox:checked").filter(":not([count='0'])").each(function(){txt+=", "+Destinations[$jQ(this).attr("ID").substr(1)][1];});txt=txt.substr(2);} $jQ("#DestinationsDrop").children().eq(0).text(ss_trim(txt));LRI.WEB.SS.TXT_DestinationsSC=txt;} function Destinations_Close(){LRI.WEB.SS.FLAG__DEST_OPEN=false;$jQ("#DestinationsBody").hide();LRI.WEB.SS.form__listboxes__display();$jQ("#RegionsCHK").html("");$jQ("#LocationsCHK").html("");LRI.WEB.SS.SelectedDestinations=[];if(LRI.WEB.SS.DestinationsNum>0) {$jQ("#DestinationsCHK :checkbox:checked").filter(":not([count='0'])").each(function(){LRI.WEB.SS.SelectedDestinations.push(Destinations[$jQ(this).attr("ID").substr(1)][0]);});Regions_Populate();$jQ("#Regions").show();$jQ("#RegionsCHK :checkbox").filter(":not([count='0'])").click(function(){$jQ("#RR"+$jQ(this).attr("ID").split("|")[0].substr(1)).removeAttr("checked");RegionsCount();});$jQ("#RegionsCHK label").hover(function(){$jQ(this).css("backgroundColor","#CCCCCC");},function(){$jQ(this).css("backgroundColor","#FFFFFF");});} else{LRI.WEB.SS.SelectedRegions=[];LRI.WEB.SS.SelectedLocations=[];}} function Destinations_Populate(){var DD="";DD+="
";var DestCheck=true;for(var i in Destinations) {DestCheck=DestCheck&&!(LRI.WEB.SS.indexOf(LRI.WEB.SS.SelectedDestinations,Destinations[i][0])>=0);DD+="      =0)?"Checked":"")+">
";} $jQ("#DestinationsCHK").html(DD);if(!DestCheck){$jQ("#DD").removeAttr("checked");} DestinationsCount();Destinations_Close();} function Prices_Populate(){$jQ("#PriceMin").html("");$jQ("#PriceMax").html("");for(var i in PriceMinUS){var sel="";if(LRI.WEB.SS.SelectedPrices.length>0) {if(Math.round(PriceMinUS[i][0]*LRI.WEB.SS.ExchFactor)==LRI.WEB.SS.SelectedPrices[0]) sel="selected";} $jQ("#PriceMin").append('');} sel="";for(var i=0;i1) {if(Math.round(PriceMaxUS[i][0]*LRI.WEB.SS.ExchFactor)==LRI.WEB.SS.SelectedPrices[1]) sel="selected";} $jQ("#PriceMax").append('');} sel="";if(LRI.WEB.SS.SelectedPrices[1]==null||LRI.WEB.SS.SelectedPrices[1]==''||LRI.WEB.SS.SelectedPrices[1]=='999999999') sel="selected";$jQ("#PriceMax").append('');LRI.WEB.SS.TXT_PriceSC=$jQ("#PriceMin option:selected").text()+" to "+$jQ("#PriceMax option:selected").text()+'';} function FeaturesCount(){LRI.WEB.SS.FeaturesNum=$jQ("#FeaturesCHK :checkbox:checked").length;var txt;txt="All Features";LRI.WEB.SS.TXT_FeaturesSC=txt;LRI.WEB.SS.SelectedFeatures=[];if(LRI.WEB.SS.FeaturesNum>0){txt="";$jQ("#FeaturesCHK :checkbox:checked").each(function(){txt+=", "+Features[$jQ(this).attr("ID").substr(1)][1];LRI.WEB.SS.SelectedFeatures.push(Features[$jQ(this).attr("ID").substr(1)][0]);});txt=txt.substr(2);LRI.WEB.SS.TXT_FeaturesSC=txt;} else{txt="Select Features";} $jQ("#FeaturesDrop").children().eq(0).text(ss_trim(txt));} LRI.WEB.SS.Features_Close=function() {LRI.WEB.SS.FLAG__FT_OPEN=false;$jQ("#FeaturesBody").hide();} function Features_Populate(){var FF="";for(var i in Features){FF+="=0)?"Checked":"")+" >"+"
";} $jQ("#FeaturesCHK").html(FF);FeaturesCount();} function VacationIdeasCount(){LRI.WEB.SS.VacationIdeasNum=$jQ("#VacationIdeasCHK :checkbox:checked").length;var txt;if(LRI.WEB.SS.VacationIdeasNum==1){txt="1 Vacation Ideas";} else{txt=LRI.WEB.SS.VacationIdeasNum+" Vacation Ideas";} $jQ("#VacationIdeasDrop").children().eq(0).text(txt);if(LRI.WEB.SS.VacationIdeasNum>0){txt="";$jQ("#VacationIdeasCHK :checkbox:checked").each(function(){txt+=", "+$jQ(this).parent().text();});txt=txt.substr(2);} else{txt="None";} LRI.WEB.SS.TXT_VacationIdeasSC=txt;} function VacationIdeas_Populate(){var VV="";for(var i in VacationIdeas) {VV+="
";} $jQ("#VacationIdeasCHK").html(VV);VacationIdeasCount();} LRI.WEB.SS.Bedrooms_Populate=function(){for(var i in BedroomMin){var sel="";if(LRI.WEB.SS.SelectedBedrooms.length>0) {if(BedroomMin[i][0]==LRI.WEB.SS.SelectedBedrooms[0]) sel="selected";} $jQ("#BedMin").append('');} for(var i in BedroomMax){var sel="";if(LRI.WEB.SS.SelectedBedrooms.length>1) {if(BedroomMax[i][0]==LRI.WEB.SS.SelectedBedrooms[1]) sel="selected";} else if(i==8){sel="selected";} $jQ("#BedMax").append('');} LRI.WEB.SS.TXT_BedroomsSC=$jQ("#BedMin option:selected").text()+" to "+$jQ("#BedMax option:selected").text()+'';};LRI.WEB.SS.Currency_Populate=function(){var SelectedCurrencyIndex=-1;var sel='';for(var i in Currencies){sel='';if(LRI.WEB.SS.SelectedCurrency==Currencies[i][0]){sel='selected';} if(LRI.WEB.SS.SelectedCurrency==Currencies[i][0]){SelectedCurrencyIndex=i;} $jQ("#CurrencySelector").append('');} var tmpvarIndexCurrency=0;for(var i in Currencies){if(Currencies[i][0]==Number($jQ("#CurrencySelector option:selected").val())){tmpvarIndexCurrency=i;}} LRI.WEB.SS.ExchFactor=Currencies[tmpvarIndexCurrency][3];};LRI.WEB.SS.readyJQ=function(){var url=document.URL;if(url.search(/TopPromotions_2.aspx/)==-1) {$jQ("#pnlsearchparam").show();} $jQ(".search-title").click(function(){LRI.WEB.SS.headerClick();});$jQ(".mini-search-results-title").click(function(){LRI.WEB.SS.miniSrchResultsHeaderClick();});var i;if(default_destinationId!=null) {var arr=default_destinationId.split(",");for(i in arr) {LRI.WEB.SS.SelectedDestinations.push(arr[i]);}} if(default_regionId!=null) {var arr=default_regionId.split(",");for(i in arr) LRI.WEB.SS.SelectedRegions.push(arr[i]);} if(default_locationId!=null) {var arr=default_locationId.split(",");for(i in arr) LRI.WEB.SS.SelectedLocations.push(arr[i]);} if(default_bedMin!='') LRI.WEB.SS.SelectedBedrooms.push(default_bedMin);if(default_bedMax!='') LRI.WEB.SS.SelectedBedrooms.push(default_bedMax);if(default_priceMin!='') LRI.WEB.SS.SelectedPrices.push(default_priceMin);if(default_priceMax!='') LRI.WEB.SS.SelectedPrices.push(default_priceMax);if(default_vacationIdeas!='') LRI.WEB.SS.SelectedVacationIdeas.push(default_vacationIdeas);if(default_featureId!=null) {var arr=default_featureId.split(",");for(i in arr) LRI.WEB.SS.SelectedFeatures.push(arr[i]);} if(default_currencyId!=null) {LRI.WEB.SS.SelectedCurrency=default_currencyId;} LRI.WEB.SS.ref__BedMin=document.getElementById("BedMin");LRI.WEB.SS.ref__BedMax=document.getElementById("BedMax");LRI.WEB.SS.ref__PriceMin=document.getElementById("PriceMin");LRI.WEB.SS.ref__PriceMax=document.getElementById("PriceMax");LRI.WEB.SS.ref__CurrencySelector=document.getElementById("CurrencySelector");LRI.WEB.SS.form__intializeComponents();};LRI.WEB.SS.form__clearComponents=function(){$jQ("#DestinationsCHK").html("");$jQ("#BedMin").html("");$jQ("#BedMax").html("");$jQ("#CurrencySelector").html("");$jQ("#PriceMin").html("");$jQ("#PriceMax").html("");$jQ("#FeaturesCHK").html("");};LRI.WEB.SS.form__populateComponents=function(){Destinations_Populate();RegionsCount();LRI.WEB.SS.LocationsCount();LRI.WEB.SS.form__intializeComponents_linkEvents__Dest_innerChkBoxes();LRI.WEB.SS.Bedrooms_Populate();LRI.WEB.SS.Currency_Populate();Prices_Populate();Features_Populate();LRI.WEB.SS.form__intializeComponents_linkEvents__Features_innerChkBoxes();};LRI.WEB.SS.form__intializeComponents_linkEvents__Dest=function(){$jQ("#DestinationsDrop").click(function(){if($jQ("#DestinationsBody").is(':visible')){Destinations_Close();LRI.WEB.SS.DESTINATION_OPEN=false;} else {$jQ("#DestinationsBody").show();LRI.WEB.SS.DESTINATION_OPEN=true;LRI.WEB.SS.FLAG__DEST_OPEN=true;LRI.WEB.SS.ref__PriceMin.style.visibility='hidden';LRI.WEB.SS.ref__PriceMax.style.visibility='hidden';LRI.WEB.SS.ref__CurrencySelector.style.visibility='hidden';LRI.WEB.SS.ref__BedMin.style.visibility='hidden';LRI.WEB.SS.ref__BedMax.style.visibility='hidden';}});$jQ("#DestinationsDrop").mouseout(function(){LRI.WEB.SS.FLAG__DEST_MOUSEOUT=true;});$jQ("#DestinationsDrop").mouseover(function(){LRI.WEB.SS.FLAG__DEST_MOUSEOUT=false;});$jQ("#DestinationsBody").mouseout(function(){LRI.WEB.SS.FLAG__DEST_MOUSEOUT=true;});$jQ("#DestinationsBody").mouseover(function(){LRI.WEB.SS.FLAG__DEST_MOUSEOUT=false;});LRI.WEB.SS.form__intializeComponents_linkEvents__Dest_innerChkBoxes();$jQ("#DestinationsFooter div").eq(1).click(function(){Destinations_Close();});};LRI.WEB.SS.form__intializeComponents_linkEvents__Dest_innerChkBoxes=function(){$jQ("#DestinationsCHK :checkbox").filter(":not([count='0'])").click(function(){$jQ("#DD").get(0).checked="";DestinationsCount();});$jQ("#DestinationsCHK label").hover(function(){$jQ(this).css("backgroundColor","#CCCCCC");},function(){$jQ(this).css("backgroundColor","#FFFFFF");});$jQ("#DestinationsFooter div").eq(0).click(function(){$jQ("#DestinationsCHK > *:checkbox").removeAttr("checked");$jQ("#DestinationsCHK > *:checkbox[count='0']").attr("checked","checked");DestinationsCount();});$jQ("#DestinationsCHK :checkbox[count='0']:checked").click(function(){$jQ("#DestinationsCHK :checkbox:not([count='0'])").removeAttr("checked");$jQ(this).attr("checked","checked");DestinationsCount();});} LRI.WEB.SS.form__listboxes__display=function(){LRI.WEB.SS.ref__PriceMin.style.visibility='';LRI.WEB.SS.ref__PriceMax.style.visibility='';LRI.WEB.SS.ref__CurrencySelector.style.visibility='';LRI.WEB.SS.ref__BedMin.style.visibility='';LRI.WEB.SS.ref__BedMax.style.visibility='';};LRI.WEB.SS.form__intializeComponents_linkEvents__Reg=function(){$jQ("#RegionsDrop").click(function(){if($jQ("#RegionsBody").is(':visible')){Regions_Close();LRI.WEB.SS.FLAG__REG_OPEN=false;} else{var height=$jQ("#RegionsBody").height();$jQ("#RegionsBody").show();LRI.WEB.SS.FLAG__REG_OPEN=true;if(height>=140) {LRI.WEB.SS.ref__PriceMin.style.visibility='hidden';LRI.WEB.SS.ref__PriceMax.style.visibility='hidden';LRI.WEB.SS.ref__CurrencySelector.style.visibility='hidden';LRI.WEB.SS.ref__BedMin.style.visibility='hidden';LRI.WEB.SS.ref__BedMax.style.visibility='hidden';} else if(height>=90) {LRI.WEB.SS.ref__BedMin.style.visibility='hidden';LRI.WEB.SS.ref__BedMax.style.visibility='hidden';LRI.WEB.SS.ref__CurrencySelector.style.visibility='hidden';} else if(height>=68) {LRI.WEB.SS.ref__BedMin.style.visibility='hidden';LRI.WEB.SS.ref__BedMax.style.visibility='hidden';}}});$jQ("#RegionsFooter div").eq(0).click(function(){$jQ("#RegionsCHK > *:checkbox").removeAttr("checked");$jQ("#RegionsCHK > *:checkbox[count='0']").attr("checked","checked");RegionsCount();});$jQ("#RegionsFooter div").eq(1).click(function(){Regions_Close();});$jQ("#RegionsDrop").mouseout(function(){LRI.WEB.SS.FLAG__REG_MOUSEOUT=true;});$jQ("#RegionsDrop").mouseover(function(){LRI.WEB.SS.FLAG__REG_MOUSEOUT=false;});$jQ("#RegionsBody").mouseout(function(){LRI.WEB.SS.FLAG__REG_MOUSEOUT=true;});$jQ("#RegionsBody").mouseover(function(){LRI.WEB.SS.FLAG__REG_MOUSEOUT=false;});};LRI.WEB.SS.form__intializeComponents_linkEvents__Reg__inner=function(){$jQ("#RegionsCHK :checkbox").filter(":not([count='0'])").click(function(){$jQ("#RR"+$jQ(this).attr("ID").split("|")[0].substr(1)).removeAttr("checked");RegionsCount();});$jQ("#RegionsCHK :checkbox[count='0']:checked").click(function(){id_Dest=$jQ(this).attr("ID").substr(2);$jQ("#RegionsCHK :checkbox:not([count='0'])").filter(function(index){return $jQ(this).attr("ID").split("|")[0].substr(1)==id_Dest;}).removeAttr("checked");$jQ(this).attr("checked","checked");});};LRI.WEB.SS.form__intializeComponents_linkEvents__Loc=function(){$jQ("#LocationsDrop").click(function(){if($jQ("#LocationsBody").is(':visible')){Locations_Close();LRI.WEB.SS.FLAG__LOC_OPEN=false;} else {$jQ("#LocationsBody").show();LRI.WEB.SS.FLAG__LOC_OPEN=true;var height=$jQ("#LocationsBody").height();$jQ("#LocationsBody").show();if(height>=90) {LRI.WEB.SS.ref__PriceMin.style.visibility='hidden';LRI.WEB.SS.ref__PriceMax.style.visibility='hidden';LRI.WEB.SS.ref__CurrencySelector.style.visibility='hidden';LRI.WEB.SS.ref__BedMin.style.visibility='hidden';LRI.WEB.SS.ref__BedMax.style.visibility='hidden';} else if(height>=40) {LRI.WEB.SS.ref__BedMin.style.visibility='hidden';LRI.WEB.SS.ref__BedMax.style.visibility='hidden';LRI.WEB.SS.ref__CurrencySelector.style.visibility='hidden';} else if(height>=18) {LRI.WEB.SS.ref__BedMin.style.visibility='hidden';LRI.WEB.SS.ref__BedMax.style.visibility='hidden';}}});$jQ("#LocationsFooter div").eq(0).click(function(){$jQ("#LocationsCHK > *:checkbox").removeAttr("checked");$jQ("#LocationsCHK > *:checkbox[count='0']").attr("checked","checked");LRI.WEB.SS.LocationsCount();});$jQ("#LocationsFooter div").eq(1).click(function(){Locations_Close();});$jQ("#LocationsDrop").mouseout(function(){LRI.WEB.SS.FLAG__LOC_MOUSEOUT=true;});$jQ("#LocationsDrop").mouseover(function(){LRI.WEB.SS.FLAG__LOC_MOUSEOUT=false;});$jQ("#LocationsBody").mouseout(function(){LRI.WEB.SS.FLAG__LOC_MOUSEOUT=true;});$jQ("#LocationsBody").mouseover(function(){LRI.WEB.SS.FLAG__LOC_MOUSEOUT=false;});};LRI.WEB.SS.form__intializeComponents_linkEvents__Loc__inner=function(){$jQ("#LocationsCHK :checkbox").filter(":not([count='0'])").click(function(){$jQ("#LL"+$jQ(this).attr("ID").split("|")[0].substr(1)+"R"+$jQ(this).attr("ID").split("|")[1].substr(1)).removeAttr("checked");LRI.WEB.SS.LocationsCount();});$jQ("#LocationsCHK label").hover(function(){$jQ(this).css("backgroundColor","#CCCCCC");},function(){$jQ(this).css("backgroundColor","#FFFFFF");});$jQ("#LocationsCHK :checkbox[count='0']:checked").click(function(){id_Reg="D"+$jQ(this).attr("ID").substr(2).split("R")[0]+"|R"+$jQ(this).attr("ID").substr(2).split("R")[1]+"|";$jQ("#LocationsCHK :checkbox:not([count='0'])").filter(function(index){return $jQ(this).attr("ID").split("L")[0]==id_Reg;}).removeAttr("checked");$jQ(this).attr("checked","checked");LRI.WEB.SS.LocationsCount();});};LRI.WEB.SS.form__intializeComponents_linkEvents__Bed=function(){$jQ("#BedroomRange :input").change(function(){if(Number($jQ("#BedMin option:selected").val())>Number($jQ("#BedMax option:selected").val())) {tmp=$jQ("#BedMin option:selected").val();$jQ("#BedMin option[value='"+$jQ("#BedMax option:selected").val()+"']").get(0).selected="selected";$jQ("#BedMax option[value='"+tmp+"']").get(0).selected="selected";} LRI.WEB.SS.TXT_BedroomsSC=$jQ("#BedMin option:selected").text()+" to "+$jQ("#BedMax option:selected").text()+'';});};LRI.WEB.SS.form__intializeComponents_linkEvents__Currency=function(){$jQ("#CurrencySelector").change(function(){var tmpvarIndexCurrency=0;for(var i in Currencies){if(Currencies[i][0]==Number($jQ("#CurrencySelector option:selected").val())){tmpvarIndexCurrency=i;}} LRI.WEB.SS.ExchFactor=Currencies[tmpvarIndexCurrency][3];var TmpMaxPriceIndex=document.getElementById("PriceMax").selectedIndex;var TmpMinPriceIndex=document.getElementById("PriceMin").selectedIndex;Prices_Populate();document.getElementById("PriceMax").selectedIndex=TmpMaxPriceIndex;document.getElementById("PriceMin").selectedIndex=TmpMinPriceIndex;});};LRI.WEB.SS.form__intializeComponents_linkEvents__Prices=function(){$jQ("#PriceRange :input").change(function(){if(Number($jQ("#PriceMin option:selected").val())>Number($jQ("#PriceMax option:selected").val())) {tmp=$jQ("#PriceMin option:selected").val();$jQ("#PriceMin option[value='"+$jQ("#PriceMax option:selected").val()+"']").get(0).selected="selected";$jQ("#PriceMax option[value='"+tmp+"']").get(0).selected="selected";} LRI.WEB.SS.TXT_PriceSC=$jQ("#PriceMin option:selected").text()+" to "+$jQ("#PriceMax option:selected").text()+'';LRI.WEB.SS.SelectedPrices[0]=$jQ("#PriceMin option:selected").val();});};LRI.WEB.SS.form__intializeComponents_linkEvents__Features=function(){$jQ("#FeaturesDrop").click(function(){$jQ("#FeaturesBody").toggle();if(LRI.WEB.SS.FLAG__FT_OPEN==false) LRI.WEB.SS.FLAG__FT_OPEN=true;else LRI.WEB.SS.FLAG__FT_OPEN=false;});$jQ("#FeaturesDrop").mouseout(function(){LRI.WEB.SS.FLAG__FT_MOUSEOUT=true;});$jQ("#FeaturesDrop").mouseover(function(){LRI.WEB.SS.FLAG__FT_MOUSEOUT=false;});$jQ("#FeaturesBody").mouseout(function(){LRI.WEB.SS.FLAG__FT_MOUSEOUT=true;});$jQ("#FeaturesBody").mouseover(function(){LRI.WEB.SS.FLAG__FT_MOUSEOUT=false;});LRI.WEB.SS.form__intializeComponents_linkEvents__Features_innerChkBoxes();};LRI.WEB.SS.form__intializeComponents_linkEvents__Features_innerChkBoxes=function(){$jQ("#FeaturesCHK :checkbox").click(function(){FeaturesCount();});$jQ("#FeaturesCHK label").hover(function(){$jQ(this).css("backgroundColor","#CCCCCC");},function(){$jQ(this).css("backgroundColor","#FFFFFF");});$jQ("#FeaturesFooter div").eq(0).click(function(){$jQ("#FeaturesCHK > * :checkbox").removeAttr("checked");FeaturesCount();});$jQ("#FeaturesFooter div").eq(1).click(function(){LRI.WEB.SS.Features_Close();});};LRI.WEB.SS.form__intializeComponents=function(){Destinations_Populate();LRI.WEB.SS.form__intializeComponents_linkEvents__Dest();LRI.WEB.SS.form__intializeComponents_linkEvents__Reg();LRI.WEB.SS.form__intializeComponents_linkEvents__Loc();LRI.WEB.SS.Bedrooms_Populate();LRI.WEB.SS.form__intializeComponents_linkEvents__Bed();LRI.WEB.SS.Currency_Populate();LRI.WEB.SS.form__intializeComponents_linkEvents__Currency();Prices_Populate();LRI.WEB.SS.form__intializeComponents_linkEvents__Prices();Features_Populate();LRI.WEB.SS.form__intializeComponents_linkEvents__Features();};