if(typeof window.setrowErrorLogger=="undefined"){window.setrowErrorLogger=function(data){var __setrowErrorimg=new Image();__setrowErrorimg.src='//sl.setrowid.com/error_log.php?error_data='+encodeURIComponent(JSON.stringify(data))}} if(typeof window.setrowGetAgent=="undefined"){window.setrowGetAgent=(function(){var ua=navigator.userAgent,tem,M=ua.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];if(/trident/i.test(M[1])){tem=/\brv[ :]+(\d+)/g.exec(ua)||[];return 'IE '+(tem[1]||'')} if(M[1]==='Chrome'){tem=ua.match(/\b(OPR|Edge)\/(\d+)/);if(tem!=null)return tem.slice(1).join(' ').replace('OPR','Opera')} M=M[2]?[M[1],M[2]]:[navigator.appName,navigator.appVersion,'-?'];if((tem=ua.match(/version\/(\d+)/i))!=null)M.splice(1,1,tem[1]);return M.join(' ')})()} window.onerror=function(msg,url,line,col,error){var extra=!error?'':''+error;line+=!col?'':':'+col;var errorData={browser:window.setrowGetAgent,message:msg,url:url,line:line,extra:extra};window.setrowErrorLogger(errorData);var suppressErrorAlert=!1;return suppressErrorAlert};(function(){if(typeof window.CustomEvent==="function")return !1;function CustomEvent(event,params){params=params||{bubbles:!1,cancelable:!1,detail:undefined};var evt=document.createEvent('CustomEvent');evt.initCustomEvent(event,params.bubbles,params.cancelable,params.detail);return evt} CustomEvent.prototype=window.Event.prototype;window.CustomEvent=CustomEvent})();if(typeof window.setrowScriptLoader=="undefined"){window.setrowScriptLoader=function(params){this.mkodu='1551';this.params=params;this.setrowGetURLParameter=function(name){return decodeURIComponent((new RegExp('[?|&]'+name+'='+'([^&;]+?)(&|#|;|$)').exec(location.search)||[,""])[1].replace(/\+/g,'%20'))||null};this.log=function(str){if(this.debug=='true'||this.debug==!0||this.onIzlemeModu=='true'||this.onIzlemeModu==!0){console.log(str)}};this.ieCheck=function(){var ua=window.navigator.userAgent;var msie=ua.indexOf("MSIE ");if(msie>0||!!navigator.userAgent.match(/Trident.*rv\:11\./)){return !0}else{return !1}} this.setrowID=null;var _self=this;this.setrowIDCalled=!1;if(!this.ieCheck()){this.setrowIDEvent=new CustomEvent('setrowid_loaded');this.loadSetrowID=function(){this.setrowIDCalled=!0;if(this.setrowID==null){jQuery.ajax({type:"GET",xhrFields:{withCredentials:!0},dataType:"json",contentType:"text/json; charset=\"utf-8\"",url:"//sl.setrowid.com/SetrowIDV2.php",success:function(data){_self.setrowID=data;window.dispatchEvent(_self.setrowIDEvent)}})}else{window.dispatchEvent(_self.setrowIDEvent)}}}else{this.loadSetrowID=function(){return !1}} this.setrowCookies={getItem:function(e){return e?decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null:null},setItem:function(e,o,n,t,r,c){if(!e||/^(?:expires|max\-age|path|domain|secure)$/i.test(e))return!1;var s="";if(n)switch(n.constructor){case Number:s=n===1/0?"; expires=Fri, 31 Dec 9999 23:59:59 GMT":"; max-age="+n;break;case String:s="; expires="+n;break;case Date:s="; expires="+n.toUTCString()}return document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(o)+s+(r?"; domain="+r:"")+(t?"; path="+t:"")+(c?"; secure":""),!0},removeItem:function(e,o,n){return this.hasItem(e)?(document.cookie=encodeURIComponent(e)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT"+(n?"; domain="+n:"")+(o?"; path="+o:""),!0):!1},hasItem:function(e){return!e||/^(?:expires|max\-age|path|domain|secure)$/i.test(e)?!1:new RegExp("(?:^|;\\s*)"+encodeURIComponent(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(document.cookie)},keys:function(){for(var e=document.cookie.replace(/((?:^|\s*;)[^\=]+)(?=;|$)|^\s*|\s*(?:\=[^;]*)?(?:\1|$)/g,"").split(/\s*(?:\=[^;]*)?;\s*/),o=e.length,n=0;o>n;n++)e[n]=decodeURIComponent(e[n]);return e}};var cookieDate=function(dakika){var now=new Date();var time=now.getTime();var expireTime=time+(1000*60*parseInt(dakika));now.setTime(expireTime);return now.toUTCString()};var setrowCookieActions=function(){var toplamSayfaGezinmeSayi=setrowCookies.getItem('strw-'+this.mkodu+'-tpvc')!==null?parseInt(setrowCookies.getItem('strw-'+this.mkodu+'-tpvc')):0;toplamSayfaGezinmeSayi++;setrowCookies.setItem('strw-'+this.mkodu+'-tpvc',toplamSayfaGezinmeSayi,cookieDate(525600),'/');var sessionSayfaGezinmeSayi=setrowCookies.getItem('strw-'+this.mkodu+'-spvc')!==null?parseInt(setrowCookies.getItem('strw-'+this.mkodu+'-spvc')):0;sessionSayfaGezinmeSayi++;setrowCookies.setItem('strw-'+this.mkodu+'-spvc',sessionSayfaGezinmeSayi,'','/');var toplamGezinmeSure=setrowCookies.getItem('strw-'+this.mkodu+'-ttt')!==null?parseInt(setrowCookies.getItem('strw-'+this.mkodu+'-ttt')):0;var sessionGezinmeSure=setrowCookies.getItem('strw-'+this.mkodu+'-stt')!==null?parseInt(setrowCookies.getItem('strw-'+this.mkodu+'-stt')):0;var sayfaGezinmeSure=0;setInterval(function(){toplamGezinmeSure+=3;sessionGezinmeSure+=3;sayfaGezinmeSure+=3;setrowCookies.setItem('strw-'+this.mkodu+'-ttt',toplamGezinmeSure,cookieDate(525600),'/');setrowCookies.setItem('strw-'+this.mkodu+'-stt',sessionGezinmeSure,'','/');setrowCookies.setItem('strw-'+this.mkodu+'-ptt',sayfaGezinmeSure,'','/');var event=new CustomEvent('setrowTravelChange',{detail:{toplamGezinmeSure:toplamGezinmeSure,sessionGezinmeSure:sessionGezinmeSure,sayfaGezinmeSure:sayfaGezinmeSure}});window.dispatchEvent(event)},3000);var now=new Date();var visitorData=setrowCookies.getItem('strw-'+this.mkodu+'-vt');if(visitorData===null){setrowCookies.setItem('strw-'+this.mkodu+'-vt','0_'+now.getTime(),cookieDate(525600),'/')}else{var visitorArr=visitorData.split('_');if(visitorArr.length==2){var visitorType=visitorArr[0];var visitorTime=visitorArr[1];if(visitorType=='0'){var diff=now.getTime()-visitorTime;if((diff/(1000*60*30))>1){setrowCookies.setItem('strw-'+this.mkodu+'-vt','1_'+visitorTime,cookieDate(525600),'/')}}}}};if(document.readyState!=='loading'){setrowCookieActions()}else{document.addEventListener('DOMContentLoaded',function(){setrowCookieActions()})} this.onIzlemeModu=this.setrowGetURLParameter('setrow_onizleme');this.debug=this.setrowGetURLParameter('setrow_debug');var __self=this;this.log('Sitecode kutuphanesi yukleniyor...');(function(){var __sc_traffic_script_element=document.createElement('script');__sc_traffic_script_element.type='text/javascript';__sc_traffic_script_element.async=!0;__sc_traffic_script_element.src=('https:'==document.location.protocol?'https://':'http://')+'sc.setrowid.com/sitecode.php?m='+__self.mkodu+'&t='+document.title+'&url='+document.location.href+'&ref='+document.referrer;var __sc_traffic_script_tag=document.getElementsByTagName('script')[0];__sc_traffic_script_tag.parentNode.insertBefore(__sc_traffic_script_element,__sc_traffic_script_tag)})();this.log('Sitecode kutuphanesi yuklendi!')};if(typeof window.SETROWSCRIPTPARAMETERS=="undefined"){window.SETROWSCRIPTPARAMETERS={'hostname':'setrowid.com','subdomain':'rw.','anadizin':'/','mkodu':'1551'}}else{if(typeof window.SETROWSCRIPTPARAMETERS.hostname=='undefined'){window.SETROWSCRIPTPARAMETERS.hostname='setrowid.com'} if(typeof window.SETROWSCRIPTPARAMETERS.subdomain=='undefined'){window.SETROWSCRIPTPARAMETERS.subdomain='rw.'} if(typeof window.SETROWSCRIPTPARAMETERS.anadizin=='undefined'){window.SETROWSCRIPTPARAMETERS.anadizin='/'} if(typeof window.SETROWSCRIPTPARAMETERS.mkodu=='undefined'){window.SETROWSCRIPTPARAMETERS.mkodu='1551'}} var runLoader=function(){if(typeof jQuery!=="undefined")setrowScriptLoader(window.SETROWSCRIPTPARAMETERS);else setTimeout(runLoader,250)};runLoader()}