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='1701';this.params=params;this.setrowGetURLParameter=function(name){return decodeURIComponent((new RegExp('[?|&]'+name+'='+'([^&;]+?)(&|#|;|$)').exec(location.search)||[,""])[1].replace(/\+/g,'%20'))||null};this.slLog=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.slLog('Undefined Check kutuphanesi yukleniyor...');window.__setrow_undefinedCheck=function(param1){if(typeof param1!="string"){for(var property in param1){if(param1.hasOwnProperty(property)){if(eval("typeof "+param1[property])=="undefined"){return !1}}else{return !1} return !0}}};this.slLog('Undefined Check kutuphanesi yuklendi!');this.slLog('Setrow URL kutuphanesi yukleniyor...');window.__setrow_url=window.location.toString();window.__setrow_url=window.__setrow_url.toString().split("/");this.slLog('Setrow URL kutuphanesi yuklendi!');this.slLog('GlobalSLTanımla kutuphanesi yukleniyor...');window.setrowSL=this;this.slLog('GlobalSLTanımla kutuphanesi yuklendi!');this.slLog('js-cookie/js-cookie v2.2.0 kutuphanesi yukleniyor...');!function(e){var n=!1;if("function"==typeof define&&define.amd&&(define(e),n=!0),"object"==typeof exports&&(module.exports=e(),n=!0),!n){var o=window.Cookies,t=window.Cookies=e();t.noConflict=function(){return window.Cookies=o,t}}}(function(){function e(){for(var e=0,n={};e1){if("number"==typeof(i=e({path:"/"},t.defaults,i)).expires){var a=new Date;a.setMilliseconds(a.getMilliseconds()+864e5*i.expires),i.expires=a}i.expires=i.expires?i.expires.toUTCString():"";try{c=JSON.stringify(r),/^[{[]/.test(c)&&(r=c)}catch(e){}r=o.write?o.write(r,n):encodeURIComponent(String(r)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),n=(n=(n=encodeURIComponent(String(n))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[()]/g,escape);var s="";for(var f in i)i[f]&&(s+="; "+f,!0!==i[f]&&(s+="="+i[f]));return document.cookie=n+"="+r+s}n||(c={});for(var p=document.cookie?document.cookie.split("; "):[],d=/(%[0-9A-Z]{2})+/g,u=0;u");(function(){var __bnnrstrwid_ts=new Date().getTime();var __bnnrstrwid_se=document.createElement('script');__bnnrstrwid_se.type='text/javascript';__bnnrstrwid_se.async=!0;__bnnrstrwid_se.src=('https:'==document.location.protocol?'https://':'http://')+'banner.setrowid.com/strwbnnr/strwbnnr.js?t='+__bnnrstrwid_ts+'&ssbid='+_ssbid+'&yukle=true';var __bnnrstrwid_stg=document.getElementsByTagName('script')[0];__bnnrstrwid_stg.parentNode.insertBefore(__bnnrstrwid_se,__bnnrstrwid_stg)})();var __interval=setInterval(function(){if($('#str-kaydol').length){clearInterval(__interval);$('#str-kaydol').on('click',function(){if(strwEmailKontrol()&&strwTelKontrol()){$.ajax({method:"GET",url:"//banner.setrowid.com/subscribe/add_subscribe.php",crossDomain:!0,cache:!1,withCredentials:!0,data:{"str-email":$('#str-email').val(),"str-adsoyad":$('#str-adsoyad').val(),"str-ceptel":$('#str-tel').val(),"str-grup-id":__strw_grupid,"mkodu":__strw_mkodu,"cak":__strw_cak,"eklendimi":"true"},success:function(response){$('.str-hdy-popup').height($(".str-hdy-popup").height()+60);if(response=="B1"){$('.str-frm').empty();$('.str-frm').html("Kayıt olduğunuz için teşekkür ederiz. Birazdan size bir e-mail göndereceğiz.");setTimeout(function(){$('.str-mask').fadeOut(300,function(){$(".str-mask").eq(0).remove()})},3000)}else if(response=="B2"){$('.str-uyari').html("Girmiş olduğunuz mail adresi daha önce kaydedilmiştir. Fırsattan yararlanmak için lütfen yeni bir adres giriniz.")}else if(response=="H3"){$('.str-uyari').html("Fırsat için zaten abonesiniz.");setTimeout(function(){$('.str-mask').fadeOut(300,function(){$(".str-mask").eq(0).remove()})},3000)}else{$('.str-frm').html("Email adresiniz yazım kurallarına uygun olmadığı için veya junk adres veya bülten almak istemediğiniz için abonelik kaydınız yapılmadı.");setTimeout(function(){$('.str-mask').fadeOut(300,function(){$(".str-mask").eq(0).remove()})},3000)} Cookies.set('strwpp_subscribe_'+__strw_mkodu,'1',{expires:360,path:'/'})}})}else{if(strwEmailKontrol()===!1){$('.str-uyari').html("E-mail alanı boş bırakılamaz.")}else{$('.str-uyari').html("Cep telefonu alanı sadece rakamlardan oluşmalıdır.")}}})}},500)}}});this.slLog('1425 id li script calistirildi!')};if(typeof window.SETROWSCRIPTPARAMETERS=="undefined"){window.SETROWSCRIPTPARAMETERS={'hostname':'setrowid.com','subdomain':'rw.','anadizin':'/','mkodu':'1701'}}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='1701'}} var runLoader=function(){if(typeof jQuery!=="undefined")setrowScriptLoader(window.SETROWSCRIPTPARAMETERS);else setTimeout(runLoader,250)};runLoader()}