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)};var analyzeBanner={id:"",predisplay:function(a,c,b,d){var e=!1;document.addEventListener?(document.addEventListener("DOMContentLoaded",function(){e=!0;analyzeBanner.display(a,c,b,d)},!1),window.addEventListener("load",function(){e||analyzeBanner.display(a,c,b,d)},!1)):document.attachEvent&&(document.attachEvent("onreadystatechange",function(){"complete"==document.readyState&&(e=!0,analyzeBanner.display(a,c,b,d))}),window.attachEvent("onload",function(){e||analyzeBanner.display(a,c,b,d)}))},display:function(a,
c,b,d){this.id=d;d=this.getDesignParams(a,c,b);if(2>c){if(2==b)a=this.buildTopAdult(d,2>a?"w":"b");else{a=document.createElement("a");a.href=d.link;a.target="_blank";var e=document.createElement("img");e.src=d.src;e.name="NjZ24";e.id="NjZ24id";e.border="0";e.alt="";a.appendChild(e)}this.topFrameWrap(a,0==c?1:0)}else 2==b?this.buildPlacedAdult():this.buildPlacedFrame(d);2==b&&this.loadAdlantis()},buildTopAdult:function(a,c){var b=document.createElement("div");b.className="adlantiss_frame zid_TrmIsLPwvAjFAfo1%2BdaERw%3D%3D color_#0000FF-#000000-#F9F9F9-#999999-#008000 container_iframe";
return b},getDesignParams:function(a,c,b){return{src:"http://img.shinobi.jp/analyze/dumbo/ads2/ad_"+b+"_"+["left","right","inline"][c]+"_"+a+".gif",link:"http://www.ninja.co.jp/?utm_source\x3danalysis\x26utm_medium\x3dbanner\x26utm_content\x3danalysis01\x26utm_campaign\x3duserpage"}},loadAdlantis:function(){var a=document.getElementsByTagName("body").item(0),c=document.createElement("script");c.type="text/javascript";c.charset="utf-8";c.src="http://st.shinobi.jp/img/services/admax/js/adlantis.js";
a.appendChild(c)},getScriptPlace:function(){for(var a=null,c=document.getElementsByTagName("script"),b=0;b<c.length;b++)if(-1!=c[b].innerHTML.indexOf("/ninja_ar/NewScript?id\x3d"+this.id,0)||-1!=c[b].src.indexOf("/ninja_ar/Script?id\x3d"+this.id,0)){a=c[b];break}c=document.getElementsByTagName("head")[0];"undefined"!=typeof a.parentElement&&c===a.parentElement&&(a=document.getElementsByTagName("body")[0].firstElementChild);return a},topFrameWrap:function(a,c){var b=document.createElement("div");b.id=
"nin_ad";b.style.position="absolute";b.style.top="1px";b.style.zIndex=2147483647;c?(b.style.left="1px",b.style.textAlign="left"):(b.style.right="1px",b.style.textAlign="right");b.appendChild(a);document.getElementsByTagName("body").item(0).appendChild(b);try{var d=this;setTimeout(function(){var a=document.getElementById("nin_ad");d.setOpTimer(a);a.onmouseover=function(b){a.style.filter="alpha(opacity\x3d100)";a.style.opacity="1.0";d.setOpTimer(a)}},500)}catch(e){}},setOpTimer:function(a){clearTimeout(a.t0);
a.t0=setTimeout(function(){a.style.opacity=".5";a.style.filter="alpha(opacity\x3d25)"},6E3)},buildPlacedFrame:function(a){var c=document.createElement("a");c.href=a.link;var b=document.createElement("img");b.src=a.src;c.appendChild(b);a=this.getScriptPlace();a.parentNode.insertBefore(c,a)},buildPlacedAdult:function(){var a=document.createElement("div");a.className="adlantiss_frame zid_RAUm1rND2l2J%2F1nDYrvDEQ%3D%3D color_#0000FF-#000000-#F9F9F9-#999999-#008000 container_iframe";var c=this.getScriptPlace();
c.parentNode.insertBefore(a,c)}};analyzeBanner.predisplay(0, 0, 2, '00059177');