try{window.addEvent('load',function(){if(document.id('ask_form_button')&&document.id('ask_form')){document.id('ask_form').setStyle('display','block');var ask_form_slide=new Fx.Slide('ask_form');document.id('ask_form_button').addEvent('click',function(e){if(typeof formTogglerFx2!=='undefined'){formTogglerFx2.start('height',0);}
if(typeof e!=='undefined')e.stop();ask_form_slide.toggle();return false;});ask_form_slide.hide();}});}catch(e){console.error('Error in script declaration; Error:'+e.message);};
try{window.addEvent('load',function(){var djcfpagebreak_acc=new Fx.Accordion('.djcf_tabs .accordion-toggle','.djcf_tabs .accordion-body',{alwaysHide:false,display:0,duration:100,onActive:function(toggler,element){toggler.addClass('active');element.addClass('in');},onBackground:function(toggler,element){toggler.removeClass('active');element.removeClass('in');}});var djcfpagebreak_tab=new Fx.Accordion('.djcf_tabs li.nav-toggler','.djcf_tabs div.tab-pane',{alwaysHide:true,display:0,duration:150,onActive:function(toggler,element){toggler.addClass('active');element.addClass('active');},onBackground:function(toggler,element){toggler.removeClass('active');element.removeClass('active');}});});}catch(e){console.error('Error in script declaration; Error:'+e.message);};
try{document.getElementById("google_map_box").style.display='block';document.id('show_map_btn').addEvent('click',function(){document.id('map').innerHTML='';mapaStart();});var map;var map_marker=new google.maps.InfoWindow();var geokoder=new google.maps.Geocoder();function addMarker(position,txt,icon)
{var MarkerOpt={position:position,icon:icon,map:map}
var marker=new google.maps.Marker(MarkerOpt);marker.txt=txt;google.maps.event.addListener(marker,"click",function()
{map_marker.setContent(marker.txt);map_marker.open(map,marker);});return marker;}
function mapaStart()
{var icon='';document.getElementById("google_map_box").style.display='block';var adLatlng=new google.maps.LatLng(41.269314752207556,28.682552197053205);var scrollw=false;var MapOptions={zoom:10,scrollwheel:scrollw,center:adLatlng,mapTypeId:google.maps.MapTypeId.ROADMAP,navigationControl:true,styles:[]};map=new google.maps.Map(document.getElementById("map"),MapOptions);var marker=addMarker(adLatlng,'<div style=\"width:200px\"><div style=\"margin-bottom:5px;\"><strong>Tayakadın En Yakın AÇIK OTO LASTİKÇİ *ACİL:0531 364 60 34</strong></div><br /><div style=\"margin-top:10px;\"><img width=\"60px\" src=\"/components/com_djclassifieds/images/item/0/938_oto_lastikci_38_ths.jpg\" /> <img width=\"60px\" src=\"/components/com_djclassifieds/images/item/0/938_oto_lastikci_40_ths.jpg\" /> </div></div>',icon);}}catch(e){console.error('Error in script declaration; Error:'+e.message);};
try{this.DJCFShowValueOnClick=function(){var fields=document.id('dj-classifieds').getElements('.djsvoc');if(fields){fields.each(function(field,index){field.addEvent('click',function(evt){var f_rel=field.getProperty('rel');if(f_rel){field.innerHTML='<a href="'+f_rel+'">'+field.title+'</a>';}else{field.innerHTML=field.title;}
return true;});});}};window.addEvent('domready',function(){DJCFShowValueOnClick();});}catch(e){console.error('Error in script declaration; Error:'+e.message);};
try{jQuery(document).ready(function(){jQuery('a.backToTop').click(function(){jQuery('html, body').animate({scrollTop:0},'slow');return false;});});}catch(e){console.error('Error in script declaration; Error:'+e.message);};
try{jQuery(document).ready(function($){$(window).resize(function(){var highestBox=0;$('.footerBlock_module .t3-spotlight.t3-footnav > div').each(function(){if($(window).width()>767){if($(this).height()>highestBox){highestBox=$(this).height();}
$(this).height(highestBox);}else{$(this).css('height','auto');}});});setTimeout(function(){$(window).trigger('resize')},300);});}catch(e){console.error('Error in file:/templates/bt_construction/js/script.js; Error:'+e.message);};
try{(function(d,w,c){(w[c]=w[c]||[]).push(function(){try{w.yaCounter93244176=new Ya.Metrika({id:93244176,clickmap:true,trackLinks:true,accurateTrackBounce:true,webvisor:true});}catch(e){}});var n=d.getElementsByTagName("script")[0],x="https://cdn.jsdelivr.net/npm/yandex-metrica-watch/watch.js",s=d.createElement("script"),f=function(){n.parentNode.insertBefore(s,n);};for(var i=0;i<document.scripts.length;i++){if(document.scripts[i].src===x){return;}}
s.type="text/javascript";s.async=true;s.src=x;if(w.opera=="[object Opera]"){d.addEventListener("DOMContentLoaded",f,false);}else{f();}})(document,window,"yandex_metrika_callbacks");}catch(e){console.error('Error in script declaration; Error:'+e.message);};
