var _____WB$wombat$assign$function_____=function(name){return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name))||self[name];};if(!self.__WB_pmw){self.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{ let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opens = _____WB$wombat$assign$function_____("opens"); p724={image_server:"https://web.archive.org/web/20230314015933/https://www.port724.com",url:"/procedures/common.php",default_country_code:"tr",default_search_lat:39,default_search_lng:35.28,loading_products:!1,calculate_content_size:function(){$sw=$(window).width(),$("[data-content-type-id]").each(function(){$this=this,$s=99,$outerw=$($this).parent().width(),$outerlg=$($this).parent().attr("data-lg"),$outermd=$($this).parent().attr("data-md"),$outersm=$($this).parent().attr("data-sm"),$outerxs=$($this).parent().attr("data-xs"),$parentw=$($this).parent().parent().width(),$w=$($this).width(),$sw<768?$col=$outerxs:$sw>=768&&$sw<992?$col=$outersm:$sw>=992&&$sw<1200?$col=$outermd:$col=$outerlg,$w<1*$s?$($this).attr("data-content-size","s1"):$w>=1*$s&&$w<2*$s?$($this).attr("data-content-size","s2"):$w>=2*$s&&$w<3*$s?$($this).attr("data-content-size","s3"):$w>=3*$s&&$w<4*$s?$($this).attr("data-content-size","s4"):$w>=4*$s&&$w<5*$s?$($this).attr("data-content-size","s5"):$w>=5*$s&&$w<6*$s?$($this).attr("data-content-size","s6"):$w>=6*$s&&$w<7*$s?$($this).attr("data-content-size","s7"):$w>=7*$s&&$w<8*$s?$($this).attr("data-content-size","s8"):$w>=8*$s&&$w<9*$s?$($this).attr("data-content-size","s9"):$w>=9*$s&&$w<10*$s?$($this).attr("data-content-size","s10"):$w>=10*$s&&$w<11*$s?$($this).attr("data-content-size","s11"):$($this).attr("data-content-size","s12"),$height=$($this).attr("data-image-height"),$height>0&&($sw>1200?$($this).find("span.photo").css("height",$height+"px"):$sw==$outerw?$($this).find("span.photo").css("height",$height*$outerw/(94*$col)+"px"):$sw<768?$($this).find("span.photo").css("height",$height*$parentw*1.5/(94*$col)+"px"):$($this).find("span.photo").css("height",$height*$outerw/(94*$col)+"px"))}),$(".product").each(function(){$el=this,$($el).css("max-width")&&($str=$($el).css("max-width"),-1==$str.indexOf("%")?($sc=Math.round($($el).width()/parseInt($($el).css("max-width"))*100),$sc>=100?$scs="0":$sc<70?$scs="4":$sc>=70&&$sc<80?$scs="3":$sc>=80&&$sc<90?$scs="2":$scs="1"):($str_int=parseInt($str.replace("%","")),$sc=Math.round($($el).width()/$str_int),$sc>=12?$scs="1":$sc<4?$scs="4":$sc>=4&&$sc<8?$scs="3":$sc>=8&&$sc<12?$scs="2":$scs="1"),$($el).attr("data-scale",$scs))}),$(".project").each(function(){$el=this,$($el).css("max-width")&&($str=$($el).css("max-width"),-1==$str.indexOf("%")?($sc=Math.round($($el).width()/parseInt($($el).css("max-width"))*100),$sc>=100?$scs="0":$sc<70?$scs="4":$sc>=70&&$sc<80?$scs="3":$sc>=80&&$sc<90?$scs="2":$scs="1"):($str_int=parseInt($str.replace("%","")),$sc=Math.round($($el).width()/$str_int),$sc>=12?$scs="1":$sc<4?$scs="4":$sc>=4&&$sc<8?$scs="3":$sc>=8&&$sc<12?$scs="2":$scs="1"),$($el).attr("data-scale",$scs))}),$(".widephoto").each(function(){$el=this,$(".product.widephoto .title-wrapper").css("width",$($el).width()-2+"px")})},change_language:function(t,s){t.action="change_language",$.post(this.url,t,function(t){s(t)})},change_currency:function(t,s){t.action="change_currency",$.post(this.url,t,function(t){s($.parseJSON(t))})},check_currency:function(){0!=$current_currency_id?$(".price[data-tlprice]").each(function(){$tl_price=$(this).attr("data-tlprice"),$new_price=""+$current_currency_code+" "+$.number(Math.round($tl_price/$current_currency_value),0),$(this).html($new_price)}):$(".price").each(function(){$original_price=$(this).attr("data-oriprice"),$(this).html($original_price)})},update_site_stats:function(t){t.action="update_site_stats",$.post(this.url,t,function(t){})},update_product_stats:function(t){t.action="update_product_stats",$.post(this.url,t,function(t){})},update_project_stats:function(t){t.action="update_project_stats",$.post(this.url,t,function(t){})},update_site_page_stats:function(t){t.action="update_site_page_stats",$.post(this.url,t,function(t){})},send_message:function(t,s){t.action="send_message",$.post(this.url,t,function(t){s(t)})},send_email_to_friend:function(t,s){t.action="send_email_to_friend",$.post(this.url,t,function(t){s($.parseJSON(t))})},save_review:function(t,s){t.action="save_review",$.post(this.url,t,function(t){s(t)})},get_portfolio_summary:function(t,s){t.action="get_portfolio_summary",$.post(this.url,t,function(t){s($.parseJSON(t))})},get_search_results:function(t,s){p724.loading_products||(p724.loading_products=!0,t.action="get_search_results",$.post("/procedures/search.php",t,function(t){$products=$.parseJSON(t),s($products),p724.loading_products=!1}))},get_development_search_results:function(t,s){p724.loading_products||(p724.loading_products=!0,t.action="get_development_search_results",$.post("/procedures/search.php",t,function(t){$projects=$.parseJSON(t),p724.loading_products=!1,s($projects)}))},get_firm_search_results:function(t,s){p724.loading_products||(p724.loading_products=!0,t.action="get_firm_search_results",$.post("/procedures/search.php",t,function(t){$firms=$.parseJSON(t),p724.loading_products=!1,s($firms)}))},get_consultant_search_results:function(t,s){p724.loading_products||(p724.loading_products=!0,t.action="get_consultant_search_results",$.post("/procedures/search.php",t,function(t){$firms=$.parseJSON(t),p724.loading_products=!1,s($firms)}))},get_product_photos:function(t,s){t.action="get_product_photos",$.post(this.url,t,function(t){s($.parseJSON(t))})},get_project_photos:function(t,s){t.action="get_project_photos",$.post(this.url,t,function(t){s($.parseJSON(t))})},get_project_product_photos:function(t,s){t.action="get_project_product_photos",$.post(this.url,t,function(t){s($.parseJSON(t))})},get_product_floor_plans:function(t,s){t.action="get_product_floor_plans",$.post(this.url,t,function(t){s($.parseJSON(t))})},get_product_documents:function(t,s){t.action="get_product_documents",$.post(this.url,t,function(t){s($.parseJSON(t))})},get_related_products:function(t,s){t.action="get_related_products",$.post(this.url,t,function(t){s($.parseJSON(t))})},clean_str:function(t){return $in_string=t.in_string||"",$out_string=$in_string,$find_array=[],$find_array.push({target:" ",destination:"-"}),$find_array.push({target:"ç",destination:"c"}),$find_array.push({target:"Ç",destination:"C"}),$find_array.push({target:"ğ",destination:"g"}),$find_array.push({target:"Ğ",destination:"G"}),$find_array.push({target:"ı",destination:"i"}),$find_array.push({target:"İ",destination:"I"}),$find_array.push({target:"ö",destination:"o"}),$find_array.push({target:"Ö",destination:"O"}),$find_array.push({target:"ş",destination:"s"}),$find_array.push({target:"Ş",destination:"S"}),$find_array.push({target:"ü",destination:"u"}),$find_array.push({target:"Ü",destination:"U"}),$find_array.push({target:"'",destination:""}),$find_array.push({target:'"',destination:""}),$find_array.push({target:".",destination:"-"}),$find_array.push({target:"*",destination:""}),$find_array.push({target:"+",destination:""}),$find_array.push({target:"/",destination:"-"}),$find_array.push({target:"\\",destination:"-"}),$.each($find_array,function(t,s){$out_string=$out_string.replace(new RegExp("\\"+s.target,"gm"),s.destination)}),$out_string.toLowerCase()},check_if_email_exists:function(t,s){t.action="check_if_email_exists",$.post(this.url,t,function(t){s(t)})},check_email_format:function(t){return pattern=new RegExp(/^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\]?$)/i),!!(pattern.test(t.email)&&t.email.length>5&&-1==t.email.indexOf("qq.com"))},check_captcha:function(t,s){t.action="check_captcha",$.post(this.url,t,function(t){s(t)})},submit_form:function(t,s){t.action="submit_form",$.post(this.url,t,function(t){s(t)})},register_firm_user:function(t,s){t.action="register_firm_user",$.post(this.url,t,function(t){s(t)})},get_polygons:function(t,s){t.action="get_polygons",$.post(this.url,t,function(t){s($.parseJSON(t))})},get_days_html:function(t){var s;for(void 0===t.show_select&&(t.show_select=1),$days_html="",1==t.show_select&&($days_html=""),s=1;s<=31;s++)$days_html+="";return $days_html},get_months:function(t,s){t.action="get_months",$.post(this.url,t,function(t){s($.parseJSON(t))})},get_months_html:function(t,s){$months_html="",void 0===t.show_select&&(t.show_select=1),1==t.show_select&&($months_html=""),p724.get_months({},function(t){$.each(t,function(t,s){$months_html+=""}),s($months_html)})},get_years:function(t){var s;for($today=new Date,$current_year=$today.getFullYear(),t.from=t.from||18,t.to=t.to||80,$end_year=$current_year-t.from,$start_year=$current_year-t.to,$years=new Array,s=$start_year;s<=$end_year;s++)$years.push(s);return $years},get_years_html:function(t){return $years=p724.get_years(t),void 0===t.show_select&&(t.show_select=1),$years_html="",1==t.show_select&&($years_html=""),$.each($years,function(t,s){$years_html+=""}),$years_html},required_warning:function(t){$(t.element).addClass("required-warning").on("focusin",function(){$(this).removeClass("required-warning")})},screen_message:function(t,s){$(".screen-message").remove(),t.alert?($message_delay=1500,$html=""+t.message+""):($message_delay=500,$html=""+t.message+""),$("body").append($html),$width=$(".screen-message").width(),p724.calculate_screen_size(),$(".screen-message").css("top",0).css("left",p724.screen_width/2-$width/2),$(".screen-message").fadeTo(300,1,function(){setTimeout(function(){$(".screen-message").fadeTo($message_delay,0,function(){$(this).remove(),s&&s()})},1e3)})},build_link:function(t){return $commands=t.commands||[],$command_link="",$.each($commands,function(t,s){void 0!==typeof s&&($command=p724.clean_str({in_string:s}),t<$commands.length-1&&$command.length>0?$command_link+=$command+"/":$command_link+=$command)}),$command_link},search_command:function(){return $sc={},$sc.data={},$sc.text="",$sc.si=0,$sc.loc=[],$sc.st=[],$sc.mg=[],$sc.sg=[],$sc.pc=[],$sc.ao=[],$sc.fo=[],$sc.a={m:0,x:0},$sc.rn={m:0,x:0},$sc.d=0,$sc.p={m:0,x:0,c:0},$sc.sort=0,$sc.start=0,$sc.limit=10,$sc.plc="",$sc},parse:function(t){return $command=new p724.search_command,$params=t.string.split("&"),$.each($params,function(t,s){if($parts=s.split("="),2==$parts.length)switch($id=$parts[0],$val=$parts[1],$id){case"loc":$values=$val.split("|"),3!=$values.length&&4!=$values.length||($co=parseInt($values[0]),$ct=parseInt($values[1]),$tw=parseInt($values[2]),4==$values.length?$dt=parseInt($values[3]):$dt=0,$exists=!1,$.each($command.loc,function(t,s){if(s.co==$co&&s.ct==$ct&&s.tw==$tw&&s.dt==$dt)return $exists=!0,!1}),$exists||$command.loc.push({co:$co,ct:$ct,tw:$tw,dt:$dt}));break;case"text":$command.text=$val;break;case"st":$values=$val.split("|"),$.each($values,function(t,s){$command.st.push(parseInt(s))});break;case"mg":$values=$val.split("|"),$.each($values,function(t,s){$command.mg.push(parseInt(s))});break;case"sg":$values=$val.split("|"),$.each($values,function(t,s){$command.sg.push(parseInt(s))});break;case"pc":$values=$val.split("|"),$.each($values,function(t,s){$command.pc.push(parseInt(s))});break;case"ao":$values=$val.split("|"),$.each($values,function(t,s){$command.ao.push(parseInt(s))});break;case"fo":$values=$val.split("|"),$.each($values,function(t,s){$command.fo.push(parseInt(s))});break;case"d":$command.d=parseInt($val);break;case"p":$values=$val.split("|"),3==$values.length&&($command.p={m:parseInt($values[0]),x:parseInt($values[1]),c:parseInt($values[2])});break;case"a":$values=$val.split("|"),2==$values.length&&($command.a={m:parseInt($values[0]),x:parseInt($values[1])});break;case"rn":$values=$val.split("|"),2==$values.length&&($command.rn={m:parseInt($values[0]),x:parseInt($values[1])});break;case"start":$command.start=parseInt($val);break;case"sort":$command.sort=parseInt($val)}}),$command},stringify:function(t){return $command=t.command,$params=[],$.each($command.loc,function(t,s){$params.push({id:"loc",val:s.co+"|"+s.ct+"|"+s.tw+"|"+s.dt})}),$command.text.length>0&&$params.push({id:"text",val:$command.text}),$command.st.length>0&&$params.push({id:"st",val:$command.st.join("|")}),$command.mg.length>0&&$params.push({id:"mg",val:$command.mg.join("|")}),$command.sg.length>0&&$params.push({id:"sg",val:$command.sg.join("|")}),$command.pc.length>0&&$params.push({id:"pc",val:$command.pc.join("|")}),$command.pr&&$command.pr.length>0&&$params.push({id:"pr",val:$command.pr}),$command.rf&&$command.rf.length>0&&$params.push({id:"rf",val:$command.rf}),$command.ao.length>0&&$params.push({id:"ao",val:$command.ao.join("|")}),$command.fo.length>0&&$params.push({id:"fo",val:$command.fo.join("|")}),$command.d>0&&$params.push({id:"d",val:$command.d}),($command.p.m>0||$command.p.x>0)&&$params.push({id:"p",val:$command.p.m+"|"+$command.p.x+"|"+$command.p.c}),($command.a.m>0||$command.a.x>0)&&$params.push({id:"a",val:$command.a.m+"|"+$command.a.x}),($command.rn.m>0||$command.rn.x>0)&&$params.push({id:"rn",val:$command.rn.m+"|"+$command.rn.x}),$command.start>0&&$params.push({id:"start",val:$command.start}),$command.sort>0&&$params.push({id:"sort",val:$command.sort}),$command_str="",$.each($params,function(t,s){$command_str+=0==t?s.id+"="+s.val:"&"+s.id+"="+s.val}),$command_str},get_project_image:function(t,s){return t.showcase_ph_fi?$src=p724.image_server+t.showcase_ph_src+"/"+s+"/"+t.showcase_ph_fi:t.ph_fi?$src=p724.image_server+t.ph_src+"/"+s+"/"+t.ph_fi:$src="/img/development-noimage.jpg",$src},get_project_location:function(t){return $location=t.ct+" / "+t.tw,t.dt&&(t.tw!==t.dt?$location+=" / "+t.dt:t.qt&&t.dt!==t.qt&&($location+=" / "+t.qt)),$location},project_search:function(t,s,i,e){return $src=p724.get_project_image(t,0),$logo=p724.get_sub_firm_logo(t),$html="",$html},project_search_product:function(t,s){return $src=p724.get_product_image(t,2),$extra=p724.get_product_extra(t),$title_pro=p724.get_product_title_for_alt(t),$html="
",$html+="
",$html+="",$html+="
",$html+=""+$title_pro+"",$html+="
",$html+="
",$html+="
"+$.number(t.price)+" "+t.cur+"
",$html+="
",$html+=""+$.number(t.area)+" m²",$extra&&($html+=""+$extra+""),$html+="
",$html+="
",$html+="
"+t.st+"
",$html+="
"+t.sg+"
",$html+="
",$html+="
",$html+="
",$html+="
",$html+="
",$html},get_product_location:function(t){return $location=t.ct+" / "+t.tw,"-"!=t.dt&&(t.tw!==t.dt?$location+=" / "+t.dt+"":"-"!=t.qt&&t.dt!==t.qt&&($location+=" / "+t.qt+"")),$location},get_product_title:function(t){return t.project_title.length>0?$title=""+t.project_title+" "+t.title:$title=t.title,$title},get_product_title_for_alt:function(t){return t.project_title.length>0?$title=t.project_title+" "+t.title:$title=t.title,$title},get_product_image:function(t,s){return t.ph_fi?$src=p724.image_server+t.ph_src+"/"+s+"/"+t.ph_fi:t.pr_ph_fi?$src=p724.image_server+t.pr_ph_src+"/"+s+"/"+t.pr_ph_fi:t.pr_show_src?$src=p724.image_server+t.pr_show_src+"/"+s+"/"+t.pr_ph_fi:$src="/img/main-group"+t.mg_id+".png",$src},get_member_image_by_id:function(t,s,i){return $member_src=""!=t&&""!=s?p724.image_server+t+"/"+i+"/"+s:"",$member_src},get_product_extra:function(t){switch($extra=null,parseInt(t.mg_id)){case 1:t.val_1>0&&t.val_2>0&&($extra=t.val_1+" + "+t.val_2)}return $extra},get_sticker_html:function(t,s){return s?($shtml="
",$.each(s,function(s,i){i.product_id==t.id&&($shtml+=""+i.sticker+"")}),$shtml+="
",$shtml):""},get_sub_firm_logo:function(t){return""!==t.logofile&&null!==t.logofile?$logo=p724.image_server+t.logosrc+"/1/"+t.logofile:$logo=null,$logo},rebuild_products:function(t,s){t.container&&t.container.find(".product").each(function(){$el=this,$($el).find("img.photo").length>0&&($ph=$($el).find(".photo"),$par=$($ph).parent(),$par.append(""),$($ph).remove())})},rebuild_articles:function(t,s){t.container&&t.container.find(".article").each(function(){$el=this,$($el).find("img.artphoto").length>0&&($ph=$($el).find(".artphoto"),$par=$($ph).parent(),$par.append(""),$($ph).remove())})},product_list:function(t,s){return $title=p724.get_product_title(t),$src=p724.get_product_image(t,2),$member_picture_src=p724.get_member_image_by_id(t.mphoto_src,t.mphoto_file,1),$extra=p724.get_product_extra(t),$html="
",$html+="
",$html+="",$html+="
",$html+="",$html+="
",$html+="
",$html+="

"+$title+"

",$html+=""+t.st+""+t.mg+""+t.sg+"",$html+=""+$.number(t.price)+" "+t.cur+"",$html+="
",$html+=" "+$.number(t.area)+"m² ",t.val_1>0&&(1==t.mg_id?$html+=" "+t.val_1+" ":$html+=" "+t.val_1+" "),t.val_2>0&&1==t.mg_id&&($html+=" "+t.val_2+" "),$html+=""+t.ct+""+t.tw+"",$html+="
",$html+="
",$html+="
",$html+="
",$html+="
",$html},product_xs:function(t,s){return $title=p724.get_product_title(t),$src=p724.get_product_image(t,2),$member_picture_src=p724.get_member_image_by_id(t.mphoto_src,t.mphoto_file,1),$extra=p724.get_product_extra(t),$html="
",$html+="
",$html+="",$html+="
",$html+="",$html+="
",$html+="
",$html+="

"+$title+"

",$html+="
"+$.number(t.price)+" "+t.cur+"
",$html+="
",$html+=" "+$.number(t.area)+"m² ",t.val_1>0&&(1==t.mg_id?$html+=" "+t.val_1+" ":$html+=" "+t.val_1+" "),t.val_2>0&&1==t.mg_id&&($html+=" "+t.val_2+" "),$html+="
",$html+="
"+t.st+""+t.sg+"
",$html+="
"+t.ct+""+t.tw+"
",$html+="
",$html+="
",$html+="
",$html+="
",$html+="
",$html+="
",""!=$member_picture_src&&($html+=""),$html+="
",$html+="
",$html+=t.member_name,$html+="
",$html+="
",$html+="
",$html+="
",$html},product_sm:function(t,s){return $title=p724.get_product_title(t),$src=p724.get_product_image(t,2),$member_picture_src=p724.get_member_image_by_id(t.mphoto_src,t.mphoto_file,1),$extra=p724.get_product_extra(t),$sticker_html=p724.get_sticker_html(t,$stickers),$html="
",$html+="
",$sticker_html&&($html+=$sticker_html),$html+="",$html+="
",$html+="",$html+="
",$html+="
",$html+="

"+$title+"

",$html+="
"+$.number(t.price)+" "+t.cur+"
",$html+="
",$html+=" "+$.number(t.area)+"m² ",t.val_1>0&&(1==t.mg_id?$html+=" "+t.val_1+" ":$html+=" "+t.val_1+" "),t.val_2>0&&1==t.mg_id&&($html+=" "+t.val_2+" "),t.val_3>0&&($html+=" "+t.val_3+" "),$html+="
",$html+="
"+t.st+""+t.sg+"
",$html+="
"+t.ct+""+t.tw+"
",$html+="
",$html+="
",$html+="
",$html+="
",$html+="
",""!=$member_picture_src&&($html+=""),$html+="
",$html+="
",$html+=t.member_name,$html+="
",$html+="
",$html+="
",$html+="
",$html+="
",$html},product_md:function(t,s,i,e){return $title=p724.get_product_title(t),$location=p724.get_product_location(t),$member_picture_src=p724.get_member_image_by_id(t.mphoto_src,t.mphoto_file,1),$src=p724.get_product_image(t,2),$extra=p724.get_product_extra(t),$sticker_html=p724.get_sticker_html(t,s),$logo=p724.get_sub_firm_logo(t),$html="
",$html+="
",$sticker_html&&($html+=$sticker_html),$html+="",$html+="
",$html+="",$html+="
",$html+="
",$html+="

"+$title+"

",$html+="
",$html+=""+$.number(t.price)+" "+t.cur+"",$html+="
",$html+="
",$html+=" "+$.number(t.area)+"m² ",t.val_1>0&&(1==t.mg_id?$html+=" "+t.val_1+" ":$html+=" "+t.val_1+" "),t.val_2>0&&1==t.mg_id&&($html+=" "+t.val_2+" "),t.val_3>0&&($html+=" "+t.val_3+" "),$html+="
",$html+="
"+t.st+""+t.mg+""+t.sg+"
",$html+="
"+t.ct+""+t.tw+""+t.qt+"
",$html+="
",$html+="
",$html+="
",i&&i>900&&($html+="
",$html+="
"+t.firm+"
",$html+="",$html+="
"),$html+="
",$html+="
",""!=$member_picture_src&&($html+=""),$html+="
",$html+="
",$html+=t.member_name,$html+="
",$html+="
",$html+="
",$html+="
",$html+="
",$html},product_lg:function(t,s,i,e){return $title=p724.get_product_title(t),$location=p724.get_product_location(t),$member_picture_src=p724.get_member_image_by_id(t.mphoto_src,t.mphoto_file,1),$src=p724.get_product_image(t,2),$extra=p724.get_product_extra(t),$sticker_html=p724.get_sticker_html(t,s),$logo=p724.get_sub_firm_logo(t),$html="
",$html+="
",$sticker_html&&($html+=$sticker_html),$html+="",$html+="
",$html+="",$html+="
",$html+="
",$html+="

"+$title+"

",$html+="
"+$.number(t.price)+" "+t.cur+"
",$html+="
",$html+=" "+$.number(t.area)+"m² ",t.val_1>0&&(1==t.mg_id?$html+=" "+t.val_1+" ":$html+=" "+t.val_1+" "),t.val_2>0&&1==t.mg_id&&($html+=" "+t.val_2+" "),t.val_3>0&&($html+=" "+t.val_3+" "),$html+="
",$html+="
"+t.st+""+t.mg+""+t.sg+"
",$html+="
"+t.ct+""+t.tw+""+t.qt+"
",$html+="
",$html+="
",$html+="
",i&&i>900&&($html+="
",$html+="
"+t.firm+"
",$html+="",$html+="
"),$html+="
",$html+="
",""!=$member_picture_src&&($html+=""),$html+="
",$html+="
",$html+=t.member_name,$html+="
",$html+="
",$html+="
",$html+="
",$html+="
",$html},product_xl:function(t,s,i,e){return $title=p724.get_product_title(t),$location=p724.get_product_location(t),$member_picture_src=p724.get_member_image_by_id(t.mphoto_src,t.mphoto_file,1),$src=p724.get_product_image(t,2),$extra=p724.get_product_extra(t),$sticker_html=p724.get_sticker_html(t,s),$logo=p724.get_sub_firm_logo(t),$html="
",$html+="
",$sticker_html&&($html+=$sticker_html),$html+="",$html+="
",$html+="",$html+="
",$html+="
",$html+="

"+$title+"

",$html+="
"+$.number(t.price)+" "+t.cur+"
",$html+="
",$html+=" "+$.number(t.area)+"m² ",t.val_1>0&&(1==t.mg_id?$html+=" "+t.val_1+" ":$html+=" "+t.val_1+" "),t.val_2>0&&1==t.mg_id&&($html+=" "+t.val_2+" "),t.val_3>0&&($html+=" "+t.val_3+" "),$html+="
",$html+="
"+t.st+""+t.mg+""+t.sg+"
",$html+="
"+t.ct+""+t.tw+""+t.qt+"
",$html+="
",$html+="
",$html+="
",i&&i>900&&($html+="
",$html+="
"+t.firm+"
",$html+="",$html+="
"),$html+="
",$html+="
",""!=$member_picture_src&&($html+=""),$html+="
",$html+="
",$html+=t.member_name,$html+="
",$html+="
",$html+="
",$html+="
",$html+="
",$html},product_hxl:function(t,s,i,e){return $title=p724.get_product_title(t),$location=p724.get_product_location(t),$member_picture_src=p724.get_member_image_by_id(t.mphoto_src,t.mphoto_file,1),$src=p724.get_product_image(t,1),$extra=p724.get_product_extra(t),$sticker_html=p724.get_sticker_html(t,s),$logo=p724.get_sub_firm_logo(t),$html="
",$html+="
",$sticker_html&&($html+=$sticker_html),$html+="",$html+="
"+$title+"
",$html+="
",$html+="",$html+="
",$html+="
",$html+="
"+t.st+"
",$html+="
"+t.mg+""+t.sg+"
",$html+="
"+$.number(t.price)+" "+t.cur+"
",$html+="
",$html+=" "+$.number(t.area)+"m² ",t.val_1>0&&(1==t.mg_id?$html+=" "+t.val_1+" ":$html+=" "+t.val_1+" "),t.val_2>0&&1==t.mg_id&&($html+=" "+t.val_2+" "),t.val_3>0&&($html+=" "+t.val_3+" "),$html+="
",$html+="
"+t.ct+""+t.tw+"",t.tw!=t.dt&&"-"!=t.dt?$html+=" - "+t.dt+"":"-"!=t.qt&&($html+=""+t.qt+""),$html+="
",$html+="
",i&&i>900&&($html+="
",$html+="
"+t.firm+"
",$html+="",$html+="
"),$html+="
",$html+="
",""!=$member_picture_src&&($html+=""),$html+="
",$html+="
",$html+=t.member_name,$html+="
",$html+="
",$html+="
",$html+="
",$html+="
",$html+="
",$html+="
",$html},product_widephoto:function(t,s,i,e){return $title=p724.get_product_title(t),$location=p724.get_product_location(t),$member_picture_src=p724.get_member_image_by_id(t.mphoto_src,t.mphoto_file,1),$src=p724.get_product_image(t,0),$extra=p724.get_product_extra(t),$sticker_html=p724.get_sticker_html(t,s),$logo=p724.get_sub_firm_logo(t),$html="

",$html+="
",$sticker_html&&($html+=$sticker_html),$html+="",$html+="
"+$title+"
",$html+="
",$html+="",$html+="
",$html+="
"+t.st+""+t.mg+"
"+t.sg+"
",$html+="
",$html+="
"+$.number(t.price)+" "+t.cur+"
",$html+="
",$html+=" "+$.number(t.area)+"m² ",t.val_1>0&&(1==t.mg_id?$html+=" "+t.val_1+" ":$html+=" "+t.val_1+" "),t.val_2>0&&1==t.mg_id&&($html+=" "+t.val_2+" "),t.val_3>0&&($html+=" "+t.val_3+" "),$html+="
",$html+="
"+t.ct+""+t.tw+"
"+t.qt+"
",$html+="
",$html+="
",i&&i>900&&($html+="
",$html+="
"+t.firm+"
",$html+="",$html+="
"),$html+="",$html+="
",$html+="
",$html+="
",$html},product_search:function(t,s,i){return $title=p724.get_product_title(t),$location=p724.get_product_location(t),$member_picture_src=p724.get_member_image_by_id(t.mphoto_src,t.mphoto_file,1),$src=p724.get_product_image(t,1),$extra=p724.get_product_extra(t),$sticker_html=p724.get_sticker_html(t,s),$html="",$html+="",$html},product_search_map:function(t){return $title=p724.get_product_title(t),$src=p724.get_product_image(t,2),$extra=p724.get_product_extra(t),$html="
",$html+="
",$html+="
"+$title+"
",$html+="",$html+="
",$html+="",$html+="
",$html+="
",$html+="
"+t.st+""+t.sg+"",$html+=""+$.number(t.price)+" "+t.cur+"
",$html+="
",$html+=" "+$.number(t.area)+"m² ",t.val_1>0&&(1==t.mg_id?$html+=" "+t.val_1+" ":$html+=" "+t.val_1+" "),t.val_2>0&&1==t.mg_id&&($html+=" "+t.val_2+" "),$html+="
",$html+="
"+t.ct+""+t.tw+"
",$html+="
",$html+="
",$html+="
",$html+="
",$html},get_firm_logo:function(t){return t.logo_src&&t.logo_fi?$firm_logo=p724.image_server+t.logo_src+"/2/"+t.logo_fi:$firm_logo=null,$firm_logo},firm_search:function(t,s=null){return $logo_picture_src=p724.get_firm_logo(t,1),$html="",$html},user_review:function(t){return $html="
",$html+="
",$html+="
",$html+=""+t.review_date+"",$html+="
",$html+="
",$html+="
",$html+="

"+t.review+"

",$html+="",$html+="
",$html+="
",$html+="
",$html+="
",$html},screen_width:null,screen_height:null,screen_size:null,calculate_screen_size:function(){p724.screen_width=window.innerWidth,p724.screen_height=window.innerHeight},display_location_viewer:function(t,s){$("#location_viewer_main").remove(),$.post("/tools/location_viewer.php",function(i){$("body").append(i),location_viewer_initialize(t),s&&s()})},display_photo_viewer:function(t,s){$("#photo_viewer_main").remove(),$.post("/tools/photo_viewer.php",function(i){$("body").append(i),photo_viewer_initialize(t),$("#photo_viewer_main").modal({show:!0,backdrop:!0}),s&&s()})},display_photo_zoomer:function(t,s){$("#photo_zoomer_main").remove(),$.post("/tools/photo_zoomer.php",function(i){$("body").append(i),photo_zoomer_initialize(t),$("#photo_zoomer_main").modal({show:!0,backdrop:!0}),s&&s()})},display_send_message:function(t,s){$("#send_message_main").remove(),$.post("/tools/send_message.php",t,function(i){$("body").append(i),$("#send_message_main").modal(),send_message_initialize(t),s&&s()})},display_send_email:function(t,s){$("#send_email_main").remove(),$.post("/tools/send_email.php",function(i){$("body").append(i),$("#send_email_main").modal({backdrop:!1}),send_email_initialize(t),s&&s()})},display_article_detail:function(t,s){$("#article_detail_main").remove(),$.post("/tools/article_detail.php",t,function(t){$("body").append(t),$("#article_detail_main").modal({backdrop:!1})})},display_popup_window:function(t,s){$("#popup_detail_main").remove(),$.post("/content/parts/popup.php",t,function(t){$("body").append(t),$("#popup_detail_main").modal({backdrop:!1})})},icon_folder:"/img/map/",overlays:[],geocoder:function(){return new google.maps.Geocoder},get_overlays:function(t){return $requested_overlays=new Array,$map=t.map||"",$type=t.type||"",$.each(p724.overlays,function(t,s){s.properties.map==$map&&s.properties.type==$type&&$requested_overlays.push(s)}),$requested_overlays},delete_overlays:function(t){var s;for(s=this.overlays.length-1;s>=0;s--)$overlay=this.overlays[s],t.map==$overlay.properties.map&&t.type==$overlay.properties.type&&($overlay.setMap&&$overlay.setMap(null),$overlay=null,this.overlays.splice(s,1))},map_style_1:[{elementType:"labels.text.stroke",stylers:[{visibility:"off"},{color:"#2C3E50"}]},{featureType:"road.highway",elementType:"geometry.fill",stylers:[{visibility:"on"},{color:"#A3B2C9"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{visibility:"on"},{color:"#A3B2C9"}]},{featureType:"road.arterial",elementType:"geometry.fill",stylers:[{visibility:"on"},{color:"#A4BCC2"},{lightness:40}]},{featureType:"road.arterial",elementType:"geometry.stroke",stylers:[{visibility:"off"},{color:"#95A5A6"}]},{featureType:"road.local",elementType:"geometry.fill",stylers:[{visibility:"simplified"},{color:"#B2D5BA"},{lightness:60}]},{featureType:"road.local",elementType:"geometry.stroke",stylers:[{visibility:"simplified"},{color:"#B2D5BA"}]},{featureType:"transit",elementType:"all",stylers:[{visibility:"off"}]}],create_custom_map:function(t){return $custom_map=new google.maps.StyledMapType(t.styles,{name:t.name}),$custom_map},add_map:function(t){return $zoom=t.zoom||17,$scroll_wheel=t.scroll_wheel||!1,$map_options={center:t.location,zoom:$zoom,minZoom:6,maxZoom:21,disableDefaultUI:!0,mapTypeControl:!0,backgroundColor:"#2c3e50",scrollwheel:$scroll_wheel,zoomControl:!0,zoomControlOptions:{position:google.maps.ControlPosition.TOP_RIGHT,style:google.maps.ZoomControlStyle.LARGE}},$map=new google.maps.Map(t.node,$map_options),$custom_map=this.create_custom_map({styles:p724.map_style_1,name:"Normal"}),$map.mapTypes.set("Normal",$custom_map),$map.setMapTypeId("Normal"),$map.setOptions({mapTypeControlOptions:{position:google.maps.ControlPosition.TOP_RIGHT,style:google.maps.MapTypeControlStyle.HORIZONTAL_BAR,mapTypeIds:["Normal",google.maps.MapTypeId.SATELLITE]}}),$map},add_marker:function(t){return $draggable=t.draggable||!1,$icon_name=t.icon_name||"product.png",$marker_title=t.title||"",t.map?($icon_file=this.icon_folder+$icon_name,$icon={url:$icon_file,size:new google.maps.Size(48,48)},$marker=new google.maps.Marker({map:t.map,position:t.location,title:$marker_title,icon:$icon,draggable:$draggable}),$marker.properties=t.properties,this.overlays.push($marker),$marker):null},add_product_marker:function(t){return t.map?($icon_file="/img/map/selected-main-group"+t.product.mg_id+".png",$icon={url:$icon_file,size:new google.maps.Size(191,191),scaledSize:new google.maps.Size(36,36),anchor:new google.maps.Point(16,16)},$marker_location=new google.maps.LatLng(t.product.lat,t.product.lng),$marker=new google.maps.Marker({position:$marker_location,icon:$icon,map:t.map}),$marker.product=t.product,$marker.original_icon=$icon,$marker.properties=t.properties,this.overlays.push($marker),$marker):null},add_circle:function(t){if(t.map)return $circle_options={fillColor:"#95a5a6",strokeColor:"#34495e",fillOpacity:.2,strokeOpacity:.6,strokeWeight:1,zIndex:100,map:t.map,center:t.center,radius:t.radius,draggable:!1},$circle=new google.maps.Circle($circle_options),$circle.properties=t.properties,t.editable&&$circle.setEditable(!0),this.overlays.push($circle),$circle},get_environment_info:function(t,s){switch($radius=t.radius||0,parseInt(t.type_id)){case 1:$types=["bakery","bar","cafe","food","restaurant"];break;case 2:$types=["dentist","doctor","health","pharmacy","veterinary_care"];break;case 3:$types=["park","zoo"];break;case 4:$types=["amusement_park","aquarium","art_gallery","bowling_alley","gym","movie_theater","museum","stadium"];break;case 5:$types=["school","university"];break;case 6:$types=["bicycle_store","book_store","clothing_store","convenience_store","department_store","electronics_store","furniture_store","florist","grocery_or_supermarket","hardware_store","home_goods_store","movie_rental","shopping_mall","shoe_store","store"];break;case 7:$types=["atm","bank","cemetary","church","library","mosque","police","post_office","synagogue"];break;case 8:$types=["bus_station","subway_station","train_station"];break;case 9:$types=["taxi_stand"];break;case 10:$types=["gas_station"];break;case 11:$types=["airport"];break;case 12:$types=["bus_station","subway_station","train_station","gas_station","airport"]}$cleaned_places=[],$places_service=new google.maps.places.PlacesService(t.map),0==$radius?$places_service.nearbySearch({bounds:t.bounds,types:$types},function(i,e){"OK"==e&&$.each(i,function(t,s){$types.indexOf(s.types[0])>=0&&s.name.length>0&&$cleaned_places.push(s)}),s($cleaned_places,t.type_id)}):$places_service.nearbySearch({location:t.location,types:$types,radius:$radius},function(i,e){"OK"==e&&$.each(i,function(t,s){$types.indexOf(s.types[0])>=0&&s.name.length>0&&$cleaned_places.push(s)}),s($cleaned_places,t.type_id)})},show_location_from_address:function(t){$country=t.country||p724.app.default_country,$city=t.city||"",$town=t.town||"",$district=t.district||"",$address=$country+" "+$city+" "+$town+" "+$district,this.geocoder().geocode({address:$address},function(s,i){i==google.maps.GeocoderStatus.OK&&($location=s[0].geometry.location,t.map.setCenter($location),null==this.marker?this.marker=new google.maps.Marker({map:t.map,position:$location,draggable:!0}):(this.marker.setMap(t.map),this.marker.setPosition($location)))})},get_project_active_products:function(t,s){t.action="get_project_active_products",$.post(this.url,t,function(t){s($.parseJSON(t))})},project_product_midi:function(t){return t.title=t.title||"_",$html="
",$html+="
"+t.title+"
",$html+="
",t.ph_fi?$html+="":t.pr_ph_fi?$html+="":$html+="",$html+="
",$html+="
",$html+="
"+t.sg+"
",$html+="
",$html+=""+$.number(t.price,0)+" "+t.cur+"",$html+=""+$.number(t.area,0)+" m²",$html+="
",$property_string="",t.val_1>0&&($property_string+=t.crt_1+": "+t.val_1+" "),t.val_2>0&&($property_string+=t.crt_2+": "+t.val_2+" "),t.val_3>0&&($property_string+=t.crt_3+": "+t.val_3+" "),$html+="
"+$property_string+"
",$html+="
"+$lbl_quantity+": "+$.number(t.quantity)+"
",$html+="
",$html+="
",$html+=""+$lbl_advert_detail+"",$html+="
",$html+="
",$html},update_count_links:function(t){return $counts={favorites:0,visited:0,compare:0},$favorites=localStorage.getItem(t.site_name+"_favorites"),$favorites?($favorites=$.parseJSON($favorites),$counts.favorites=$favorites.length,$(".count_link .favorites_link").addClass("active").find("span").html($favorites.length)):$(".count_link .favorites_link").removeClass("active").find("span").html(0),$visited=localStorage.getItem(t.site_name+"_visits"),$visited?($visited=$.parseJSON($visited),$counts.visited=$visited.length,$(".count_link .visited_link").addClass("active").find("span").html($visited.length)):$(".count_link .visited_link").removeClass("active").find("span").html(0),$comparison=localStorage.getItem(t.site_name+"_comparison"),$comparison?($comparison=$.parseJSON($comparison),$counts.comparison=$comparison.length,$(".count_link .comparison_link").addClass("active").find("span").html($comparison.length)):$(".count_link .comparison_link").removeClass("active").find("span").html(0),$counts},get_favorites:function(t){var s;if($favorites=localStorage.getItem(t.site_name+"_favorites"),$favorites)for($favorites=$.parseJSON($favorites),s=0;s<$favorites.length;s++)$favorites[s].product_id=parseInt($favorites[s].product_id);else $favorites=[];return $favorites},add_product_to_favorites:function(t,s){var i;for($result=0,$favorites=p724.get_favorites(t),$favorites.length>=24&&$favorites.splice(23,$favorites.length-24+1),i=0;i<$favorites.length;i++)if($f=$favorites[i],parseInt($f.product_id)==parseInt(t.product_id)){$favorites.splice(i,1);break}$favorites.push({product_id:t.product_id,date:Date()}),localStorage.setItem(t.site_name+"_favorites",JSON.stringify($favorites)),p724.update_count_links(t),s({result:1,favorites:$favorites})},remove_product_from_favorites:function(t,s){var i;for($result=0,$favorites=p724.get_favorites(t),i=0;i<$favorites.length;i++)if($f=$favorites[i],parseInt($f.product_id)==parseInt(t.product_id)){$result=1,$favorites.splice(i,1);break}localStorage.setItem(t.site_name+"_favorites",JSON.stringify($favorites)),p724.update_count_links(t),s({result:$result,favorites:$favorites})},get_product_visits:function(t){var s;if($visits=localStorage.getItem(t.site_name+"_visits"),$visits)for($visits=$.parseJSON($visits),s=0;s<$visits.length;s++)$visits[s].product_id=parseInt($visits[s].product_id);else $visits=[];return $visits},add_product_to_visits:function(t){var s;for($visits=p724.get_product_visits(t),$visits.length>=48&&$visits.splice(47,$visits.length-48+1),s=0;s<$visits.length;s++)if($v=$visits[s],parseInt($v.product_id)==parseInt(t.product_id)){$visits.splice(s,1);break}$visits.push({product_id:t.product_id,date:Date()}),localStorage.setItem(t.site_name+"_visits",JSON.stringify($visits)),p724.update_count_links(t)},remove_product_from_visits:function(t,s){var i;for($result=0,$visits=p724.get_product_visits(t),i=0;i<$visits.length;i++)if($v=$visits[i],parseInt($v.product_id)==parseInt(t.product_id)){$result=1,$visits.splice(i,1);break}localStorage.setItem(t.site_name+"_visits",JSON.stringify($visits)),p724.update_count_links(t),s({result:$result,visits:$visits})},get_product_compare_list:function(t){var s;if($comparison=localStorage.getItem(t.site_name+"_comparison"),$comparison)for($comparison=$.parseJSON($comparison),s=0;s<$comparison.length;s++)$comparison[s].product_id=parseInt($comparison[s].product_id);else $comparison=[];return $comparison},add_product_to_compare_list:function(t){var s;for($comparison=p724.get_product_compare_list(t),$comparison.length>=24&&$comparison.splice(23,$comparison.length-24+1),s=0;s<$comparison.length;s++)if($f=$comparison[s],parseInt($f.product_id)==parseInt(t.product_id))return 1;return $comparison.push({product_id:t.product_id,date:Date()}),localStorage.setItem(t.site_name+"_comparison",JSON.stringify($comparison)),p724.update_count_links(t),1},remove_product_from_compare_list:function(t){var s;for($comparison=p724.get_product_compare_list(t),s=0;s<$comparison.length;s++)if($f=$comparison[s],parseInt($f.product_id)==parseInt(t.product_id))return $comparison.splice(s,1),localStorage.setItem(t.site_name+"_comparison",JSON.stringify($comparison)),p724.update_count_links(t),1;return 0},in_product_compare_list:function(t){var s;for($comparison=p724.get_product_compare_list(t),s=0;s<$comparison.length;s++)if($f=$comparison[s],parseInt($f.product_id)==parseInt(t.product_id))return!0;return!1},display_favorites:function(t,s){0==$("#favorites_main").length?$.post("/tools/favorites.php",function(i){$("body").append(i),favorites_initialize(t),s&&s()}):($("#favorites_main").modal("show"),favorites_initialize(t),s&&s())},display_user_visits:function(t,s){0==$("#visits_main").length?$.post("/tools/visits.php",function(i){$("body").append(i),visits_initialize(t),s&&s()}):($("#visits_main").modal("show"),product_visits_initialize(t),s&&s())},display_user_compare_list:function(t,s){0==$("#compare_list_main").length?$.post("/tools/compare_list.php",function(i){$("body").append(i),compare_list_initialize(t),s&&s()}):($("#compare_list_main").modal("show"),compare_list_initialize(t),s&&s())},display_product_comparer:function(t,s){$("#product_comparer_main").remove(),$.post("/tools/product_comparer.php",function(i){$("body").append(i),product_comparer_initialize(t),s&&s()})},get_compared_product_properties:function(t,s){t.action="get_compared_product_properties",$.post(this.url,t,function(t){t=$.parseJSON(t),s(t)})},product_buttons:function(t,s,i){return $bhtml="
",s?-1==s.indexOf(parseInt(t.id))?$bhtml+="":$bhtml+="":$bhtml+="",i?-1==i.indexOf(parseInt(t.id))?$bhtml+="":$bhtml+="":$bhtml+="",$bhtml+="",$bhtml+="",$bhtml+="",$bhtml+="",$bhtml+="
",$bhtml},get_products_by_ids:function(t,s){t.action="get_products_by_ids",$.post(this.url,t,function(t){s($.parseJSON(t))})},product_compare:function(t,s){return $title=p724.get_product_title(t),$src=p724.get_product_image(t,2),$extra=p724.get_product_extra(t),$html="
",$html+="
",$html+="",$html+="
",$html+="",$html+="
",$html+=""+$.number(t.area)+" m²",$extra&&($html+=""+$extra+""),$html+="
",$html+="
",$html+=""+$.number(t.price)+" "+t.cur+"",$html+="
",$html+="
",$html+="
",$html+="",$html+="
",$html+="",$html},product_search_gallery:function(t,s,i,e){return $sticker_html=p724.get_sticker_html({product:t,stickers:e}),$title=p724.get_product_title(t),$location=p724.get_product_location(t),$src=p724.get_product_image(t,2),$extra=p724.get_product_extra(t),$html="\t",$html},assign_button_events:function(t){$("#content"+t+" .add_to_favorites").off("click").on("click",function(s){s.stopPropagation(),$this=this,$product=$.parseJSON(unescape($($this).closest(".product","div").attr("data-product"))),p724.add_product_to_favorites({product_id:$product.id,site_name:$current_site_name},function(s){1==s.result?($($this).removeClass("add_to_favorites").addClass("remove_from_favorites").attr("title",$lbl_remove_from_favorites).html(""),p724.assign_button_events(t)):alertify.log("","error")}),s.stopPropagation(),s.preventDefault()}),$("#content"+t+" .remove_from_favorites").off("click").on("click",function(s){s.stopPropagation(),$this=this,$product=$.parseJSON(unescape($($this).closest(".product","div").attr("data-product"))),p724.remove_product_from_favorites({product_id:$product.id,site_name:$current_site_name},function(s){1==s.result?($($this).removeClass("remove_from_favorites").removeClass("red-bg").addClass("add_to_favorites").attr("title",$lbl_add_to_favorites).html(""),p724.assign_button_events(t)):alertify.log($lbl_error,"error")}),s.stopPropagation(),s.preventDefault()}),$("#content"+t+" .add_to_compare_list").off("click").on("click",function(s){s.stopPropagation(),$this=this,$product=$.parseJSON(unescape($($this).closest(".product","div").attr("data-product"))),$result=p724.add_product_to_compare_list({product_id:$product.id,site_name:$current_site_name}),1==$result?($($this).removeClass("add_to_compare_list").addClass("remove_from_compare_list").attr("title",$lbl_remove_from_list).html(""),p724.assign_button_events(t)):alertify.log($lbl_error,"error"),s.stopPropagation(),s.preventDefault()}),$("#content"+t+" .remove_from_compare_list").off("click").on("click",function(s){s.stopPropagation(),$this=this,$product=$.parseJSON(unescape($($this).closest(".product","div").attr("data-product"))),$result=p724.remove_product_from_compare_list({product_id:$product.id,site_name:$current_site_name}),1==$result?($($this).removeClass("remove_from_compare_list").addClass("add_to_compare_list").attr("title",$lbl_add_to_compare_list).html(""),p724.assign_button_events(t)):alertify.log($lbl_error,"error"),s.stopPropagation(),s.preventDefault()}),$("#content"+t+" .show_map").on("click",function(t){$this=this,$product=$.parseJSON(unescape($($this).closest(".product","div").attr("data-product"))),$location={type:"product",id:$product.id,lat:$product.lat,lng:$product.lng,image:p724.get_product_image($product,2),env_type_id:5,link:"",price:$product.price,currency:$product.cur},$($this).find("i").spin(),p724.display_location_viewer($location,function(){$($this).unspin()}),t.stopPropagation(),t.preventDefault()}),$("#content"+t+" .send_message").on("click",function(t){t.stopPropagation(),$this=this,$product=$.parseJSON(unescape($($this).closest(".product","div").attr("data-product"))),$($this).spin(),p724.display_send_message({product_id:$product.id,message_type_id:1,to_firm_id:$product.firm_id,to_member_id:$product.member_id,title:$product.title+"
"+$product.cur+$product.price+"
"+$product.st+" "+$product.sg+"
"+$product.ct+" "+$product.tw+" "+$product.dt+"
"+$product.product_no+" ref:"+$product.refcode,photo:p724.image_server+$product.ph_src+"/2/"+$product.ph_fi,product_link:"http://"+$current_site_name+$product.link,dialog_title:$lbl_enquire_about_this_property},function(){$($this).unspin()}),$($this).unspin(),t.stopPropagation(),t.preventDefault()})}},$.fn.spin=function(){return $this=this,$ic=$($this).find("i"),$ic.length>0&&($($ic).attr("data-original-class",$($ic).attr("class")),$($ic).addClass("icon-spin icon-circle spin")),$this},$.fn.unspin=function(){return $this=this,$ic=$($this).find("i"),$ic.length>0&&$($ic).attr("class",$($ic).attr("data-original-class")).removeAttr("data-original-class"),$this},$.fn.outer=function(t){if(!t)return $("
").append($(this).clone()).html();$(t).insertBefore(this),$(this).remove()},port724fields={member:function(t,s){return this.name=t,this.sur_name=s||"",this}},p724.fields=port724fields; } /* FILE ARCHIVED ON 01:59:33 Mar 14, 2023 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 20:53:44 Apr 29, 2026. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /* playback timings (ms): capture_cache.get: 4.961 load_resource: 189.079 PetaboxLoader3.resolve: 130.284 PetaboxLoader3.datanode: 45.226 (2) loaddict: 31.073 */