if(typeof(click_sabavision_banners) == 'undefined'){ var click_sabavision_banners = {}; } if(typeof(messageLogs) == 'undefined'){ var messageLogs = {}; } if(typeof(sabavisionFrameUrls ) == 'undefined'){ var sabavisionFrameUrls = {}; var sabavisionFrameUrlFirstFlag = true; } (function(url, lightboxFlag, scrolledFlag, fixedFlag, lightBoxJson, fixedBoxJson) { var reloadTime = 60000; var visitedTime = 200; var child; var campid; var campidArr = {}; eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('3 B=17.1l.S(/(M|N|U|1n|X|W)/);3 r=4(){F{8.V("Y");5 Z}H(e){5 12}};3 w=((\'11\'u 6)),y=(\'10\'u 6)||(6.v&&8 T v)||r();3 x=(s.L((s.O()*P)+1))*2;7(B||w||y){x+=1}4 1h(g,z,n){7(n){3 a=1g 1f();a.1i(a.1j()+(n*A*A*1k));3 d="; d="+a.1d()}q 3 d="";8.C=g+"="+z+d+"; 15=/"}4 18(g){3 j=g+"=";3 k=8.C.o(\';\');1b(3 i=0;i0||((6.f.D).m("1m.J"))>0){h=p(8.f).o(\'%G\')[0]}q{F{h=p(6.Q.f.R).o(\'%G\')[0]}H(e){h=\'\'}};',62,86,'|||var|function|return|window|if|document|length|date|||expires||location|name|varloc||nameEQ|ca|val|indexOf|hours|split|encodeuri|else|touch|Math|substring|in|DocumentTouch|orientationChange|sabavisioniSmobileFlag|touchEvents|value|60|sabavisionisMobile|cookie|host|encodeURIComponent|try|23|catch|param|com|makeGetVar|floor|iPhone|iPod|random|100|parent|href|match|instanceof|iPad|createEvent|Mobile|BlackBerry|TouchEvent|true|ontouchstart|onorientationchange|false|url|null|path|escape|navigator|readCookie|charAt|while|for|typeof|toGMTString|sabavision|Date|new|createCookie|setTime|getTime|1000|userAgent|akairan|Android'.split('|'),0,{})); function guid() { function s4() { return Math.floor((1 + Math.random()) * 0x10000) .toString(16) .substring(1); } return s4() + s4() + '-' + s4() + '-' + s4() + '-' + s4() + '-' + s4() + s4() + s4(); } var uniqId = guid(); if(readCookie('_lightBox') && lightboxFlag){ return false; } url += (varloc)? "&loc=" + varloc : ''; url += (encodeuri(document.referrer))? "&ref=" + encodeuri(document.referrer):''; url += '&bannerid=clicknet_vars_frame41389'+uniqId; var startStr = '', endStr = ''; var bannerType = 'normal'; window.removeElement = function(element) { element && element.parentNode && element.parentNode.removeChild(element); } var disableInMobile = false; var reponsiveFlag = 'yes'; var justMobileFlag = ''; var fullWidthFlag = ''; var appendedId = 'click_sabavision_197975'; if(fixedFlag && !document.getElementById('sabaFixedBox'+fixedBoxJson[0]+fixedBoxJson[1])){ startStr += '
'; startStr += '
X
'; endStr += '
'; bannerType = 'fixed'; disableInMobile = true; }else if(lightboxFlag && !readCookie('_lightBox') && !document.getElementById('sabalightBox')){ startStr += '
'; startStr += '
'; startStr += '
X
'; endStr += '
'; createCookie('_lightBox','1',1); bannerType = 'lightbox'; disableInMobile = true; }else if(scrolledFlag && !document.getElementById('sabascrolledbox')){ startStr += '
'; startStr += '
'; startStr += '
X
'; endStr += '
'; sabaScrolledHandler = function(){ if(window.scrollY > 90){ document.getElementById('sabascrolledbox').style.height="95px"; }else{ document.getElementById('sabascrolledbox').style.height="0px"; } }; if (document.addEventListener) { document.addEventListener('scroll', sabaScrolledHandler, false); } else if (document.attachEvent) { document.attachEvent('scroll', sabaScrolledHandler); } disableInMobile = true; bannerType = 'scrolled'; }else if(((sabavisioniSmobileFlag % 2) || reponsiveFlag) && 240){ var maxSizeStr = ''; if(!fullWidthFlag){ maxSizeStr = 'max-width: 240px;max-height: 240px;'; } startStr += '
'; startStr += '
'; startStr += ''; endStr += '
'; url += '&responsive=true'; } var disableDoubleClick = ''; if(disableDoubleClick){ url += '&disable_double_click=true'; } docoument_keywords = function (){ var keywords; var metas = document.getElementsByTagName('meta'); for (var x=0,y=metas.length; x= pageStart) && (elemEnd <= pageEnd)) { if (timeFlag) { if(window.location.hash=='#debug'){ console.log('banner in screen '+elm.id); } timeFlag = false; timerVar = setInterval(function() { clearInterval(timerVar); bannerIsVisable(elmId); }, visitedTime); } } else { clearInterval(timerVar); timeFlag = true; } } } if(bannerType == 'normal'){ if (document.addEventListener) { document.addEventListener('scroll', function() { checkvisible(document.getElementById('clicknet_vars_frame41389'+uniqId)); }, false); } else if (document.attachEvent) { document.attachEvent('scroll', function() { checkvisible(document.getElementById('clicknet_vars_frame41389'+uniqId)); }); } }else{ } //Object.keys(sabavisionFrameUrls).length || //if(!sabavisionFrameUrlFirstFlag){ // sabavisionFrameUrls["clicknet_vars_frame41389"+uniqId] = url+'&vt='+sabavisioniSmobileFlag; // url = 'https://click.sabavision.com/blank.html?'; //} sabavisionFrameUrlFirstFlag = false; if(justMobileFlag && !( navigator.userAgent.match(/Android/i) || navigator.userAgent.match(/webOS/i) || navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/iPad/i) || navigator.userAgent.match(/iPod/i) || navigator.userAgent.match(/BlackBerry/i) || navigator.userAgent.match(/Windows Phone/i))){ return false; } if(appendedId){ document.getElementById(appendedId).innerHTML += startStr+'
'+endStr; }else{ document.write(startStr+'
'+endStr); } //TODO: simple //checkvisible(document.getElementById('clicknet_vars_frame41389'+uniqId)); })("https://click.sabavision.com/showcamp.php?w=240&h=240&posdata[1]=66381-a-25-13962&posdata[2]=66380-b-25-13962&posdata[3]=66379-c-25-13962&posdata[4]=66378-a--13962&posdata[5]=66377-b--13962&posdata[6]=66376-c--13962&postype=other&t=1524336011&ct=2f894244c17fba5a87c63535d4d111e4ec01b2a3&extra_click_url=",false,false,false,{'marginTop': '-120px', 'marginLeft': '-120px', 'width': '240px', 'height': '240px'},""); function addIframeSrc(){ var flg = true; for(i in sabavisionFrameUrls){ if(flg){ document.getElementById(i).setAttribute('src', sabavisionFrameUrls[i]); delete sabavisionFrameUrls[i]; flg = false; } } }