var ninja_analyze=function(m,n,g){var e=function(){this.initialize.apply(this,arguments)};e.prototype={initialize:function(){},set:function(a,b,c){if(!navigator.cookieEnabled)return!1;null===b&&(c.expires=-1);if("number"===typeof c.expires){var d=c.expires,e=c.expires=new Date;e.setTime(+e+d)}return document.cookie=[encodeURIComponent(a)+"\x3d"+encodeURIComponent(String(b)),c.path?"; path\x3d"+encodeURI(c.path):"",c.expires?"; expires\x3d"+c.expires.toUTCString():"",c.domain?"; domain\x3d"+encodeURI(c.domain):
"",c.secure?"; secure":""].join("")},get:function(a){if(navigator.cookieEnabled){a=encodeURIComponent(a);for(var b=document.cookie.split("; "),c=0;c<b.length;c++)if(-1!==b[c].indexOf(a))return b=b[c].split("\x3d"),"path"==a||"domain"==a?decodeURI(b[1]):decodeURIComponent(b[1])}},remove:function(a,b){if(!navigator.cookieEnabled)return!1;b=b||{};return this.set(a,null,b)}};var h=function(){this.initialize.apply(this,arguments)};h.prototype={initialize:function(a){this.cookie_key="NinActiveSess"+a;this.cookie=
new e},getWaiting:function(){return this.cookie.get(this.cookie_key)},mark:function(){return this.cookie.set(this.cookie_key,(new Date).getTime(),{expires:18E5})},unmark:function(){return this.cookie.remove(this.cookie_key)}};var l=function(){this.initialize.apply(this,arguments)};l.prototype={last_access:0,first_access:0,session_start:0,access_count:0,session_count:0,initialize:function(a){this.cookie_key=a;this.unpack((new e).get(this.cookie_key))},pack:function(){return[this.last_access,this.first_access,
this.session_start,this.access_count,this.session_count].join(" ")},unpack:function(a){if("string"!==typeof a)return!1;a=a.split(" ");this.last_access=a[0];this.first_access=a[1];this.session_start=a[2];this.access_count=a[3];this.session_count=a[4];return this},save:function(a){return(new e).set(this.cookie_key,this.pack(),a)}};var k=function(){this.initialize.apply(this,arguments)};k.prototype={initialize:function(){var a=parent.document.URL==document.referrer?top.document.referrer:document.referrer,
a="bookmarks"==a?"b":a,a="undefined"==a||"[unknown origin]"==a?"":a;if(a=-1!=a.search(/\.shinobi\.jp\/Rin\?$/)?"":a)this.referrer=encodeURIComponent(a);this.url=encodeURIComponent(document.URL);this.width=screen.width;this.height=screen.height;this.color_depth=screen.colorDepth}};g=function(){this.initialize.apply(this,arguments)};g.prototype={server:"code.analysis.shinobi.jp",zone:36,processed:!1,initialize:function(a,b,c){this.id=a;"number"===typeof b&&(this.zone=b)},getCookiePath:function(){for(var a=
"blog.goo.ne.jp blog.livedoor.jp blogs.dion.ne.jp ameblo.jp d.hatena.ne.jp yaplog.jp plaza.rakuten.co.jp".split(" "),b=0;b<a.length;b++)if(a[b]==location.hostname)return"/"+(location.pathname.split("/")[1]||"");return"/"},getParams:function(){var a=new l("NinjaAccessUser"+this.id),b=new h(this.id),c=new k;return{id:this.id,last:a.last_access,zone:this.zone,first:a.first_access,sess_start:a.session_start,referrer:c.referrer,url:c.url,access_count:a.access_count,sess_count:a.session_count,nav_width:c.width,
nav_height:c.height,col_count:c.color_depth,wait_ent:b.getWaiting()}},StoreUserData:function(a,b,c,d,g,k){if(!navigator.cookieEnabled)return 0;var f=new l(a+this.id);f.last_access=b;f.first_access=c;f.session_start=d;f.access_count=g;f.session_count=k;f.save({path:this.getCookiePath(),expires:31536E6});(new h(this.id)).unmark();"/"!=this.getCookiePath()&&(new e).remove(a+this.id,{path:"/"});return 1},getReceiverUrl:function(){var a="http://"+this.server+"/ninja_ar/NewReceive",b=this.getParams(),c=
[],d;for(d in b)("number"===typeof b[d]||""!=b[d]&&"undefined"!=typeof b[d])&&c.push(d+"\x3d"+b[d]);return a+"?"+c.join("\x26")},createReceiverScriptElement:function(a){var b=document.createElement("script");b.src=a;b.type="text/javascript";b.defer="defer";return b},insertReceiverScript:function(a){var b=document.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b)},Process:function(){if(!this.processed){var a=this.createReceiverScriptElement(this.getReceiverUrl());(new h(this.id)).mark();
this.insertReceiverScript(a);this.processed=!0}}};return new g(m,n)};