var SaveWayFinder={ContactId:CookieCollection.ContactId,RERID:""},Search={SubmitSearch:function(n){commonFunctions.ValidateForm(".alt-search__form");n.preventDefault()}},indexFunctions;$(document).ready(function(){indexFunctions.InitializeWayFinder()});indexFunctions={HandleWayFinder:function(n,t,i,r){n.preventDefault();SaveWayFinder.ContactId!=undefined?(SaveWayFinder.RERID=t,commonFunctions.postJson({url:WebAPIUrls.SaveWayFinderURL,param:SaveWayFinder,async:"async",IsTranslationObjectRequired:!1,successAction:function(){indexFunctions.WayFinderRedirections(i,r)},errorAction:function(){indexFunctions.WayFinderRedirections(i,r)}})):indexFunctions.WayFinderRedirections(i,r)},WayFinderRedirections:function(n,t){var i="/buy/openhouse/oahu/",r="/neighborhoods",f="/learn/home-buying/future-homeowner-seminars/",h="/learn/home-buying/",e="/learn/selling-your-home/crafting-a-marketing-strategy-with-your-agent/",o="/mylocations/home-partner",c="/learn/selling-your-home/",u="/lhv",s="/learn/affordable-housing/",l="/learn/real-estate-tools",a="/learn/home-buying/5-steps-to-owning-your-first-home/",v="/learn/market-reports/";n=="a place to start"&&t=="a first time homebuyer"?commonFunctions.RedirectToPageWithInterval(f,0):n=="tips & advice on buying"&&t=="a first time homebuyer"?commonFunctions.RedirectToPageWithInterval(h,0):n=="steps to buying a home"&&t=="a first time homebuyer"?commonFunctions.RedirectToPageWithInterval(a,0):n=="a neighborhood"&&t=="a first time homebuyer"?commonFunctions.RedirectToPageWithInterval(r,0):n=="affordable housing"&&t=="a first time homebuyer"?commonFunctions.RedirectToPageWithInterval(s,0):n=="upcoming open houses"&&t=="a first time homebuyer"?commonFunctions.RedirectToPageWithInterval(i,0):n=="a place to start"&&t=="a military member"?commonFunctions.RedirectToPageWithInterval("/learn/military/",0):n=="tips & advice on buying"&&t=="a military member"?commonFunctions.RedirectToPageWithInterval("/learn/military/why-you-should-buy-a-home-in-paradise/",0):n=="real estate tools"&&t=="a military member"?commonFunctions.RedirectToPageWithInterval(l,0):n=="a neighborhood"&&t=="a military member"?commonFunctions.RedirectToPageWithInterval("/learn/military/choosing-a-neighborhood/",0):n=="relocation information"&&t=="a military member"?commonFunctions.RedirectToPageWithInterval("/learn/military/military-relocation-guide/",0):n=="upcoming open houses"&&t=="a military member"?commonFunctions.RedirectToPageWithInterval(i,0):n=="my homes value"&&t=="a home owner"?commonFunctions.RedirectToPageWithInterval(u,0):n=="discounts on household good"&&t=="a home owner"?commonFunctions.RedirectToPageWithInterval(o,0):n=="real estate market reports"&&t=="a home owner"?commonFunctions.RedirectToPageWithInterval(v,0):n=="a neighborhood"&&t=="a home owner"?commonFunctions.RedirectToPageWithInterval(r,0):n=="strategy for selling your home"&&t=="a home owner"?commonFunctions.RedirectToPageWithInterval(e,0):n=="upcoming open houses"&&t=="a home owner"?commonFunctions.RedirectToPageWithInterval(i,0):n=="a place to start"&&t=="an investor"?commonFunctions.RedirectToPageWithInterval("/learn/investing-in-real-estate/",0):n=="home values"&&t=="an investor"?commonFunctions.RedirectToPageWithInterval(u,0):n=="new construction and developments"&&t=="an investor"?commonFunctions.RedirectToPageWithInterval("/buy/new-developments",0):n=="a neighborhood"&&t=="an investor"?commonFunctions.RedirectToPageWithInterval(r,0):n=="real estate market reports"&&t=="an investor"?commonFunctions.RedirectToPageWithInterval(v,0):n=="upcoming open houses"&&t=="an investor"?commonFunctions.RedirectToPageWithInterval(i,0):n=="a place to start"&&t=="a renter"?commonFunctions.RedirectToPageWithInterval(a,0):n=="tips & advice on buying"&&t=="a renter"?commonFunctions.RedirectToPageWithInterval(f,0):n=="real estate tools"&&t=="a renter"?commonFunctions.RedirectToPageWithInterval(l,0):n=="a neighborhood"&&t=="a renter"?commonFunctions.RedirectToPageWithInterval(r,0):n=="affordable housing"&&t=="a renter"?commonFunctions.RedirectToPageWithInterval(s,0):n=="upcoming open houses"&&t=="a renter"?commonFunctions.RedirectToPageWithInterval(i,0):n=="home valuation"&&t=="a past client"?commonFunctions.RedirectToPageWithInterval(u,0):n=="tips & advice on selling"&&t=="a past client"?commonFunctions.RedirectToPageWithInterval(c,0):n=="discounts on household good"&&t=="a past client"?commonFunctions.RedirectToPageWithInterval(o,0):n=="a neighborhood"&&t=="a past client"?commonFunctions.RedirectToPageWithInterval(r,0):n=="strategy for selling your home"&&t=="a past client"?commonFunctions.RedirectToPageWithInterval(e,0):n=="upcoming open houses"&&t=="a past client"?commonFunctions.RedirectToPageWithInterval(i,0):n=="home valuation"&&t=="a seller"?commonFunctions.RedirectToPageWithInterval(u,0):n=="tips & advice on selling"&&t=="a seller"?commonFunctions.RedirectToPageWithInterval(c,0):n=="discounts on household good"&&t=="a seller"?commonFunctions.RedirectToPageWithInterval(o,0):n=="a neighborhood"&&t=="a seller"?commonFunctions.RedirectToPageWithInterval(r,0):n=="strategy for selling your home"&&t=="a seller"?commonFunctions.RedirectToPageWithInterval(e,0):n=="upcoming open houses"&&t=="a seller"?commonFunctions.RedirectToPageWithInterval(i,0):n=="a place to start"&&t=="a buyer"?commonFunctions.RedirectToPageWithInterval(h,0):n=="tips & advice on buying"&&t=="a buyer"?commonFunctions.RedirectToPageWithInterval(f,0):n=="buying tools"&&t=="a buyer"?commonFunctions.RedirectToPageWithInterval("/agent",0):n=="a neighborhood"&&t=="a buyer"?commonFunctions.RedirectToPageWithInterval(r,0):n=="affordable housing"&&t=="a buyer"?commonFunctions.RedirectToPageWithInterval(s,0):n=="upcoming open houses"&&t=="a buyer"?commonFunctions.RedirectToPageWithInterval(i,0):commonFunctions.RedirectToPageWithInterval(i,0)},InitializeWayFinder:function(){var n,t;$("a.btn.find-your-way__submit").click(function(n){indexFunctions.HandleWayFinder(n,$("#divRER ul.select-popup__dropdown li.is-selected").attr("data-option"),$("div.select-popup__field.is-selected a").text().toLowerCase(),$("#divRER ul.select-popup__dropdown li.is-selected").text().toLowerCase())});n=$("#divRER ul.select-popup__dropdown li[data-option='"+$("#hdnWayFinderRERID").val()+"']");$("#divRER a").text($(n).text());$("#divRER ul.select-popup__dropdown li").removeClass("is-selected");$(n).addClass("is-selected");t="";$("#divRER option").each(function(){$(this).text()==$("#divRER ul.select-popup__dropdown li.is-selected").text()&&(t=$(this).attr("value"))});$("div[data-category]").removeClass("is-selected");$("div[data-category = '"+t+"']").addClass("select-popup__field is-selected")},InitializeViewAllPropertySliders:function(){var n=location.origin+"/buy?q=",t=n+window.btoa('{"SortBy":"newest","MeasurementUnit":"feet","NewOnMarket":"7 Days"}'),i=n+window.btoa('{"SortBy":"recent","MeasurementUnit":"feet","OpenHouses":["Show All"]}'),r=n+window.btoa('{"MinPrice":"1200000","SortBy":"price-low","PropertyType":["single-family","condo"],"MeasurementUnit":"feet"}');$("a[id='vwAllFreshHomes']").attr("href",t);$("a[id='vwAllOpenHouses']").attr("href",i);$("a[id='vwAllFineHomes']").attr("href",r)}}