var Base64URL={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_ ",encode:function(c){var a="";var l,j,g,k,h,e,d;var b=0;while(b<c.length){l=c.charCodeAt(b++);j=c.charCodeAt(b++);g=c.charCodeAt(b++);k=l>>2;h=((l&3)<<4)|(j>>4);e=((j&15)<<2)|(g>>6);d=g&63;if(isNaN(j)){e=d=64}else{if(isNaN(g)){d=64}}a=a+this._keyStr.charAt(k)+this._keyStr.charAt(h)+this._keyStr.charAt(e)+this._keyStr.charAt(d)}return omc.strip(a)},decode:function(c){var a="";var l,j,g;var k,h,e,d;var b=0;c=c.replace(/[^A-Za-z0-9\-_]/g,"");c=c.replace(/-/g,"+");c=c.replace(/_/g,"/");modulo=c.length%4;if(modulo>0){c+="====".substr(0,4-modulo)}while(b<c.length){k=this._keyStr.indexOf(c.charAt(b++));h=this._keyStr.indexOf(c.charAt(b++));e=this._keyStr.indexOf(c.charAt(b++));d=this._keyStr.indexOf(c.charAt(b++));l=(k<<2)|(h>>4);j=((h&15)<<4)|(e>>2);g=((e&3)<<6)|d;a=a+String.fromCharCode(l);if(e!=64){a=a+String.fromCharCode(j)}if(d!=64){a=a+String.fromCharCode(g)}}return a}};function sha1Hash(k){var o=[1518500249,1859775393,2400959708,3395469782];k+=String.fromCharCode(128);var y=k.length/4+2;var m=Math.ceil(y/16);var n=new Array(m);for(var A=0;A<m;A++){n[A]=new Array(16);for(var z=0;z<16;z++){n[A][z]=(k.charCodeAt(A*64+z*4)<<24)|(k.charCodeAt(A*64+z*4+1)<<16)|(k.charCodeAt(A*64+z*4+2)<<8)|(k.charCodeAt(A*64+z*4+3))}}n[m-1][14]=((k.length-1)*8)/Math.pow(2,32);n[m-1][14]=Math.floor(n[m-1][14]);n[m-1][15]=((k.length-1)*8)&4294967295;var v=1732584193;var u=4023233417;var r=2562383102;var q=271733878;var p=3285377520;var g=new Array(80);var F,E,D,C,B;for(var A=0;A<m;A++){for(var w=0;w<16;w++){g[w]=n[A][w]}for(var w=16;w<80;w++){g[w]=ROTL(g[w-3]^g[w-8]^g[w-14]^g[w-16],1)}F=v;E=u;D=r;C=q;B=p;for(var w=0;w<80;w++){var x=Math.floor(w/20);var h=(ROTL(F,5)+f(x,E,D,C)+B+o[x]+g[w])&4294967295;B=C;C=D;D=ROTL(E,30);E=F;F=h}v=(v+F)&4294967295;u=(u+E)&4294967295;r=(r+D)&4294967295;q=(q+C)&4294967295;p=(p+B)&4294967295}return v.toHexStr()+u.toHexStr()+r.toHexStr()+q.toHexStr()+p.toHexStr()}function f(b,a,d,c){switch(b){case 0:return(a&d)^(~a&c);case 1:return a^d^c;case 2:return(a&d)^(a&c)^(d&c);case 3:return a^d^c}}function ROTL(a,b){return(a<<b)|(a>>>(32-b))}Number.prototype.toHexStr=function(){var c="",a;for(var b=7;b>=0;b--){a=(this>>>(b*4))&15;c+=a.toString(16)}return c};omc={strip:function(a){return a.replace(/^\s+|\s+$/g,"")},getCookie:function(d){var c=document.cookie.split(";");for(i=0;i<c.length;i++){var b=c[i].split("=");var a=this.strip(b[0]);if(a==d&&b.length>1){return unescape(this.strip(b[1]))}}return null},getNumber:function(a){var b="";var c=document.getElementById(a);if(c!=null){b=parseInt(c.innerText);if(isNaN(b)){b=""}}return b},setCookie:function(e,d,c){var b=new Date();var a=new Date();if(c==null||c==0){c=1}a.setTime(b.getTime()+3600000*24*c);document.cookie=e+"="+escape(d)+";path=/;expires="+a.toGMTString()},setUid:function(){randuid=sha1Hash(Date()+this._sessionId());this.setCookie(this._uidCookie(),randuid,3650);return randuid},_checkRr:function(b){if(b.substr(0,5)=="?_rr="){var a=Base64URL.decode(b.substr(5));var c=a.split("\n");this.query="_cc="+c[1];this.path="/omc_mailing_redirect";return c[0]}else{return null}},_sessionCookie:function(){return this.sessionCookie||"session_id"},_imageName:function(){return this.imageName||"/track.gif"},_q:function(){return this.query||window.location.search},_p:function(){return this.path||window.location.pathname},_uidCookie:function(){return this.uidCookie||"_omc_uid"},_cId:function(){return this.cId||""},_sessionId:function(){return this.getCookie(this._sessionCookie())},_visitorHandle:function(){return this.visitorHandle||this.getCookie(this._uidCookie())||this.setUid()},trackPageview:function(){redirectURL=this._checkRr(window.location.search);s=unescape("%3C")+"img src='"+this._imageName()+"?l="+this._cId()+"&s="+this._sessionId()+"&d="+Base64URL.encode(window.location.host)+"&p="+Base64URL.encode(this._p())+"&q="+Base64URL.encode(this._q())+"&r="+Base64URL.encode(document.referrer)+"&vh="+this._visitorHandle()+"'";if(redirectURL){s+=" onLoad=\"window.location.href='"+redirectURL+"';\""}s+=unescape("/%3E");document.write(s);return true}};