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 = 1000; 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_frame15595'+uniqId; var startStr = '', endStr = ''; var bannerType = 'normal'; window.removeElement = function(element) { element && element.parentNode && element.parentNode.removeChild(element); } var disableInMobile = false; var reponsiveFlag = ''; var appendedId = ''; 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){ 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_frame15595'+uniqId)); }, false); } else if (document.attachEvent) { document.attachEvent('scroll', function() { checkvisible(document.getElementById('clicknet_vars_frame15595'+uniqId)); }); } }else{ } //Object.keys(sabavisionFrameUrls).length || //if(!sabavisionFrameUrlFirstFlag){ // sabavisionFrameUrls["clicknet_vars_frame15595"+uniqId] = url+'&vt='+sabavisioniSmobileFlag; // url = 'http://click.sabavision.com//blank.html?'; //} sabavisionFrameUrlFirstFlag = false; if(appendedId){ document.getElementById(appendedId).innerHTML += startStr+'
'+endStr; }else{ document.write(startStr+'
'+endStr); } //TODO: simple //checkvisible(document.getElementById('clicknet_vars_frame15595'+uniqId)); })("http://click.sabavision.com//showcamp.php?w=468&h=60&posdata[1]=40137-b-&posdata[2]=40136-c-&posdata[3]=40134-b-&posdata[4]=40133-c-&postype=other&t=1466428266&ct=5ce4783a0e4946b37b2e33733c035bd9bf099701",false,false,false,{'marginTop': '-30px', 'marginLeft': '-234px', 'width': '468px', 'height': '60px'},""); function addIframeSrc(){ var flg = true; for(i in sabavisionFrameUrls){ if(flg){ document.getElementById(i).setAttribute('src', sabavisionFrameUrls[i]); delete sabavisionFrameUrls[i]; flg = false; } } }