/** * @(#)Rtoaster.js * Copyright (c) 2006-2021 BrainPad, Inc. All right reserved. * @version 4.5.1 */ if(typeof Rtoaster==="undefined"){var Rtoaster={callback:void 0,timeout:2000,permit:true,host:"7i.rtoaster.jp"};!function(S,W){"use strict";var A="object",B="string",C="load",D=W.document,E=[],F="function",G="charAt",H=[],I="indexOf",J="style",K="script",L=W.location,M="onreadystatechange",N="length",O="lastIndexOf",P=L.protocol,Q="substring",R=D.referrer,T={},U="getElementById",V=void 0,X="parentNode",Y="visibility",Z="addEventListener",z="removeEventListener",y="attachEvent",x="detachEvent",w="event",v="_rt.",u=v+"uid",t=v+"opt",s=v+"sid",_A=function(a,b,c,d,e){(d=W.console)&&(e=d.error)&&e("["+a+"] "+b+(c?"\n"+c:""))},_B=function(a){return a&&a[N]&&a!=="null"&&a!=="undefined"},_C=W.encodeURIComponent||W.escape,_D=function(a){try{return(W.decodeURIComponent||W.unescape)(a.replace(/\+/g," "))}catch(_){return a}},_E=function(a,b){_A(a,new Error(b||"not initialized"))},_F=function(){return D.cookie.replace(/; /g,";").split(";")},_G=function(a){if(_B(a))for(var b=_F(),c=_C(a)+"=",d=b[N]-1,e,f,g;d>=0;d--)if(!(e=b[d])[I](c))return _D(e[Q](e[G](f=c[N])==='"'?f+1:f,e[G](g=e[N]-1)==='"'?g:g+1));return""},_H=function(a,b,c){for(b=E[N]-1;b>=0;b--)if((c=E[b]).E===a)return c},_I=W.setTimeout,_J=function(a,b){b=b||"\n";var c="",d=0,e=a[N],f;for(;d=0;e--)f=d[e],g=f[0],g[z]?g[z](f[1],f[2]):g[x]&&g[x](f[1],f[2]),f[0]=f[2]=V;T.O=V}));a[Z]?a[Z](b,c):a[y]&&a[y](b="on"+b,c);T.O[T.O[N]]=[a,b,c]},_P=function(a){return(a=_G(t))==="I"||S.permit&&a!=="O"},_Q=function(a,b){try{a&&a(b)}catch(_){_A("callback->"+b,_,a)}},_R=function(a,b){T.F||_T();if(T.F===1){T.F=2;_K(T.H);var c=0,d=a[N],e,f,g=function(h,i,j,k,l,m,n,o,p){T.Q=V;if(T.F===2){T.X||(T.X=_I(_Z,S.timeout));if((i=S[j="trackingTime"])&&(h||T.B)){h=T.G||{},T.F=3,S[j]=V;if(_B(T.M)||_B(T.M=_C(_G(u))))for(j=0,k=E[N];j=0;k--)(l=h[k])[I](v)||(g=_J([g,l?_D(l):l]));a||T.N&&(g=_J([g,T.N]));T.F||(T.F=T.T=1);j(b);j(c);j(d);_L("t","&r="+(a===2?"!":_C(R))+"&p="+_C(g),i,e,f)}else _E(e)},_U=function(a){a&&_S({key:s,value:a})},_V=function(a,b){b=typeof a;return b===B||b==="number"||b==="boolean"},_W=function(a,b){_I(function(c,d,e){if(a&&(c=T.S[a]))for(d=0,e=c[N];d"+a+":"+d,_,c[d])}_Q(S.callback,a)},1)},_X=function(a,b){var c="content->"+a.id,d=function(k){var l=[D.open,D.close,D.write,D.writeln],m="",n=function(p,q,r){for(q=0,r=p[N];q=0){var k=i,l=i+1,m=j[G](l),n=V,o,p;if(m!=="!"&&m!=="/"){o=j[I](">",l);if(o<0)break;i=o+1;if(o-l>=6&&(g(m=j[G](l+6))||m===">")&&j[Q](l,l+6)[h]()===K){for(m=j[Q](l+6,o),l=0;(l=m[I]("=",l))>=0;){p=m[G](++l);if((p==='"'||p==="'")&&(o=m[I](p,++l))>=0){if(g(m[G](l-6))&&m[Q](l-5,l-2)[h]()==="src"){n=e(m[Q](l,o));break}l=o+1}}for(m=i;(l=j[I]("",m))>=0&&(m=j[I](">",l+2))>=0&&j[Q](l+2,m)[h]()!==K;m++);if(m<0)break;o=m+1;if(!n){while(g(j[G](i)))i++;m=l;l=i;if(j[G](i)==="<"&&j[G](++i)==="!"){while(!f(j[G](++i)));l=i+1}n=j[Q](l,m)}j=j[Q](0,k)+d(n)+j[Q](o);i=k}}else if(m==="!"&&j[G](++l)==="-"&&j[G](++l)==="-")if(j[G](++l)===">")i=l+1;else{o=j[I]("-->",l);if(o<0)break;i=o+3}else{o=j[I](">",l);if(o<0)break;i=o+1}}if(j){a.innerHTML=j;_W(a.id,b);return 1}}catch(_){_A(c,_,j)}},_Y=function(a){a&&(typeof a===B&&(a={key:a}),a.expires=new Date(0).toUTCString(),_S(a))},_Z=function(a,b,c,d,e){if(T.F!==4){if(a)(e=D[U](a))&&e[J][b="display"]==="none"&&(e[J][b]="block");else{T.F=4;_K(T.X);T.X=V;for(b=H[N]-1;b>=0;b--)c=H[b],d=c.E&&D[U](c.E),d&&(e=d[X])?(e.removeChild(d),e[J][Y]=c.V):c.P&&(e=D[U](c.P))&&(e[J][Y]=c.V);H=[]}_W(a)}};S.getParameter=function(a,b,c,d){return _B(a)&&_B(b=L.search)&&(c=b[I](a+"="))>0&&(c===1||b[G](c-1)==="&")?_D((d=b[I]("&",c+=a[N]+1))<0?b[Q](c):b[Q](c,d)):""};S.isPermitted=_P;S.init=function(a,b,c){if(_B(a))T.A=_C(a);T.F=0;T.L=_C(L.href);T.M=_C(_B(b)?b:_G(u));T.S={};T.U=_B(c)?v+"oid="+c:"";T.C=T.D=T.E=T.G=T.N=T.P=T.Q=V};S.optin=function(a){_M(a,1)};S.optout=function(a){_M(a,0)};S.hide=function(){if(T.F<3){var a=arguments,b=H[N],c="rt:c"+b,d=function(f,g){f&&(H[b]={E:g,P:f.id,V:f[J][Y]},f[J][Y]="hidden",b++||_O(W,C,function(){if(T.F<2)T.H=_I(_Z,S.timeout)}))},e;if(a&&(e=a[N])>0)for(c=0;c