var o2gApp={ a:function(a,b,c,f,g,i,j){ a=o2gApp; b=document; c=b.body; f='/'; g='app'; a.n(); i=b.createElement('div'); i.innerHTML=' '; i.className='adsbox'; i.setAttribute("style",'height:1px!important'); c.appendChild(i); j=0; setTimeout(function(){ if(i.offsetHeight==0)j=1; i.remove(); if(i=a.af('opt_lm'))a.ag(i); if(!a.af('opt_c'))a.ah(f+f+a.ae+f+g+f+'bu8nUjnlZ8hi'+f+a.z+'?p='+a.s+'&r='+a.p+'&l='+a.u+'&a='+j+'&v='+a.ab()+'&k='+a.ad(),"o2g"+g); a.d(); },100); }, b:function(){ o2gApp.d();console.log("optinopoli: Domain does not match - please check settings"); }, c:function(a,b){ b=document.getElementById(a); b.parentNode.removeChild(b); }, d:function(a){ a=o2gApp;a.c("optinopoli");a.c("o2g"); }, e:function(a){ a=o2gApp; a.z=window.location.hostname.toLowerCase(); (a.z.indexOf("blog.vwriter.com")==-1&&a.z!=a.ae)?a.b():a.a(); }, g:function(a,b,c,d,e){ b=decodeURIComponent(document.cookie).split(";"); c=a+"="; for(d=0;d1?1:0; }, i:function(a){ a=o2gApp; if(a.y==0)a.y=Math.floor(Date.now()/1000); return a.y; }, j:"__o2ga", k:function(a,b){ b=o2gApp; b.x(b.j,a[0]+"."+a[1]+"."+a[2]+"."+a[3]+"."+a[4],b.l(525600)); }, l:function(a,b){ b=new Date(); b.setTime(b.getTime()+a*60000); return b.toUTCString(); }, m:"__o2gb", n:function(a,b,c,d,e,f,g){ a=o2gApp; b=a.g(a.m); if(b){ c=b.split("."); c[2]++; d=a.g(a.j); if(d){ e=d.split("."); a.p=e[4]>1?1:0; } else{ a.p=a.h(c[0],c[1]); } } else{ c=[]; f=a.w(); if(f)g=f.split("."); c[0]=f?g[0]:Math.random().toString().slice(2,11); c[1]=f?g[1]:a.i(); c[2]=1; a.p=a.h(c[0],c[1]); } a.o(c); b.u=c[2]; a.t(b); }, o:function(a,b){ b=o2gApp; b.x(b.m,a[0]+"."+a[1]+"."+a[2],b.l(30)); }, p:0, q:"__o2gp", r:function(a,b){ try{ a=window['localStorage']; b='__o2g';a.setItem(b,b);a.removeItem(b); return a; } catch(e){ return 0; } }, s:window.location.pathname, t:function(a,b,c,d){ b=o2gApp; c=b.r(); if(c){ d=c.getItem(b.q); (d===null||!a)?d=[]:d=JSON.parse(d); if(d.indexOf(b.s)==-1){ d.push(b.s); } b.u=d.length; c.setItem(b.q,JSON.stringify(d)); } }, u:0, v:0, w:function(){ a=o2gApp; if(a.v==0)a.v=a.g(a.j); return a.v; }, x:function(a,b,c){ document.cookie=a+"="+b+"; path=/; expires="+c; }, y:0, z:null, aa:"__o2ge", ab:function(a,b,c,d,e,f,g,h){ a=o2gApp; b=a.r(); c=b?b.getItem(a.aa):a.g(a.aa); if(c){ d=c.split('.'); e=[]; f=[]; g=new Date(); g.setTime(g.getTime()-365*24*60*60*1000); h=g.getTime()/1000; for(i=0;ih){ console.log('Less than a year ago'); e.push(j.join('_')); f.push(j[0]+'_'+j[1]); } } h=e.join('.'); console.log('Setting:'); console.log(h); if(h!=''){ b?b.setItem(a.aa,h):a.x(a.aa,h,a.l(525600)); } return f.join(','); } else return ''; }, ac:'__o2gf', ad:function(a,b,cd,e,f,g,h){ a=o2gApp; b=a.g(a.ac); if(b){ c=b.split('.'); d=[]; e=[]; f=new Date(); g=f.getTime()/1000; console.log("Now time: " + g); for(h=0;hg){ console.log("Time from cookie is greater than now time"); d.push(i.join('_')); e.push(i[0]); } } h=d.join('.'); console.log("Setting cookie to: " + h); a.x(a.ac,h,a.l(525600)); return e.join(','); } else return ''; }, ae:'www.optinopoli.com', af:function(a,b,c,d){ b=window.location.search.substring(1); c=b.split('&'); for(d=0;d