try{if(typeof PopIn2!="undefined"){throw"PopIn2 is already defined"}var PopIn2={};PopIn2.Class=function(b,a){if(typeof PopIn2[b]=="undefined"){PopIn2[b]=function(){if(this.BR){this.BR.apply(this,arguments)}};PopIn2[b].prototype=a;this._className=b}};PopIn2.Class.prototype.extend=function(b){for(var a in b){if(a!="BR"&&typeof PopIn2[this._className].prototype[a]!="function"&&typeof b[a]=="function"){PopIn2[this._className].prototype[a]=b[a]}}if(b.BR){var d=b.BR;var c=PopIn2[this._className].prototype.BR;PopIn2[this._className].prototype.BR=function(){d.apply(this,arguments);c.apply(this,arguments)}}return this};PopIn2.Class.prototype.makeSingleton=function(){var a=this;PopIn2[this._className].DA=function(){if(!this._instance){this._instance=new PopIn2[a._className]()}return this._instance}};PopIn2.StaticClass=function(b,a){if(typeof PopIn2[b]=="undefined"){PopIn2[b]=a;if(PopIn2[b]){PopIn2[b].BR()}}};new PopIn2.Class("Component",{BR:function(){this.listeners={}},BS:function(a){this.addEventListener("action",a)},addEventListener:function(a,b){if(typeof this.listeners[a]=="undefined"){this.listeners[a]=[]}this.listeners[a].push(b)},BT:function(a){this.BU("action",a)},BU:function(a,b){if(this.listeners[a]){for(var c=0;c<this.listeners[a].length;c++){var d=this.listeners[a][c];d.apply(this,b)}}}});new PopIn2.Class("Application",{components:{},beans:{},BR:function(){},BV:function(b,a){b="_popIn_"+b;if(typeof window[b]=="undefined"){return a}else{if(typeof window[b]=="string"&&window[b]==""){return a}else{return window[b]}}},BW:function(b,a){return parseFloat(this.BV(b,a))},BX:function(a){return this.components[a]},BY:function(a,b){this.components[a]=b},BZ:function(b,a){this.beans[b]=a},CA:function(a){return this.beans[a]},CB:function(f,a,d,h,g){if(!g){g=new PopIn2.AH()}var c=this.components[f];var b=this.components[d];c.addEventListener(a,function(j){b[h].call(b,g.GN(j))})}}).makeSingleton();new PopIn2.Class("MainApplication",{BR:function(){},CC:function(a){this.CE(a);this.CD(a)},CD:function(a){var b=PopIn2.BF.DA();var c="ja";b.CX(new PopIn2.AO(c,a.BV("skin","black")));PopIn2.BN.serviceWidth=a.BW("width",400);PopIn2.BN.serviceHeight=a.BW("height",400);PopIn2.BN.HX()},CE:function(a){var c=new PopIn2.AQ();var b=new PopIn2.BA();var d=new PopIn2.AU();d.HS(2);d.HR(10);a.BY("JH",d);a.BY("JI",c);a.BY("JJ",b);a.BY("JK",new PopIn2.B());a.CB("JH","selection","JI","ED",new PopIn2.AJ());a.CB("JK","JP","JI","DG");a.CB("JK","JP","JJ","DG");a.CB("JI","JM","JI","DG");a.CB("JI","JN","JI","DG");a.CB("JI","JM","JJ","JB")}});new PopIn2.Class("RainbowApplication",{BR:function(){this.rm=PopIn2.BF.DA().CR()},CC:function(h){var n=new PopIn2.N();var m=h.BV("blogUrl","undefined");if(m=="undefined"){m=PopIn2.BO.IJ(window.location)}var j=typeof window.kauli_ad_uid!="undefined"?window.kauli_ad_uid:h.BV("kauli_id",5586);var a=typeof window.kauli_intext_ad_channel!="undefined"?window.kauli_intext_ad_channel:"";var b=h.BV("isMedia",false);var c=PopIn2.BF.DA();c.CP("connectionID",n.DW());c.CP("type","enabler");c.CP("dUrl",escape(document.URL));c.CP("dRefer",escape(document.referrer));c.CP("blogUrl",m);c.CP("lang",this.rm.locale);c.CP("adId",j);c.CP("chId",a);c.CP("isMedia",b);c.CP("affiliateId",h.BV("amazon_id","popin01-22"));c.CW(h.BV("id",h.BV("kauli_id",j)));var d=h.BV("main_node","");c.CV(d==""?PopIn2.BI.FA(document.body):document.getElementById(d));c.CY(PopIn2.BG.DC("ad_disabled")==1?false:h.BV("ads",true));c.CP("ads",c.CT());this.CF(h);var f=new PopIn2.P({max:new Number(h.BW("keyword_max",5)),linkStyle:h.BV("keyword_style","dashed 1px"),fontColor:h.BV("keyword_color","auto")});h.BY("P",f);h.CB("P","showKeyword","JI","ED",new PopIn2.AI());h.CB("P","JPKeyword","JI","HI");h.BY("JL",n);h.CB("JL","JO","JJ","JB");if(new String(h.BV("badge","false"))=="true"&&!PopIn2.$F.isiPhone&&!PopIn2.$F.isiPad&&!PopIn2.$F.isiPod){var g=new PopIn2.A();g.CG(h.BW("badge_top",200));h.BY("badge",g);h.CB("badge","action","JJ","JB");g.show()}if(new String(h.BV("preview","false"))=="true"){var k=new PopIn2.M();h.BY("externalPreview",k);h.CB("externalPreview","action","JJ","JB");k.DN()}if(PopIn2.BJ.GR()!=""&&new String(h.BV("here","true"))=="true"){var l=new PopIn2.O();h.BY("here",l);h.CB("here","showMenu","JI","ED");l.EC(PopIn2.BJ.GR())}if(PopIn2.BG.DC("animation_disabled")==1){PopIn2.$F.GF()}},CF:function(b){var g=PopIn2.BN;var a=new PopIn2.AD();a.GI("sitesearch",new PopIn2.AE(g.HX().googleSite));a.GI("wikipedia",new PopIn2.AG());a.GI("google",new PopIn2.AE(g.HX().google));a.GI("twitter",new PopIn2.AE(g.HX().twitter));a.GI("youtube",new PopIn2.AE(g.HX().youtube));a.GI("flickr",new PopIn2.AE(g.HX().flickr));a.GI("amazon",new PopIn2.AE(g.HX().amazon));a.GI("rakuten",new PopIn2.AE(g.HX().rakuten));var c=b.BV("services","");if(c!=""){a.GM(c.split(","))}var d=new PopIn2.AC();var h=new PopIn2.AB();h.GI(a);h.GI(d);var f=new PopIn2.AB();f.GI(d);f.GI(a);b.BZ("menuItemsFactory_sel",h);b.BZ("menuItemsFactory_keyword",h);b.BZ("menuItemsFactory_here",f)}});new PopIn2.Class("A",{BR:function(){this.cm=PopIn2.BF.DA();this.rm=this.cm.CR();this.topPosition=200},CG:function(a){this.topPosition=a},show:function(){var a=this.CI();document.body.appendChild(a)},CH:function(b){var a=new PopIn2.Event();PopIn2.BN.HX();a.service=PopIn2.BN.about;a.domAppender=new PopIn2.J();this.BT([a])},CI:function(){var a=this;var b=PopIn2.Utils.createElement("div");b.id="popIn_badge";PopIn2.$(b).css(this.rm.GT("mark")).bind("click",function(c){a.CH(c)});PopIn2.$(b).css({position:PopIn2.$F.validDocType?"fixed":"absolute",top:this.topPosition+"px",right:"0px",color:"white"});return b}}).extend(new PopIn2.Component());new PopIn2.Class("B",{BR:function(){this.CJ()},CJ:function(){PopIn2.$(document.documentElement).bind("click",PopIn2.Utils.bind(this.CK,this))},CK:function(c){var b=c.target||c.srcElement;var a=false;while(b){if(b.id&&typeof b.id=="string"&&b.id.indexOf("popIn")==0){a=true}b=b.parentNode}if(!a){this.CL(c)}},CL:function(b){var a=new PopIn2.Event(b,this);this.BU("JP",[a])}}).extend(new PopIn2.Component());new PopIn2.StaticClass("BE",{BR:function(){var a=this;setTimeout(function(){a.CM()},1000)},CM:function(){if(typeof PopIn!="undefined"){PopIn.EventManager.prototype.acceptEvent=function(){return false}}}});new PopIn2.Class("C",{BR:function(a){this.window=a;this.extraParameters={}},CN:function(){return this.window},CO:function(){return this.userId},CP:function(a,b){this.extraParameters[a]=b},CQ:function(){return this.extraParameters},CR:function(){return this.rm},CS:function(){return this.mainNode},CT:function(){return this.menuAdsEnable},CU:function(){return this.statusMsg},CV:function(a){this.mainNode=a},CW:function(a){this.userId=a},CX:function(a){this.rm=a},CY:function(a){this.menuAdsEnable=String(a)=="false"?false:true},CZ:function(a){this.statusMsg=a}});new PopIn2.StaticClass("BF",{BR:function(){},DA:function(){var a=window;if(!PopIn2.BF.__instance){PopIn2.BF.__instance=new PopIn2.C(window)}return PopIn2.BF.__instance}});new PopIn2.StaticClass("BG",{BR:function(){},DB:function(d,g,c){var a="";c=c||{};if(c.expires&&(typeof c.expires=="number"||c.expires.toUTCString)){var b;if(typeof c.expires=="number"){b=new Date();b.setTime(b.getTime()+(c.expires*24*60*60*1000))}else{b=c.expires}a="; expires="+b.toUTCString()}var j=c.path?"; path="+(c.path):"";var f=c.domain?"; domain="+(c.domain):"";var h=c.secure?"; secure":"";document.cookie=[d,"=",encodeURIComponent(g),a,j,f,h].join("")},DC:function(b){if(!navigator.cookieEnabled||document.cookie==""){return null}b=b.replace(/\W/g,"\\$&");var c=new RegExp("(?:^|;)\\s?"+b+"=([^;]*)","i"),a=document.cookie.match(c);return a&&decodeURIComponent(a[1])},DD:function(a){this.DB(a,"",{expires:-1})}});new PopIn2.Class("D",{show:function(a){var b=this.HA();a.append(b);this.appender=a;this.rendered=b;this.showTime=(new Date()).getTime()},DE:function(a){a.append(this.rendered);this.appender=a},DF:function(){this.DG()},DG:function(){if(this.showTime!=-1&&typeof this.statusMsg!="undefined"){this.DGTime=(new Date()).getTime();var a=this}this.showTime=-1;this.appender.remove()}});new PopIn2.Class("E",{append:function(a){throw"Not implemented"},remove:function(){throw"Not implemented"}});new PopIn2.Class("F",{BR:function(){this.animationOn=false;this.animations=[];this.options={top:0,left:0,width:0,height:0,anchorTop:0,anchorLeft:0,opacity:0}},DH:function(b,a){this.options.anchorTop=b;this.options.anchorLeft=a},animate:function(a){if(!a.width){a.width=this.options.width}if(!a.height){a.height=this.options.height}if(!a.top){a.top=this.options.top}if(!a.left){a.left=this.options.left}if(!a.opacity){a.opacity=this.options.opacity}a.top=a.top-(a.height)*this.options.anchorTop;a.left=a.left-a.width*this.options.anchorLeft;this.DI(a)},DI:function(a){for(var b in a){this.options[b]=a[b]}this.animations.push(a);if(!this.animationOn){this.DJ()}},DJ:function(){this.animationOn=true;if(this.animations.length>0){var a=this;var b=this.animations.shift();if(b.EC){b.EC()}if(PopIn2.$F.isIE){delete b.opacity}PopIn2.$(this.container).animate(b,{speed:300,end:function(){if(b.end){b.end()}a.DJ()}})}else{this.animationOn=false}},append:function(a){this.container=a;PopIn2.$(a).css({width:this.options.width+"px",height:this.options.height+"px",position:"absolute",top:(this.options.top-this.options.height*this.options.anchorTop)+"px",left:(this.options.left-this.options.width*this.options.anchorLeft)+"px","z-index":PopIn2.Utils.zIndexAZ-1});if(!PopIn2.$F.isIE){PopIn2.$F.cssSet(a,"opacity",this.options.opacity)}document.body.appendChild(a)},remove:function(){PopIn2.$(this.container).remove()}});new PopIn2.Class("G",{BR:function(){this.pos={top:0,left:0}},DK:function(a){this.pos=a;if(this.container){this.DL()}},append:function(a){this.container=a;this.DL();document.body.appendChild(a)},DL:function(){var a=PopIn2.Utils.CNWidth();var d=PopIn2.$(this.container).size();var c=Math.max(PopIn2.Utils.pageScrollTop()-d.height,this.pos.top);var b=Math.max(0,Math.min(this.pos.left,a-d.width));PopIn2.$(this.container).css({top:c+"px",left:b+"px"})},remove:function(){PopIn2.$(this.container).remove()}});new PopIn2.Class("H",{BR:function(){this.rm=PopIn2.BF.DA().CR()},DM:function(a){if(this.cNodePos.top<PopIn2.$F.scrollY()){PopIn2.$(this.container).css({position:"fixed",top:"0px"})}else{PopIn2.$(this.container).css({position:"absolute",top:this.cNodePos.top+"px"})}},append:function(d){var b=document.createElement("div");PopIn2.$(b).css({width:"265px",position:"fixed",bottom:"3px",right:"3px","z-index":10000});b.appendChild(d);this.container=b;var a=this;var c=document.createElement("div");c.innerHTML="&nbsp;";PopIn2.$(c).css(this.rm.GT("DG_btn")).css({position:"absolute",top:"3px",right:"3px",cursor:"pointer","z-index":10001}).bind("click",function(){a.remove()}).bind("mouseenter",function(){PopIn2.$(this).css(a.rm.GT("DG_btn_over"))}).bind("mouseleave",function(){PopIn2.$(this).css(a.rm.GT("DG_btn"))});d.appendChild(c);document.body.appendChild(b)},remove:function(){PopIn2.$(this.container).remove()}});new PopIn2.Class("I",{BR:function(a){this.node=a},append:function(b){var a=document.createElement("div");a.id="popIn_next"+Math.random();PopIn2.$(a).css({margin:"10px"});PopIn2.$F.insertAfter(this.node,a);a.appendChild(b);PopIn2.$(b).slideDown();this.container=a;setTimeout(function(){var f=PopIn2.$F.position(a).top;var c=PopIn2.$F.size(a).height;var g=PopIn2.Utils.CNHeight();var d=PopIn2.Utils.pageScrollTop();if(f+c>g+d){PopIn2.Utils.CN().scrollTo(0,f+c-g)}},500);return a},remove:function(){PopIn2.$(this.container.firstChild).slideUp("medium",function(){PopIn2.$(this.parentNode).remove()})}});new PopIn2.Class("J",{BR:function(){this.pos={top:0,left:0}},append:function(f){var d=document.createElement("div");var a=document.createElement("div");var c={width:PopIn2.Utils.CNWidth(),height:PopIn2.Utils.CNHeight()};d.id="black";PopIn2.$(d).css({position:"fixed",top:"0px",left:"0px",opacity:0.5,width:c.width,height:c.height,"z-index":PopIn2.Utils.zIndexAZ+5,"background-color":"black"});PopIn2.$(a).css({position:"fixed","z-index":PopIn2.Utils.zIndexAZ+6});document.body.appendChild(d);document.body.appendChild(a);a.appendChild(f);var b=PopIn2.$(f).size();PopIn2.$(a).css({left:(c.width-b.width)/2,top:(c.height-b.height)/2});this.black=d;this.container=a},remove:function(){PopIn2.$(this.black).remove();PopIn2.$(this.container).remove()}});new PopIn2.Class("K",{BR:function(a){this.selection=a},append:function(b){var a=document.createElement("div");PopIn2.$(a).css({margin:"10px","text-indent":0});a.id="popIn_sel"+Math.random();this.selection.HQ(a);PopIn2.$(b).css({display:"none"});a.appendChild(b);PopIn2.$F.isIE?PopIn2.$(b).show():PopIn2.$(b).slideDown();this.container=a;setTimeout(function(){var f=PopIn2.$F.position(a).top;var c=PopIn2.$F.size(a).height;var g=PopIn2.Utils.CNHeight();var d=PopIn2.Utils.pageScrollTop();if(f+c>g+d){PopIn2.Utils.CN().scrollTo(0,f+c-g)}},500);return a},remove:function(){PopIn2.$(this.container.firstChild).slideUp("medium",function(){PopIn2.$(this.parentNode).remove()})}});new PopIn2.Class("L",{BR:function(a){this.container=a},append:function(a){this.container.appendChild(a);this.child=a},remove:function(){PopIn2.$(this.child).remove()}});new PopIn2.Class("Event",{BR:function(a,b){this.originalEvent=a;this.relatedModel=b}});new PopIn2.Class("M",{BR:function(a){this.options=a;this.state=this.waiting;this.tooltip=null;this.node=null},DN:function(){var b=this;var a=PopIn2.BF.DA().CS();PopIn2.$(a).bind("mouseover",function(c){b.state.DS(b,c)});PopIn2.$(document).bind("keypress",function(c){b.state.DT(b,c)})},DO:function(b){var c=document.createElement("div");var d=PopIn2.$(b).position();var a=this;PopIn2.$(b).bind("mouseleave",function(){a.DP();a.DU(a.waiting)});PopIn2.$(c).css({background:'url("http://static.popin.cc/images/200/others/a-key.png")',position:"absolute",top:d.top+b.offsetHeight+"px",left:d.left+"px",width:"90px",height:"25px","z-index":"100"});document.body.appendChild(c);this.tooltip=c},DP:function(){if(this.tooltip){PopIn2.$(this.tooltip).remove();this.tooltip=null}},CH:function(b){var a=new PopIn2.AV({serviceName:"",serviceIcon:"",serviceUrl:b,width:800,height:600});var c=new PopIn2.Event();c.service=a;c.domAppender=new PopIn2.J();this.BT([c])},DQ:function(a){return(a.protocol=="http:"||a.protocol=="https:")&&!/popin\.cc|(?:amazon|rakuten)\.co/.test(a.hostname)&&a.id.indexOf("popIn")==-1&&this.DR(a)},DR:function(a){return a.hostname!=location.hostname},waiting:{DS:function(b,d){var c=d.target||d.srcElement;var a=false;while(c){if(c.nodeType!=1){break}if(c.tagName.toLowerCase()=="a"&&b.DQ(c)){b.node=c;b.DO(c);b.DU(b.showing);break}c=c.parentNode}},DT:function(a,b){}},showing:{DS:function(a,b){},DT:function(a,b){b=b||window.event;if(b.keyCode==97||b.charCode==97){a.CH(a.node.href);a.DP();a.node=null;a.DU(a.waiting)}}},DU:function(a){this.state=a}}).extend(new PopIn2.Component());new PopIn2.Class("N",{BR:function(){this.DV();this.DX();this.DY()},DV:function(){this.connectionId=new Date().getTime()},DW:function(){return this.connectionId},DX:function(){var b='<object width="0" height="0"><param value="http://popin.cc/flash/receiver.swf?connectionID='+this.connectionId+'" param name="allowScriptAccess" value="always"></param><embed src="http://popin.cc/flash/receiver.swf?connectionID='+this.connectionId+'" type="application/x-shockwave-flash" width="0" height="0" allowScriptAccess="always"/></object>';var a=document.createElement("span");a.innerHTML=b;document.body.appendChild(a)},DY:function(){window.enablerDisplayObj=PopIn2.Utils.bind(this.enablerDisplayObj,this);window.DZ=PopIn2.Utils.bind(this.DZ,this);window.EA=PopIn2.Utils.bind(this.EA,this);window.flashFunc=PopIn2.Utils.bind(this.flashFunc,this)},enablerDisplayObj:function(msg){eval("var data = "+msg);var service={serviceUrl:data.src,serviceName:data.title};if(data.type=="iframe"){service.width=PopIn2.Utils.CNWidth()*0.8;service.height=PopIn2.Utils.CNHeight()*0.8}else{if(data.type=="image"){service.width=new Number(data.width)+2;service.height=new Number(data.height)+42}else{if(data.type=="video"){service.width=PopIn2.Utils.CNWidth()*0.8;service.height=PopIn2.Utils.CNHeight()*0.8}}}var event=new PopIn2.Event();event.service=new PopIn2.AV(service);event.domAppender=new PopIn2.J();this.BU("JO",[event])},DZ:function(a){},EA:function(a){},flashFunc:function(a){}}).extend(new PopIn2.Component());PopIn2.$F={cssExclude:/z-?index|font-?weight|opacity|zoom|line-?height/};PopIn2.$F.browser="\v"=="v"?"ie":"firefox";PopIn2.$F.isIE="\v"=="v"?true:false;PopIn2.$F.isIE6=PopIn2.$F.isIE&&typeof document.documentElement.style.maxHeight=="undefined";PopIn2.$F.isIE8=PopIn2.$F.isIE&&!!document.documentMode;PopIn2.$F.isIE7=PopIn2.$F.isIE&&!PopIn2.$F.isIE6&&!PopIn2.$F.isIE8;PopIn2.$F.isiPhone=navigator.userAgent.indexOf("iPhone")>0?true:false;PopIn2.$F.isiPad=navigator.userAgent.indexOf("iPad")>0?true:false;PopIn2.$F.isiPod=navigator.userAgent.indexOf("iPod")>0?true:false;PopIn2.$F.boxModel=false;PopIn2.$F.isFirefox=/a/[-1]=="a"?true:false;PopIn2.$F.isFirefox3=/a/[-1]=="a"&&navigator.userAgent.indexOf("3.0.")>0?true:false;PopIn2.$F.isSafari=/a/.__proto__=="//"?true:false;PopIn2.$F.validDocType=PopIn2.$F.isIE?(document.getElementById&&(document.compatMode=="CSS1Compat")):true;PopIn2.$F.getLang=function(){var a=navigator.userAgent;var b;if(a.indexOf("IE")>-1){b=navigator.userLanguage}else{b=a}if(b.indexOf("ja")>-1){b="ja"}else{b="en"}return b};PopIn2.$F.aspectBefore=function(d,c,b){var a=d[c];d[c]=function(){b.apply(this,arguments);return a.apply(this,arguments)}};PopIn2.$F.aspectAround=function(d,c,b){var a=d[c];d[c]=function(){var g=[a];for(var f=0;f<arguments.length;f++){g.push(arguments[f])}return b.apply(this,g)}};PopIn2.$F.aspectAfter=function(d,c,b){var a=d[c];d[c]=function(){var f=a.apply(this,arguments);b.apply(this,arguments);return f}};PopIn2.$=function(){if(arguments.length==1&&typeof arguments[0]=="object"){return PopIn2.$F.extendElement(arguments[0])}else{if(arguments.length==1&&typeof arguments[0]=="string"){return PopIn2.$F.extendElement(document.getElementById(arguments[0]))}else{if(arguments.length==2){var a=arguments[0];var b=arguments[1];if(b.jqo){b=b.elements[0]}return PopIn2.$F.extendElement(PopIn2.$F.toArray(b.getElementsByTagName(a)))}}}return};PopIn2.$F.extendElement=function(c){if(c&&c.jqo){return c}var d={jqo:true,elements:!c?[]:(PopIn2.$F.isArray(c)?c:[c]),get:function(f){return this.elements[f]},slice:function(f){this.elements.splice(f,1);return this},EB:function(){var f=[];for(var g=0;g<this.elements[0].childNodes.length;g++){f.push(this.elements[0].childNodes.item(g))}return PopIn2.$F.extendElement(f)}};if(typeof c=="undefined"){c={}}var a=["error","html","width","height","text","size","parent","hide","attr","bind","unbind","css","bodyOffset","offset","remove","toggle","fadeIn","fadeOut","animate","show","slideDown","slideUp","empty","append","position","replaceWith","getComputedStyle"];for(var b=0;b<a.length;b++){PopIn2.$F.extendElementFunction(d,a[b])}return d};PopIn2.$F.setClass=function(a,b){a.setAttribute(PopIn2.isIE7?"className":"class",b)};PopIn2.$F.extendElementFunction=function(b,a){b[a]=function(){var h=[];for(var f=0;f<this.elements.length;f++){var g=this.elements[f];var c=PopIn2.$F.join([g],arguments);var d=PopIn2.$F[a].apply(g,c);h.push(d==g?this:d)}return h.length==1?h[0]:this}};PopIn2.$F.getElementsByTagAndClassName=function(d,c,g){var f;var a=[];var b;if(d.querySelectorAll){return PopIn2.$F.toArray(d.querySelectorAll(c+"."+g))}f=d.getElementsByTagName(c);for(b=0;b<f.length;b++){if((" "+f.item(b).className+" ").indexOf(" "+g+" ")>=0){a.push(f.item(b))}}return a};PopIn2.$F.insertAfter=function(a,b){a.parentNode.insertBefore(b,a.nextSibling)};PopIn2.$F.replaceWith=function(a,b){if(a.parentNode){a.parentNode.replaceChild(b,a)}return a};PopIn2.$F.unbind=function(b,a,c){if(b.removeEventListener){b.removeEventListener(a,c,false)}else{if(b.detachEvent){b.detachEvent(a,c)}else{target[a]=null}}return b};PopIn2.$F.bind=function(){var a=arguments[0];var f=arguments[1];var d=typeof arguments[2]=="object"?arguments[2]:{};var b=typeof arguments[2]=="object"?arguments[3]:arguments[2];var g=function(){return true};if(f=="mouseenter"&&!PopIn2.$F.isIE){f="mouseover";g=function(j){var k=j.relatedTarget||j.fromElement;var h=true;while(h&&k){if(k==a){h=false}k=k.parentNode}return h}}if(f=="mouseleave"&&!PopIn2.$F.isIE){f="mouseout";g=function(j){var k=j.relatedTarget||j.toElement;var h=true;while(h&&k){if(k==a){h=false}k=k.parentNode}return h}}var c=function(j){j=j||window.event;if(g.apply(this,[j])){var h=b.apply(a,[j,d]);if(!PopIn2.$F.isIE&&h===false){j.preventDefault();j.stopPropagation()}else{if(PopIn2.$F.isIE&&h===false){j.returnValue=false;j.JPBubble=true}}}};if(!PopIn2.$F.isIE){a.addEventListener(f,c,false)}else{a.attachEvent("on"+f,c)}return a};PopIn2.$F.getComputedStyle=function(a){return a.currentStyle||a.ownerDocument.defaultView.getComputedStyle(a,name)};PopIn2.$F.css=function(){var c=arguments[0];if(typeof arguments[1]=="string"&&arguments.length==2){return PopIn2.$F.cssGet(c,arguments[1])}else{if(typeof arguments[1]=="string"&&arguments.length==3){PopIn2.$F.cssSet(c,arguments[1],arguments[2]);return c}else{if(typeof arguments[1]=="object"){var b=arguments[1];for(var a in b){PopIn2.$F.cssSet(c,a,b[a])}return c}}}};PopIn2.$F.cssSet=function(b,a,c){if(a=="opacity"){PopIn2.$F.cssSet(b,"zoom",1);PopIn2.$F.cssSet(b,"filter","alpha(opacity="+Number(c*100)+")")}if(typeof c=="number"&&!PopIn2.$F.cssExclude.test(a)){c+="px"}if(!PopIn2.$F.isIE){b.style.setProperty(a,c,null)}else{if(a.indexOf("-")>0){a=a.replace(/\-(\w)/g,function(f,g){return g.toUpperCase()})}try{b.style[a]=c}catch(d){}}};PopIn2.$F.cssGet=function(c,b){var d=(b=="opacity")?1:null;if(PopIn2.$F.isIE){return c.style[b]}else{if(b=="position"){var f=PopIn2.Utils?PopIn2.Utils.getDocument():document;var a=f.defaultView.getComputedStyle(c,null).getPropertyValue(b)}else{var a=c.style.getPropertyValue(b)}}return typeof a==="undefined"?d:a};PopIn2.$F.toggle=function(a){var b=PopIn2.$F.cssGet(a,"display");if(b!="none"){PopIn2.$F.hide(a)}else{PopIn2.$F.cssSet(a,"display",a.lastToggle||"block")}return a};PopIn2.$F.hide=function(a){a.lastToggle=PopIn2.$F.cssGet(a,"display");PopIn2.$F.cssSet(a,"display","none");return a};PopIn2.$F.remove=function(a){if(a.parentNode){a.parentNode.removeChild(a)}return a};PopIn2.$F.parent=function(a){return PopIn2.$(a.parentNode)};PopIn2.$F.show=function(a){PopIn2.$F.css(a,{display:"block"});return a};PopIn2.$F.empty=function(a){while(a.hasChildNodes()){a.removeChild(a.firstChild)}return a};PopIn2.$F.append=function(a,b){if(b.jqo){b=b.elements[0]}a.appendChild(b);return a};PopIn2.$F.attr=function(){var c=arguments[0];if(arguments.length==2&&typeof arguments[1]=="object"){var a=arguments[1];for(var b in a){PopIn2.$F.attr(c,b,a[b])}return c}else{if(arguments.length==2&&typeof arguments[1]=="string"){return c[arguments[1]]}else{if(arguments.length==3){c[arguments[1]]=arguments[2];return c}}}};PopIn2.$F.width=function(a){return PopIn2.$F.size(a).width};PopIn2.$F.height=function(a){return PopIn2.$F.size(a).height};PopIn2.$F.error=function(a,b){return a};PopIn2.$F.html=function(b,a){b.innerHTML=a;return b};PopIn2.$F.resizable=function(a){if(!a.elements){return}if(!a.handler){return}if(!a.minWidth){a.minWidth=0}if(!a.minHeight){a.minHeight=0}var b={options:a,status:0};PopIn2.$(a.handler).bind("mousedown",function(c){b.ready(c);return false});PopIn2.$(document.documentElement).bind("mousemove",function(c){b.move(c);return b.status==0});PopIn2.$(document.documentElement).bind("mouseup",function(c){b.end(c);return b.status==0});b.ready=function(c){this.status=1};b.EC=function(g){this.status=2;this.objectStart=[];for(var d=0;d<this.options.elements.length;d++){var f=this.options.elements[d];var c=PopIn2.$F.size(f);this.objectStart.push({width:c.width,height:c.height,mouseX:g.screenX,mouseY:g.screenY});if(f.tagName=="TABLE"&&PopIn2.$F.isIE&&PopIn2.$F.boxModel){this.objectStart[d].height=new Number(PopIn2.$(f).css("height").replace("px",""))}}if(this.options.EC){this.options.EC.apply(this,[g])}};b.move=function(k){if(this.status==1){this.EC(k)}if(this.status<2){return}var f={width:true,height:true};var j=this.options.elements[0];for(var h=0;h<this.options.elements.length;h++){var g=this.objectStart[h];if(g.width-g.mouseX+k.screenX<this.options.minWidth){f.width=false}if(g.height-g.mouseY+k.screenY<this.options.minHeight){f.height=false}}for(var h=0;h<this.options.elements.length;h++){var j=this.options.elements[h];var g=this.objectStart[h];var d=k.screenX-g.mouseX;var c=k.screenY-g.mouseY;if(d>0||f.width){PopIn2.$(j).css({width:Math.max(g.width+d,this.options.minWidth)})}if(c>0||f.height){PopIn2.$(j).css({height:Math.max(g.height+c,this.options.minHeight)})}}if(this.options.move){this.options.move.apply(this,[k])}};b.end=function(c){if(this.status==2){if(this.options.end){this.options.end.apply(this,[c])}}this.status=0;return false};return b};PopIn2.$F.draggable=function(a){if(!a.elements){return}if(!a.handler){return}if(!a.minWidth){a.minWidth=0}if(!a.minHeight){a.minHeight=0}var b={options:a,status:0};PopIn2.$(a.handler).bind("mousedown",function(c){b.ready(c);return false});PopIn2.$(document.documentElement).bind("mousemove",function(c){b.move(c);return b.status==0});PopIn2.$(document.documentElement).bind("mouseup",function(c){b.end(c);return b.status==0});b.ready=function(c){this.status=1};b.EC=function(g){this.status=2;this.objectStart=[];for(var d=0;d<this.options.elements.length;d++){var f=this.options.elements[d];var c=PopIn2.$F.position(f);this.objectStart.push({ECX:c.left,ECY:c.top,mouseX:g.screenX,mouseY:g.screenY})}if(this.options.EC){this.options.EC.apply(this,[g])}};b.move=function(g){if(this.status==1){this.EC(g)}if(this.status<2){return}for(var d=0;d<this.options.elements.length;d++){var f=this.options.elements[d];var c=this.objectStart[d];PopIn2.$(f).css({left:Math.max(c.ECX-c.mouseX+g.screenX,0),top:Math.max(c.ECY-c.mouseY+g.screenY,0)})}if(this.options.move){this.options.move.apply(this,[g])}};b.end=function(c){if(this.status==2&&this.options.end){this.options.end.apply(this,[c])}this.status=0;return false};return b};PopIn2.$F.GF=function(){this.animationDisabled=true};PopIn2.$F.animate=function(b,d,c){if(typeof c=="undefined"){c={}}if(typeof c!="object"){c={speed:c}}if(typeof c.speed=="string"&&c.speed=="slow"){c.speed=500}if(typeof c.speed=="string"&&c.speed=="fast"){c.speed=100}if(typeof c.speed=="string"&&c.speed=="medium"){c.speed=300}var a=PopIn2.$F.join({element:b,style:d,speed:500,steps:50,exp:1},c);a.EC=function(){a.initialStyle={};for(var g in this.style){a.initialStyle[g]=PopIn2.$F.cssGet(this.element,g)}if(PopIn2.$F.animationDisabled){this.move(1)}else{for(var g=0;g<this.steps;g++){var f=(g+1)/this.steps;var h=f<0.5?Math.sqrt(f/2):(1-Math.sqrt((1-f)/2));setTimeout(PopIn2.$F.pass(a.move,a,[f]),h*this.speed)}}};a.move=function(j){for(var h in this.style){var g=this.initialStyle[h];var f=this.style[h];if(typeof g=="string"){g=Number(g.replace("px","").replace("%",""))}if(typeof f=="string"){f=Number(f.replace("px","").replace("%",""))}PopIn2.$F.cssSet(this.element,h,(f-g)*j+g)}if(j==1&&this.end){this.end.apply(this)}};a.EC()};PopIn2.$F.slideDown=function(f,g,c){var b={};if(typeof g!="undefined"){b.speed=g}if(typeof c!="undefined"){b.end=c}var d=b.end;var a=PopIn2.$(f).css("height");PopIn2.$(f).css({height:"0px",display:"block",overflow:"hidden"});PopIn2.$F.animate(f,{height:a},PopIn2.$F.join(b,{end:function(){PopIn2.$(f).css({overflow:"visible"});if(d){d.apply(this)}}}))};PopIn2.$F.slideUp=function(d,f,b){var a={};if(typeof f!="undefined"){a.speed=f}if(typeof b!="undefined"){a.end=b}var c=a.end;PopIn2.$(d).css({overflow:"hidden"});PopIn2.$F.animate(d,{height:0},PopIn2.$F.join(a,{end:function(){PopIn2.$(d).css({overflow:"visible",display:"none"});if(c){c.apply(d)}}}))};PopIn2.$F.fadeIn=function(b){var a;if(arguments.length==3){a={speed:arguments[1],end:arguments[2]}}else{if(arguments.length==2&&typeof arguments[1]=="object"){a=arguments[1]}else{if(arguments.length==2){a={speed:arguments[1]}}}}PopIn2.$(b).css({opacity:0,display:""});PopIn2.$F.animate(b,{opacity:1},a)};PopIn2.$F.fadeOut=function(b){var a;if(arguments.length==3){a={speed:arguments[1],end:arguments[2]}}else{if(arguments.length==2&&typeof arguments[1]=="object"){a=arguments[1]}else{if(arguments.length==2){a={speed:arguments[1]}}}}PopIn2.$(b).css({opacity:1});PopIn2.$F.animate(b,{opacity:0},a)};PopIn2.$F.size=function(a){return{width:a.offsetWidth,height:a.offsetHeight}};PopIn2.$F.bodyOffset=function(b){var d=PopIn2.Utils?PopIn2.Utils.getDocument():document;var a=PopIn2.$F.position(b);var c=PopIn2.$F.position(d.body);if(PopIn2.$(d.body).css("position")=="relative"){a.left-=(d.body.offsetLeft||c.left);a.top-=(d.body.offsetTop||c.top)}return a};PopIn2.$F.position=function(c){if(c.getBoundingClientRect){var h=c.getBoundingClientRect();var g=PopIn2.Utils?PopIn2.Utils.getDocument():document;var b=g.documentElement;var a=g.body;return{left:Math.round(h.left+(a.scrollLeft||b.scrollLeft)-b.clientLeft),top:Math.round(h.top+(a.scrollTop||b.scrollTop)-b.clientTop)}}else{var f=0,d=0;for(;c!=undefined;c=c.offsetParent){d+=c.offsetLeft;f+=c.offsetTop}return{top:f,left:d}}};PopIn2.$F.text=function(b,a){var c="textContent" in b?"textContent":"innerText";if(typeof a=="undefined"){return b[c]}b[c]=a;return b};PopIn2.$F.trim=function(a){return(a||"").replace(/^\s+|\s+$/g,"")};PopIn2.$F.clone=function(f,a){if(typeof a=="undefined"){a=true}if(f==null||typeof(f)!="object"){return f}if(typeof f.length=="number"){var b=[];for(var d=0;d<f.length;d++){b.push(a?PopIn2.$F.clone(f[d]):f[d])}return b}else{var b={};for(var c in f){b[c]=a?PopIn2.$F.clone(f[c]):f[c]}return b}};PopIn2.$F.join=function(d,c){if(typeof d=="undefined"){d={}}if(typeof c=="undefined"){c={}}if(typeof d!="object"||typeof c!="object"){return}if(typeof d.length=="number"&&typeof c.length=="number"){var a=[];for(var b=0;b<d.length;b++){a.push(d[b])}for(var b=0;b<c.length;b++){a.push(c[b])}return a}else{var a={};for(var b in d){a[b]=d[b]}for(var b in c){a[b]=c[b]}return a}};PopIn2.$F.isArray=function(a){var b=Object.prototype.toString;return b.call(a)=="[object Array]"};PopIn2.$F.toArray=function(b){var a=[];for(var c=0;c<b.length;c++){a.push(b[c])}return a};PopIn2.$F.createHttpRequest=function(){if(window.ActiveXObject){try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(b){try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(a){return}}}else{if(window.XMLHttpRequest){return new XMLHttpRequest()}else{return}}};PopIn2.$F.ajax_counter=0;PopIn2.$F.ajax=function(){var c;if(arguments.length==2){c={url:arguments[0],success:arguments[1]}}else{if(arguments.length==1&&typeof arguments[0]=="object"){c=arguments[0]}else{throw"Invalid Arguments"}}var a="pi_ajax"+PopIn2.$F.ajax_counter++;var d=document.getElementsByTagName("head")[0];window[a]=function(h){window[a]=undefined;try{delete window[a]}catch(g){}if("callback" in c){window[c.callback](h)}if("success" in c){c.success(h)}try{setTimeout(function(){d.removeChild(f)},0)}catch(g){}};var f=document.createElement("script");f.charset="utf-8";var b=c.url;b+=((b.indexOf("?")>=0)?"&":"?")+(c.callbackParameterName?c.callbackParameterName:"callback")+"="+encodeURIComponent(a);f.src=b;if(c.charset){f.charset=c.charset}d.appendChild(f)};PopIn2.$F.getJSON=function(){var options;if(arguments.length==2){options={url:arguments[0],success:arguments[1]}}else{if(arguments.length==1&&typeof arguments[0]=="object"){options=arguments[0]}else{throw"Invalid Arguments"}}var url=options.url;var http=PopIn2.$F.createHttpRequest();http.onreadystatechange=function(){if(http.readyState==4){eval("var data = "+http.responseText);options.success(data)}};try{http.open("GET",url,true);http.send("")}catch(e){options.error(e)}};PopIn2.$F.pass=function(c,d,a){var b=c;return function(){b.apply(d,a)}};PopIn2.$F.scrollY=function(){return(document.body.scrollTop||document.documentElement.scrollTop)-document.documentElement.clientTop};PopIn2.$F.scrollX=function(){return(document.body.scrollLeft||document.documentElement.scrollLeft)-document.documentElement.clientLeft};PopIn2.$F.selector=function(g,m){var n=m.split("  ");var o=[g];for(var h=0;h<n.length;h++){var c=n[h];var a=[];if(c.indexOf("#")==0){var b=c.substring(1,c.length);var p=document.getElementById(b);if(p){a=[p]}}else{for(var f=0;f<o.length;f++){if(c.indexOf(".")==0){var l=PopIn2.$F.getElementsByClassName(o[f],c.substring(1,c.length))}else{var l=PopIn2.$F.getElementsByTagName(o[f],c)}for(var d=0;d<l.length;d++){a.push(l[d])}}}o=a}return o};PopIn2.$F.getElementsByTagName=function(b,a){return b.getElementsByTagName(a)};PopIn2.$F.getElementsByClassName=function(f,g){var d=f.childNodes;var b=[];if(f.nodeType!=1){return b}for(var c=0;c<d.length;c++){var k=d[c];if(k.nodeType!=1){continue}if(k.getAttribute("class")==g||k.className==g){b.push(k)}var h=PopIn2.$F.getElementsByClassName(k,g);for(var a=0;a<h.length;a++){b.push(h[a])}}return b};(function(){var a=function(){if(document.body){var b=document.createElement("div");b.style.width=b.style.paddingLeft="1px";document.body.appendChild(b);PopIn2.$F.boxModel=b.offsetWidth===2;document.body.removeChild(b)}};if(document.body){a()}else{PopIn2.$(window).bind("load",a)}})();new PopIn2.Class("O",{BR:function(){},EC:function(b){if(b){var a=this;setTimeout(function(){a.ED(b)},10)}},ED:function(a){PopIn2.BF.DA().CZ("toolbar");var b=new PopIn2.Event();b.text=a;b.staticMenu=true;b.itemsFactoryName="here";b.status="here";b.menuAppender=new PopIn2.H();this.BU("showMenu",[b])}}).extend(new PopIn2.Component());new PopIn2.Class("Keyword",{BR:function(){this.keywords=[];this.ECNode=document.body},EE:function(a){if(a==""){return}if(typeof a=="string"){a={name:a}}if(!a.score){a.score=1}for(var b=0;b<this.keywords.length;b++){if(this.keywords[b].name==a.name){return}}this.keywords.push(a)},EF:function(a){this.ECNode=a},EG:function(c,a){this.IIer=c;var d=new PopIn2.Q();this.EGResult={};for(var b=0;b<this.keywords.length;b++){this.EGResult[this.keywords[b].name]=[];this.EH(this.keywords[b].name)}for(var b=0;b<this.keywords.length;b++){if(this.EGResult[this.keywords[b].name].length>0){d.EE(this.keywords[b],this.EGResult[this.keywords[b].name])}}d.EY(a);var h=d.ET();for(var b=0;b<h.length;b++){var g=h[b];if(g.status==1){var j=this.IIer.II(g.element.innerHTML,g);PopIn2.$(g.element).replaceWith(j);g.element=j}else{PopIn2.$(g.element).replaceWith(document.createTextNode(g.element.innerHTML))}}},EH:function(a){this.EI(this.ECNode,a)},EI:function(f,a){if(this.EJ(f)){return}if(f.nodeType==3){var d=this.EK(f,a);if(d){this.EGResult[a].push(d)}}else{var c=PopIn2.$F.toArray(f.childNodes);for(var b=0;b<c.length;b++){this.EI(c[b],a)}}},EJ:function(c){if(c.id&&c.id.indexOf("popIn")==0){return true}var a=["A","H1","H2","H3","H4","H5","SCRIPT","STYLE"];for(var b=0;b<a.length;b++){if(c.tagName==a[b]){return true}}return false},EK:function(b,f){var n=b.nodeValue;var k=b.ownerDocument;var c=n.toUpperCase();var h=f.toUpperCase();var d=c.indexOf(h);if(d<0){return}this.hasKeyword=true;var l=k.createTextNode(n.substr(0,d));var j=k.createTextNode(n.substr(d,f.length));var a=k.createTextNode(n.substr(d+f.length));var g=k.createDocumentFragment();g.appendChild(l);var m=k.createElement("span");m.id="popIn"+Math.random();m.appendChild(j);g.appendChild(m);g.appendChild(a);b.parentNode.replaceChild(g,b);return m}});new PopIn2.Class("P",{BR:function(f){this.options=f;var c=new PopIn2.Keyword();var d=PopIn2.BF.DA().CS();this.cNode=d;this.cNodeXpath=PopIn2.BP.JF(d);PopIn2.$(document.body).append(PopIn2.BH.EZ("p.gif",{url:document.location,node:PopIn2.BP.JF(d)+"::"+PopIn2.$F.text(d).length,w:PopIn2.Utils.CNWidth(),h:PopIn2.Utils.CNHeight()}));this.keyword=c;c.EF(d);var b=new PopIn2.AY();b.linkStyle=this.options.linkStyle;b.fontColor=this.options.fontColor;b.addEventListener("show",PopIn2.Utils.bind(this.EM,this));b.addEventListener("JP",PopIn2.Utils.bind(this.EN,this));this.IIer=b;var j=false;var h=this.EL();if(h!=""){var a=h.indexOf(" ")>=0?h.split(" "):[h];for(var g=0;g<a.length;g++){if(a[g]!=""){this.keyword.EE({name:a[g],score:1000,type:"referrer"})}}}if(typeof _popIn_keywords!="undefined"&&_popIn_keywords!=""){this.EQ(_popIn_keywords,"popinkeywords")}this.EO()},EL:function(){return PopIn2.BJ.GR()},EM:function(c){var b=c.element;var d=PopIn2.$(b).position();var a=PopIn2.$(b).size();d.node=c.element.parentNode;c.position=PopIn2.$F.join(d,a);this.BU("showKeyword",[c])},EN:function(a){this.BU("JPKeyword",[a])},EO:function(){var a=this;PopIn2.$F.ajax({url:"http://search.popin.cc/PopHash/UrlKeywords?w="+PopIn2.Utils.CNWidth()+"&h="+PopIn2.Utils.CNHeight()+"&url="+encodeURIComponent(window.location)+"&node="+a.cNodeXpath,success:PopIn2.Utils.bind(this.EP,this)})},EP:function(d){if(d!=""){var a=20;var f=d.length>a?d.slice(0,a-1):d;for(var c=0;c<f.length;c++){var b=f[c];this.keyword.EE({name:b.keyword,score:b.score,type:"keyword"})}}this.keyword.EG(this.IIer,this.options.max)},EQ:function(data,type){var keywords=eval("["+data+"]");for(i=0;i<keywords.length;i++){this.keyword.EE({name:keywords[i],score:1,type:type})}}}).extend(new PopIn2.Component());new PopIn2.Class("Q",{BR:function(){this.keywords=[];this.ER()},ER:function(){this.histogram=[];this.windowHeight=PopIn2.Utils.CNHeight();this.windowHeight=this.windowHeight%2==0?this.windowHeight:this.windowHeight+1;this.documentHeight=PopIn2.Utils.getDocumentHeight();for(var a=0;a<this.documentHeight;a++){this.histogram.push(0)}},ES:function(b){b.status=1;for(var a=Math.max(0,b.position.top-Math.floor(this.windowHeight/2));a<Math.min(b.position.top+b.size.height+this.windowHeight/2,this.documentHeight);a++){this.histogram[a]++}},ET:function(){return this.keywords},EU:function(g,d){var c=[];for(var a=0;a<this.keywords.length;a++){var b=this.keywords[a];if(b.status==1&&b.position.top>=g&&b.position.top+b.size.height<=d){c.push(b)}}return c},EE:function(a,c){for(var b=0;b<c.length;b++){var d=PopIn2.$F.clone(a,false);d.element=c[b];d.position=PopIn2.$(c[b]).position();d.size=PopIn2.$(c[b]).size();this.ES(d);this.keywords.push(d)}},EV:function(){var b=0;for(var a=0;a<this.documentHeight;a++){b=Math.max(b,this.histogram[a])}return b},EW:function(b){for(var a=Math.max(0,b.position.top-Math.floor(this.windowHeight/2));a<Math.min(b.position.top+b.size.height+this.windowHeight/2,this.documentHeight);a++){this.histogram[a]--}b.status=0},EX:function(c){var b=10000;for(var a=0;a<c.length;a++){b=Math.min(c[a].score,b)}var d=[];for(var a=0;a<c.length;a++){if(c[a].score==b){d.push(c[a])}}return d[Math.floor(Math.random()*d.length)]},EY:function(b){for(var c=this.EV();c>b;c=this.EV()){var g=0;var f=0;var a=0;while(g<this.documentHeight){for(;g<this.documentHeight;g++){if(this.histogram[g]==c){break}}for(f=g+1;f<this.documentHeight;f++){if(this.histogram[f]<c){break}}var d=this.EU(g-this.windowHeight/2,f+this.windowHeight/2);if(d.length>0){a++;this.EW(this.EX(d));break}g=f+1}if(a==0){break}}}});new PopIn2.StaticClass("BH",{BR:function(){},EZ:function(f,d){var a=document.createElement("div");PopIn2.$F.css(a,{width:"0px",height:"0px"});d.popid=PopIn2.BF.DA().CO();d.ua=PopIn2.$F.isIE?"ie":PopIn2.$F.isFirefox?"ff":PopIn2.$F.isSafari?"sa":"unknown";var b=[];for(var c in d){if(d.hasOwnProperty(c)){b.push(c+"="+encodeURIComponent(d[c]))}}PopIn2.$F.cssSet(a,"background","url(http://r.popin.cc/"+f+"?"+b.join("&")+")");setTimeout(function(){PopIn2.$(a).remove()},100);return a}});new PopIn2.StaticClass("BI",{BR:function(){},FA:function(a){function g(k){return k.offsetWidth*k.offsetHeight}function b(m){var l=0,n=m.childNodes;for(var k=0;k<n.length;k++){if(n[k].tagName!="IFRAME"&&n[k].tagName!="SCRIPT"){l+="textContent" in n[k]?n[k].textContent.length:n[k].innerText?n[k].innerText.length:0}}return l}var f=a.childNodes,j,d,h=null;for(d=0;d<f.length;d++){j=f[d];if(j.nodeType!=1&&j.tagName!="IFRAME"&&j.tagName!="SCRIPT"){continue}if(h&&j.offsetWidth<h.offsetWidth&&h.offsetTop>10){continue}var c=j.getElementsByTagName("script").length>0?b(j):PopIn2.$F.isIE?j.innerText.length:j.textContent.length;if(j.offsetTop<400&&j.offsetLeft<a.offsetWidth/2&&j.offsetWidth>300&&j.offsetHeight>250&&c>30&&g(j)>g(document.body)*0.07){h=j}}return h?this.FA(h):a}});new PopIn2.Class("R",{BR:function(){this.rm=PopIn2.BF.DA().CR()},FB:function(a){this.command=a},FC:function(){var a=this.FE();this.FF(a);return a},FD:function(b,c){var a=this;PopIn2.$(b).bind(c,function(d){a.BT([new PopIn2.Event(d,a)]);return true})}}).extend(new PopIn2.Component());new PopIn2.Class("S",{BR:function(a,b,c){this.proxy=a;this.icon="http://static.popin.cc/images/kauli_favicon.png";this.kauli_id=b;this.word=c},FE:function(){var a=document.createElement("div");PopIn2.$(a).css("display","none");return a},FF:function(b){var a=this;var c=b;this.proxy.GO(function(d){a.FH(d,c);PopIn2.$F.show(c)});this.proxy.load()},FG:function(a){PopIn2.$(document.body).append(PopIn2.BH.EZ("c.gif",{type:this.statusMsg,id:this.kauli_id,url:encodeURIComponent(document.URL),q:this.word}))},FH:function(f,a){this.FI();this.title=f.Ads[0].title;this.body=f.Ads[0].text1+f.Ads[0].text2;this.url=f.Ads[0].url;this.displayUrl=f.Ads[0].displayurl=="http://"?"":f.Ads[0].displayurl;this.statusMsg=PopIn2.BF.DA().CU();a.title=a.alt="スポンサーリンク";var c=a.appendChild(document.createElement("div"));var h=a.appendChild(document.createElement("div"));var l=c.appendChild(document.createElement("div"));var d=l.appendChild(document.createElement("div"));PopIn2.$F.css(d,this.rm.GT("kauli_favicon"));PopIn2.$F.cssSet(d,"margin","1px");PopIn2.$F.css(l,this.rm.GT("icon_bg"));PopIn2.$F.css(l,{position:"absolute",top:"0px",left:"0px"});var k=c.appendChild(document.createElement("a"));k.innerHTML=this.title;k.setAttribute("href",this.url);k.setAttribute("target","_blank");PopIn2.$F.bind(k,"click",PopIn2.Utils.bind(this.FG,this));var g=h.appendChild(document.createElement("a"));g.innerHTML=this.body;g.setAttribute("href",this.url);g.setAttribute("target","_blank");PopIn2.$F.bind(g,"click",PopIn2.Utils.bind(this.FG,this));var j=this.title.length;var b=this.body.length;PopIn2.$F.css(a,{padding:"0 0 0 5px"});PopIn2.$F.css(c,{"padding-left":"20px","margin-bottom":b>45?"1px":"5px","text-align":"left",position:"relative"});PopIn2.$F.css(k,{color:"white","line-height":b>18?"14px":"18px","font-size":j>18?"11px":"13px"});PopIn2.$(k).bind("mouseenter",function(){PopIn2.$F.css(this,{"text-decoration":"underline"})}).bind("mouseleave",function(){PopIn2.$F.css(this,{"text-decoration":"none"})});PopIn2.$F.css(g,{color:"#dddddd","text-decoration":"none","font-size":b>45?"11px":"12px","line-height":"14px"});PopIn2.$(g).bind("mouseenter",function(){PopIn2.$F.css(this,{"text-decoration":"underline"})}).bind("mouseleave",function(){PopIn2.$F.css(this,{"text-decoration":"none"})});PopIn2.$F.css(h,{"text-align":"left"})},FI:function(){PopIn2.$(document.body).append(PopIn2.BH.EZ("m.gif",{type:PopIn2.BF.DA().CU(),id:this.kauli_id,url:encodeURIComponent(document.URL),q:this.word}))}}).extend(PopIn2.R.prototype);new PopIn2.Class("T",{BR:function(){this.options=[];this.commands={}},FJ:function(a){this.commands=a},FK:function(a){this.icon=a},FL:function(a){this.title=a},FM:function(a){this.url=a},FN:function(a){this.description=a},FO:function(a){this.thumbnail=a},FP:function(a){this.options.push(a)},FE:function(){var a=document.createElement("div");return a},FQ:function(){var a=PopIn2.Utils.createElement("div");var d=a.appendChild(document.createElement("div"));PopIn2.$F.css(d,{color:"white","padding-top":"20px",height:"36px","text-align":"center",opacity:0});d.innerHTML="読み込み中...";PopIn2.$F.animate(d,{opacity:1});var c=a.appendChild(document.createElement("iframe"));c.id="popinIframe"+Math.random();c.src=this.url;c.frameBorder=0;c.scrolling="no";c.allowTransparency=true;PopIn2.$(c).css({width:"256px",height:"56px",border:"none",display:"none"});var b=new Date().getTime();if(PopIn2.$F.isIE){c.onreadystatechange=function(){if(this.readyState=="complete"){var f=500-new Date().getTime()+b>0?500-new Date().getTime()+b:200;setTimeout(function(){PopIn2.$F.cssSet(d,"display","none");PopIn2.$F.cssSet(c,"display","block")},f);this.onreadystatechange=null}}}else{PopIn2.$(c).bind("load",{loading:d},function(f,g){setTimeout(function(){PopIn2.$F.cssSet(g.loading,"display","none");PopIn2.$F.cssSet(c,"display","block")},500-new Date().getTime()+b)})}this.iframe=c;return a},FR:function(){var b=document.createElement("div");PopIn2.$(b).css({"text-align":"right","padding-right":"10px"});for(var c=0;c<this.options.length;c++){var a=document.createElement("span");a.innerHTML=this.options[c];PopIn2.$(a).css({color:"#dddddd","text-align":"center","text-decoration":"underline"});PopIn2.$(a).bind("mouseenter",function(){PopIn2.$(this).css({color:"#bababa"})});PopIn2.$(a).bind("mouseleave",function(){PopIn2.$(this).css({color:"#dddddd"})});this.FS(a,"mouseup","option"+(c+1));if(c>0){b.appendChild(document.createTextNode(" - "))}b.appendChild(a)}return b},FS:function(b,d,c){var a=this;PopIn2.$(b).css({cursor:"pointer"});PopIn2.$(b).bind(d,{type:c},function(f,g){a.FB(a.commands[g.type]);a.BT([new PopIn2.Event(f,a)]);return true})},FT:function(){var d=PopIn2.Utils.createElement("div");PopIn2.$(d).css({padding:"6px 4px 0px 6px",height:"50px"});this.FS(d,"mouseup","description");var f=PopIn2.Utils.tableBuilder(document,2);if(this.thumbnail){var c=document.createElement("div");PopIn2.$(c).css({background:"url("+this.thumbnail+") center center no-repeat",width:"60px",height:"45px",margin:"0px 8px 3px 3px",border:"solid 1px #BABABA"});f.IK(c)}f.IK(document.createTextNode(this.description));var a=f.lastCell;PopIn2.$F.css(a,{color:"white","font-size":"13px"});PopIn2.$(d).bind("mouseenter",function(){PopIn2.$F.cssSet(a,"color","#dddddd")});PopIn2.$(d).bind("mouseleave",function(){PopIn2.$F.cssSet(a,"color","white")});var b=f.IL();PopIn2.$F.cssSet(b,"background","transparent");d.appendChild(b);return d},FU:function(){var c=document.createElement("div");var b=document.createElement("div");PopIn2.$(b).css({"padding-left":this.icon?"30px":"10px",color:"#FFFFFF"});b.innerHTML=this.title;if(this.icon){var a=document.createElement("span");var d=document.createElement("span");PopIn2.$(a).css(this.rm.GT("icon_bg")).css({position:"absolute",top:"3px",left:"5px"});PopIn2.$(d).css({width:"16px",height:"16px",margin:"1px",display:"inline-block","vertical-align":"top",background:"url("+this.icon+")"});a.appendChild(d);c.appendChild(a)}c.appendChild(b);return c},FF:function(a){PopIn2.$(a).css({position:"relative","text-align":"left",color:"white","font-size":"13px","line-height":"15px",padding:"4px 0px 4px 0px","font-weight":"normal"});if(this.title){a.appendChild(this.FU())}if(this.url){a.appendChild(this.FQ())}if(this.description){a.appendChild(this.FT())}if(this.options.length>0){a.appendChild(this.FR())}return a}}).extend(PopIn2.R.prototype);new PopIn2.Class("U",{BR:function(a,b){this.icon=a;this.title=b},FE:function(){var a=document.createElement("div");this.FD(a,"mouseup");return a},FF:function(d){PopIn2.$(d).css({position:"relative","text-align":"left","margin-left":"9px","margin-right":"10px",color:"#FFFFFF","font-size":"13px","line-height":"15px",padding:"4px 0px 4px 0px","font-weight":"normal",cursor:"pointer"});var a=document.createElement("span");var c=document.createElement("span");var b=document.createElement("div");PopIn2.$(b).css({"padding-left":"30px",color:"#FFFFFF"});PopIn2.$(a).css(this.rm.GT("icon_bg")).css({position:"absolute",top:"3px",left:"5px"});PopIn2.$(c).css({width:"16px",height:"16px",margin:"1px",display:"inline-block","vertical-align":"top",background:"url("+this.icon+")"});b.innerHTML=this.title;a.appendChild(c);d.appendChild(a);d.appendChild(b);return d}}).extend(PopIn2.R.prototype);new PopIn2.Class("V",{BR:function(){this.menuItems=[];this.rm=PopIn2.BF.DA().CR()},FE:function(){var a=document.createElement("div");return a},FV:function(b,a){this.menuItems.push({id:b,menuItem:a})},FW:function(){var h=document.createElement("div");PopIn2.$(h).css({position:"relative","text-align":"left",color:"#FFFFFF","font-size":"13px","line-height":"15px",padding:"0px 0px 4px 4px",height:"18px","font-weight":"normal",cursor:"pointer"});var g=PopIn2.Utils.tableBuilder(document,this.menuItems.length);var a=this;for(var c=0;c<this.menuItems.length;c++){var b=document.createElement("div");this.menuItems[c].iconDiv=b;var d=b.appendChild(document.createElement("span"));PopIn2.$(b).css(this.rm.GT("icon_bg")).css({margin:"2px",opacity:0.4});PopIn2.$(d).css({margin:"1px",display:"inline-block","vertical-align":"top"}).css(this.rm.GT(this.menuItems[c].id+"_favicon"));PopIn2.$(b).bind("mouseenter",{index:c},function(k,l){var j=l.index;a.timer=setTimeout(function(){a.FX(j);a.timer=null},150)}).bind("mouseleave",function(){if(a.timer){clearTimeout(a.timer)}});g.IK(b)}var f=g.IL();PopIn2.$F.cssSet(f,"background","transparent");h.appendChild(f);return h},FX:function(a){if(!this.menuItems[a].div.firstChild){this.menuItems[a].div.appendChild(this.menuItems[a].menuItem.FC())}for(var b=0;b<this.menuItems.length;b++){var c=this.menuItems[b];PopIn2.$(c.div).css({display:b==a?"block":"none"});PopIn2.$(c.iconDiv).css({opacity:b==a?1:0.4})}PopIn2.$(this.settingsDiv).css({display:"none"})},FY:function(b){var a=this;var d=document.createElement("div");var c=this.menuItems[b].menuItem;c.BS(function(f){a.GA(f)});this.menuItems[b].div=d;return d},FZ:function(){var b=document.createElement("div");for(var a=0;a<this.menuItems.length;a++){b.appendChild(this.FY(a))}return b},GA:function(a){if(a.relatedModel.command.menuItem){this.expand()}else{this.BT([a])}},GB:function(){var b=document.createElement("div");var a=this;PopIn2.$(b).css(this.rm.GT("setting_icon")).css({position:"absolute",top:"3px",right:"0px",opacity:0.4}).bind("mouseenter",function(){PopIn2.$(this).css({opacity:1});a.GD()}).bind("mouseleave",function(){PopIn2.$(this).css({opacity:0.4})}).bind("mouseup",function(c){});return b},GC:function(){this.settingsDiv=new PopIn2.X().FC();return this.settingsDiv},GD:function(){for(var a=0;a<this.menuItems.length;a++){PopIn2.$(this.menuItems[a].div).css({display:"none"});PopIn2.$(this.menuItems[a].iconDiv).css({opacity:0.4})}PopIn2.$(this.settingsDiv).css({display:"block"})},FF:function(a){this.container=a;PopIn2.$(a).css({position:"relative",height:"120px"});a.appendChild(this.FW());new PopIn2.W().FF(a);a.appendChild(this.FZ());a.appendChild(this.GC());a.appendChild(this.GB());this.FX(0)}}).extend(PopIn2.R.prototype);new PopIn2.Class("W",{BR:function(){this.rm=PopIn2.BF.DA().CR();this.style=this.rm.GW(this.rm.GV()).style},FE:function(){return document.createElement("div")},FF:function(a){var b=a.appendChild(document.createElement("div"));PopIn2.$(b).css({"text-align":"left","margin-bottom":"4px",height:"3px","border-bottom":this.style})}}).extend(PopIn2.R.prototype);new PopIn2.Class("X",{BR:function(){this.rm=PopIn2.BF.DA().CR();this.isAnimationDisabled=(PopIn2.BG.DC("animation_disabled")==1)},FE:function(){var a=document.createElement("div");return a},FF:function(h){var a=this;PopIn2.$(h).css({position:"relative",display:"none","margin-left":"14px","margin-right":"15px",height:"90px"});var f=[{text:"ご要望・フィードバック",action:this.feedback},{text:this.isAnimationDisabled?"アニメーションを有効にする":"アニメーションを無効にする",action:this.GF},{text:"popInを無効にする",action:this.GE}];for(var c=0;c<f.length;c++){var b=h.appendChild(PopIn2.Utils.createElement("div"));PopIn2.$F.css(b,{margin:"6px",color:"#dddddd",height:"17px","line-height":"17px","font-size":"10pt",cursor:"pointer",position:"relative","padding-left":"25px"});var d=b.appendChild(document.createElement("div"));PopIn2.$F.css(d,this.rm.GT("button"+(c+1)));PopIn2.$F.css(d,{position:"absolute",left:"0px",top:"0px","margin-right":"10px"});b.appendChild(document.createTextNode(f[c].text));PopIn2.$F.bind(b,"mouseover",function(){PopIn2.$F.cssSet(this,"text-decoration","underline")});PopIn2.$F.bind(b,"mouseout",function(){PopIn2.$F.cssSet(this,"text-decoration","none")});PopIn2.$F.bind(b,"mouseup",{buttonData:f[c]},function(j,k){k.buttonData.action.apply(a)})}var g=h.appendChild(document.createElement("div"));PopIn2.$F.css(g,this.rm.GT("powered"));PopIn2.$F.css(g,{position:"absolute",right:"20px",bottom:"4px",cursor:"pointer"});PopIn2.$(g).bind("click",function(){PopIn2.Utils.openNewTab("http://popin.cc/ja/rainbow.html")});this.settingsDiv=h;return},GE:function(){if(confirm("本当に無効にしますか？")){PopIn2.BG.DB("popIn_disabled",1);window.location.reload()}},GF:function(){if(this.isAnimationDisabled){PopIn2.BG.DB("animation_disabled",0);window.location.reload()}else{if(confirm("本当に無効にしますか？")){PopIn2.BG.DB("animation_disabled",1);window.location.reload()}}},feedback:function(){PopIn2.Utils.openNewTab("http://popin.cc/ja/rainbow_custom.html?iframe=feedback")}}).extend(PopIn2.R.prototype);new PopIn2.Class("Y",{BR:function(a,c,b){this.icon=a;this.title=c;this.description=b},FE:function(){return document.createElement("div")},FF:function(b){this.FD(b,"mouseup");new PopIn2.U(this.icon,this.title).FF(b);PopIn2.$(b).css({"font-size":"12px"});var a=document.createElement("div");a.innerHTML=this.description;b.appendChild(a);PopIn2.$(a).css({padding:"6px 4px 0px 6px"})}}).extend(PopIn2.R.prototype);new PopIn2.Class("Z",{GG:function(){return this.GH.apply(this,arguments)}});new PopIn2.Class("AA",{BR:function(){},GH:function(d,c){var b=this.GK(d);var a=this;b.GO(function(f){c.call(a,a.GL(f))});b.load()}}).extend(new PopIn2.Z());new PopIn2.Class("AB",{BR:function(){this.factories=[];this.strict=false},GI:function(a){this.factories.push(a)},GJ:function(a){this.strict=a},GK:function(c){var b=new PopIn2.AM();for(var a=0;a<this.factories.length;a++){b.GP(this.factories[a].GK(c))}return b},GL:function(a){var f=[];for(var c=0;c<this.factories.length;c++){var b=a["proxy"+c];var d=this.factories[c].GL(b);if(d.length>0){f=PopIn2.$F.join(f,d);f.push(new PopIn2.W())}else{if(this.strict){return[]}}}f.pop();return f}}).extend(new PopIn2.AA());new PopIn2.Class("AC",{BR:function(){},GK:function(a){return new PopIn2.AN(a)},GL:function(h){if(!PopIn2.BF.DA().CT()){return[]}var a=Math.random();var g=a>0.3?PopIn2.BF.DA().CQ()["adId"]:5586;var f={sel:"2476",keyword:"2485",referrer:"2486",here:"2487",popinwords:"2485"};var b=g==5586?f[PopIn2.BF.DA().CU()]:PopIn2.BF.DA().CQ()["chId"];var c="http://ad.st01.k3i.biz/?otype=jsonp&apiid=1&mnum=1&id="+g+"&url="+encodeURIComponent(document.URL)+"&rurl="+encodeURIComponent(document.referrer)+"&keyword="+encodeURIComponent(h)+"&ch="+b;var d=new PopIn2.AL({url:c,callbackParameterName:"callback"});return[new PopIn2.S(d,g,h)]}}).extend(new PopIn2.AA());new PopIn2.Class("AD",{BR:function(){this.factories=[]},GM:function(a){var b=[];for(var d=0;d<a.length;d++){for(var c=0;c<this.factories.length;c++){if(this.factories[c].id==a[d]){b.push(this.factories[c])}}}this.factories=b},GI:function(b,a){this.factories.push({id:b,factory:a})},GK:function(c){var b=new PopIn2.AM();for(var a=0;a<this.factories.length;a++){b.GP(this.factories[a].factory.GK(c))}return b},GL:function(g){var a=[];for(var d=0;d<this.factories.length;d++){var f=g["proxy"+d];var b=this.factories[d].factory;var h=b.GL(f);a.push({id:this.factories[d].id,result:h})}var j=new PopIn2.V();for(var d=0;d<a.length;d++){var c=a[d];if(c.result.length>0){j.FV(c.id,c.result[0])}}return[j]}}).extend(new PopIn2.AA());new PopIn2.Class("AE",{BR:function(a){this.service=a;this.rm=PopIn2.BF.DA().CR()},GK:function(a){a=a.replace(/　/g," ");return new PopIn2.AN(a)},GL:function(g){var d=this.service.icon;var h=this.service.HY();var c=new PopIn2.T();c.FL(h+"<font style='color:yellow'>"+g+"</font>");var f="http://service.popin.cc/ja/simple/index.html?q="+encodeURIComponent(g)+"&service="+this.service.name;var j=PopIn2.BF.DA().CQ();for(var b in j){f+="&"+b+"="+encodeURIComponent(j[b])}c.FM(f);c.FP(this.rm.GU("option_"+this.service.name));var a=new PopIn2.AW(this.service,g);c.FJ({option1:{service:a}});return[c]}}).extend(new PopIn2.AA());new PopIn2.Class("AF",{BR:function(){this.rm=PopIn2.BF.DA().CR()},GK:function(b){b=b.replace(/　/g," ");this.word=b;this.siteType=PopIn2.BF.DA().CQ().isMedia?"news":"blog";var d=PopIn2.BF.DA().CQ().isMedia?"&sort=pubdate%20desc":"blog";var a="http://search.popin.cc/news/select/?version=2.2&DY=0&hl=true&f.content.hl.fragsize=45&rows=2&indent=on&fl=title+url+pubdate+thumbnail+imagebase64"+d+"&hl.fragmenter=gap&wt=json&f.content.hl.alternateField=content&hl.maxAlternateFieldLength=100&q=";var c=PopIn2.BF.DA().CQ().blogUrl;c=c.replace("http://","").replace(/\/$/,"");a+=encodeURIComponent("+site:"+c+"* +"+b);return new PopIn2.AL({url:a,callbackParameterName:"json.wrf"})},GL:function(f){if(!f||f==null){return[]}for(var d=0;d<f.response.docs.length;d++){var j=f.response.docs[d];if(j.url!=window.location){var g=PopIn2.BK.mainIcon;var h="<span style='color:yellow'>"+this.word+"</span>の最新関連記事";var b=j.thumbnail==""?"":!PopIn2.$F.isIE7&&j.imagebase64?j.imagebase64:"http://images.popin.cc/news/"+j.thumbnail;var c=j.pubdate;c=c=="000000000000000000"?"":"（"+c.substring(0,4)+"年"+c.substring(4,6)+"月"+c.substring(6,8)+"日）";var k=PopIn2.Utils.createShortSum(j.title,70);var a=new PopIn2.T();a.FL(h);a.FN(k);a.FO(b);var l=new PopIn2.AW(PopIn2.BN.HX()[this.siteType],this.word);if(f.response.numFound>1){a.FP("関連記事("+f.response.numFound+")");a.FP("続きを読む");a.FJ({thumbnail:{jump:j.url},description:{jump:j.url},option1:{service:l},option2:{jump:j.url}})}else{a.FP("続きを読む");a.FJ({thumbnail:{jump:j.url},description:{jump:j.url},option1:{jump:j.url}})}return[a]}}return[]}}).extend(new PopIn2.AA());new PopIn2.Class("AG",{BR:function(){},GK:function(b){this.word=b;var a="http://ajax.googleapis.com/ajax/services/search/web";a+="?key=ABQIAAAAIm-Nf1ZbKskC5rMYd3JVrBQzP4r7DN8pqec5jHBhy2uK9gHt5RRtGyJWHS3MUM57l3D3Qgpwu-542A";a+="&q="+encodeURIComponent(b)+" site:ja.wikipedia.org/wiki/";a+="&hl=ja";a+="&rsz=large";a+="&lr=lang_ja";a+="&v=1.0";return new PopIn2.AL(a)},GL:function(b){if(!b||!b.responseData||!b.responseData.results){return[]}var c=b.responseData.results;for(var a=0;a<c.length;a++){var d=c[a].titleNoFormatting.replace(/ - Wikipedia/,"");if(d==this.word){return new PopIn2.AE(PopIn2.BN.HX().wikipedia).GL(this.word)}}return[]}}).extend(new PopIn2.AA());new PopIn2.Class("AH",{BR:function(){},GN:function(a){return a}});new PopIn2.Class("AI",{BR:function(){},GN:function(a){var c=new PopIn2.Event(a);var b=a.selection;c.text=a.keyword;c.position=a.position;c.status=a.keywordObject.type;c.domAppender=new PopIn2.I(a.relatedModel);c.itemsFactoryName="keyword";return c}});new PopIn2.Class("AJ",{BR:function(){},GN:function(a){var c=new PopIn2.Event(a);var b=a.selection;c.text=b.HL();c.position=b.HN();c.domAppender=new PopIn2.K(b);c.menuClass=PopIn2.Menu2;c.itemsFactoryName="sel";c.status="sel";return c}});new PopIn2.Class("AK",{BR:function(){this.toLoad=[]},loaded:function(a){this.func.call(this,a)},GO:function(a){this.func=a}});new PopIn2.Class("AL",{BR:function(a){if(typeof a=="string"){a={url:a}}this.success=false;this.data=a},load:function(){var a=this;setTimeout(function(){if(!a.success){a.loaded(null)}},1000);PopIn2.Utils.ajax(PopIn2.$F.join(this.data,{success:function(b){a.success=true;a.loaded(b)}}))}}).extend(new PopIn2.AK());new PopIn2.Class("AM",{BR:function(){this.proxies=[]},GP:function(a){this.proxies.push(a)},load:function(){var b=this;var c=0;var a={};for(var f=0;f<this.proxies.length;f++){var d=this.proxies[f];d.index=f;d.GO(function(g){c++;a["proxy"+this.index]=g;if(c==b.proxies.length){b.loaded(a)}});d.load()}}}).extend(new PopIn2.AK());new PopIn2.Class("AN",{BR:function(a){this.result=a},load:function(){var a=this;setTimeout(function(){a.loaded(a.result)},1)}}).extend(new PopIn2.AK());new PopIn2.StaticClass("BJ",{BR:function(){},services:[{host:"google.co",query:"q"},{host:"search.yahoo.co",query:"p"},{host:"www.bing.com",query:"q"},{host:"static.popin.cc",query:"q"}],GQ:function(f){for(var c=0;c<this.services.length;c++){var a=this.services[c];if(f.indexOf(a.host)>=1){var d=new RegExp("[?|&]"+a.query+"=([^&]*)");var b=f.match(d);if(b){return decodeURIComponent(b[1].replace(/\+/g,"%20").replace("%E3%80%80","%20"))}}}return""},GR:function(){return PopIn2.BJ.GQ(document.referrer)}});new PopIn2.StaticClass("BK",{BR:function(){this.styles=PopIn2.$F.join(this.styles,this.styles2)},messages:{domain_google:"http://www.google.com",domain_amazon:"http://www.amazon.com",domain_youtube:"http://www.youtube.com",menu_services:"Services",menu_search:"Search",menu_siteSearch:"Site Search",service_wikipedia:"Wikipedia",service_google:"Google Search",service_relatedBlogs:"Related Blogs",service_youtube:"YouTube Search",service_flickr:"Flickr Search",service_amazon:"Amazon Shopping",service_twitter:"Twitter"},messages_ja:{domain_google:"http://www.google.co.jp",domain_amazon:"http://www.amazon.co.jp",domain_youtube:"http://jp.youtube.com",menu_services:"サービス推薦",menu_search:"いろいろ検索",menu_siteSearch:"サイト内検索",service_google_site:"サイト内検索 - ",service_wikipedia:"Wikipedia 百科事典 - ",service_google:"Google 検索 - ",service_relatedBlogs:"サイト内関連記事",service_youtube:"YouTube 動画 - ",service_flickr:"Flickr 画像 - ",service_amazon:"Amazon ショッピング - ",service_rakuten:"楽天市場 - ",service_twitter:"Twitter つぶやき - ",service_coneco:"Coneco 価格比較 - ",option_google_site:"すべての関連記事",option_wikipedia:"続きを読む",option_google:"さらに検索する",option_youtube:"もっと見る",option_flickr:"もっと見る",option_amazon:"ほかの関連製品",option_rakuten:"ほかの関連製品",option_twitter:"もっと見る",option_coneco:"ほかの関連製品"},messages_ko:{domain_google:"http://www.google.co.kr",domain_amazon:"http://www.amazon.com",domain_youtube:"http://kr.youtube.com",menu_services:"서비스추천",menu_search:"다양한검색",menu_siteSearch:"사이트검색",service_wikipedia:"위키백과",service_google:"  Google - 웹검색",service_relatedBlogs:"사이트관련기사",service_youtube:"YouTube - 동영상검색",service_flickr:"Flickr - 이미지검색",service_amazon:"Amazon - 쇼핑",service_twitter:"Twitter"},styles:{mark:{background:"transparent url($f1) no-repeat scroll 0 0px",width:"40px",height:"121px"},screen_c:{background:"transparent url($f3) repeat-y scroll 0px 0",height:"100%",width:"1000px"},screen_e:{background:"transparent url($f3) repeat-y scroll -1000px 0",height:"100%",width:"13px"},screen_e_arrow:{background:"transparent url($f1) no-repeat scroll 0 -121px",width:"27px",height:"40px"},screen_n:{background:"transparent url($f2) repeat-x scroll 0 0px",width:"100%",height:"13px"},screen_n_arrow:{background:"transparent url($f1) no-repeat scroll 0 -161px",width:"34px",height:"31px"},screen_ne:{background:"transparent url($f1) no-repeat scroll 0 -192px",width:"13px",height:"13px"},screen_nw:{background:"transparent url($f1) no-repeat scroll 0 -205px",width:"13px",height:"13px"},screen_s:{background:"transparent url($f2) repeat-x scroll 0 -13px",width:"100%",height:"13px"},screen_s_arrow:{background:"transparent url($f1) no-repeat scroll 0 -218px",width:"34px",height:"28px"},screen_se:{background:"transparent url($f1) no-repeat scroll 0 -246px",width:"13px",height:"13px"},screen_sw:{background:"transparent url($f1) no-repeat scroll 0 -259px",width:"13px",height:"13px"},screen_w:{background:"transparent url($f3) repeat-y scroll -1013px 0",height:"100%",width:"13px"},screen_w_arrow:{background:"transparent url($f1) no-repeat scroll 0 -272px",width:"27px",height:"40px"},amazon_favicon:{background:"transparent url($f1) no-repeat scroll 0 -312px",width:"16px",height:"16px"},button1:{background:"transparent url($f1) no-repeat scroll 0 -328px",width:"15px",height:"17px"},button2:{background:"transparent url($f1) no-repeat scroll 0 -345px",width:"17px",height:"16px"},button3:{background:"transparent url($f1) no-repeat scroll 0 -361px",width:"17px",height:"17px"},DG_arrow:{background:"transparent url($f1) no-repeat scroll 0 -378px",width:"20px",height:"20px"},DG_btn:{background:"transparent url($f1) no-repeat scroll 0 -398px",width:"10px",height:"10px"},DG_btn_over:{background:"transparent url($f1) no-repeat scroll 0 -408px",width:"10px",height:"10px"},coneco_favicon:{background:"transparent url($f1) no-repeat scroll 0 -418px",width:"16px",height:"16px"},flickr_favicon:{background:"transparent url($f1) no-repeat scroll 0 -434px",width:"16px",height:"16px"},google_favicon:{background:"transparent url($f1) no-repeat scroll 0 -450px",width:"16px",height:"16px"},icon_bg:{background:"transparent url($f1) no-repeat scroll 0 -466px",width:"18px",height:"18px"},kakaku_favicon:{background:"transparent url($f1) no-repeat scroll 0 -484px",width:"16px",height:"16px"},kauli_favicon:{background:"transparent url($f1) no-repeat scroll 0 -500px",width:"16px",height:"16px"},mycom_favicon:{background:"transparent url($f1) no-repeat scroll 0 -516px",width:"16px",height:"16px"},open_arrow:{background:"transparent url($f1) no-repeat scroll 0 -532px",width:"18px",height:"18px"},open_new:{background:"transparent url($f1) no-repeat scroll 0 -550px",width:"10px",height:"10px"},open_new_over:{background:"transparent url($f1) no-repeat scroll 0 -560px",width:"10px",height:"10px"},pi_bottom:{background:"transparent url($f2) repeat-x scroll 0 -26px",width:"100%",height:"29px"},pi_bottom_left:{background:"transparent url($f1) no-repeat scroll 0 -570px",width:"14px",height:"29px"},pi_bottom_right:{background:"transparent url($f1) no-repeat scroll 0 -599px",width:"26px",height:"29px"},pi_center_left:{background:"transparent url($f3) repeat-y scroll -1026px 0",height:"100%",width:"14px"},pi_center_right:{background:"transparent url($f3) repeat-y scroll -1040px 0",height:"100%",width:"26px"},pi_top:{background:"transparent url($f2) repeat-x scroll 0 -55px",width:"100%",height:"27px"},pi_top_left:{background:"transparent url($f1) no-repeat scroll 0 -628px",width:"14px",height:"27px"},pi_top_right:{background:"transparent url($f1) no-repeat scroll 0 -655px",width:"26px",height:"27px"},powered:{background:"transparent url($f1) no-repeat scroll 0 -682px",width:"92px",height:"14px"},pu_bottom:{background:"transparent url($f2) repeat-x scroll 0 -82px",width:"100%",height:"29px"},pu_bottom_left:{background:"transparent url($f1) no-repeat scroll 0 -696px",width:"14px",height:"29px"},pu_bottom_right:{background:"transparent url($f1) no-repeat scroll 0 -725px",width:"26px",height:"29px"},pu_center_left:{background:"transparent url($f3) repeat-y scroll -1066px 0",height:"100%",width:"14px"},pu_center_right:{background:"transparent url($f3) repeat-y scroll -1080px 0",height:"100%",width:"26px"},pu_top:{background:"transparent url($f2) repeat-x scroll 0 -111px",width:"100%",height:"27px"},pu_top_left:{background:"transparent url($f1) no-repeat scroll 0 -754px",width:"14px",height:"27px"},pu_top_right:{background:"transparent url($f1) no-repeat scroll 0 -781px",width:"26px",height:"27px"},rainbowFIo:{background:"transparent url($f1) no-repeat scroll 0 -808px",width:"99px",height:"15px"},rainbowFIo_over:{background:"transparent url($f1) no-repeat scroll 0 -823px",width:"99px",height:"15px"},rakuten_favicon:{background:"transparent url($f1) no-repeat scroll 0 -838px",width:"16px",height:"16px"},setting_icon:{background:"transparent url($f1) no-repeat scroll 0 -854px",width:"16px",height:"16px"},sitesearch_favicon:{background:"transparent url($f1) no-repeat scroll 0 -870px",width:"16px",height:"16px"},star:{background:"transparent url($f1) no-repeat scroll 0 -886px",width:"12px",height:"12px"},twitter_favicon:{background:"transparent url($f1) no-repeat scroll 0 -898px",width:"16px",height:"16px"},wikipedia_favicon:{background:"transparent url($f1) no-repeat scroll 0 -914px",width:"16px",height:"16px"},win_IZ:{background:"transparent url($f1) no-repeat scroll 0 -930px",width:"11px",height:"11px"},yahoo_favicon:{background:"transparent url($f1) no-repeat scroll 0 -941px",width:"16px",height:"16px"},youtube_favicon:{background:"transparent url($f1) no-repeat scroll 0 -957px",width:"16px",height:"16px"}},styles2:{pi_center:{"background-color":"#ededed",height:"100%"},pu_center:{"background-color":"#ededed",height:"100%"},window_header:{position:"absolute",top:"0px",width:"100%"},window_service:{position:"absolute",top:"0px",left:"0px",right:"0px",bottom:"0px",margin:"20px 2px 22px 0px",height:"auto","background-color":"white"},window_footer:{position:"absolute",bottom:"0px",width:"100%"},toolbar:{position:"relative",overflow:"hidden"}},separatorStyles:{black:{style:"solid 1px #5c5c5c"},blue:{style:"solid 1px #3F4890"},graphite:{style:"solid 1px #384854"},green:{style:"solid 1px #346C35"},brown:{style:"solid 1px #4A3939"},emeraldgreen:{style:"solid 1px #2E7B83"},purple:{style:"solid 1px #8A2672"},purple2:{style:"solid 1px #5C4772"}}});new PopIn2.Class("AO",{BR:function(b,a){if(PopIn2.BK["messages_"+b]){this.locale=b}else{this.locale="en"}this.skinColor=a;this.baseDirectory="http://static.popin.cc/images/206/color_"+a;this.replaceStrings={f1:this.baseDirectory+"/images.png",f2:this.baseDirectory+"/images-x.png",f3:this.baseDirectory+"/images-y.png"};for(i in this.replaceStrings){new Image().src=this.replaceStrings[i]}},GS:function(b){for(var a in this.replaceStrings){b=b.replace("$"+a,this.replaceStrings[a])}return b},GT:function(a){var b=PopIn2.BK.styles[a];if(!b){throw"Style not found: "+a}if(b&&b.background){b.background=this.GS(b.background)}return b},GU:function(a){try{return PopIn2.BK["messages_"+this.locale][a]}catch(b){return PopIn2.BK.messages[a]}},GV:function(){return this.skinColor},GW:function(a){return PopIn2.BK.separatorStyles[a]},GX:function(c,a,b){PopIn2.BK[c][a]=b}});new PopIn2.Class("AP",{BR:function(){this.layers=[];this.rm=PopIn2.BF.DA().CR()},GY:function(a){this.layers.push(a)},GZ:function(a){PopIn2.$(this.layersContainer).empty();if(a>=0){this.layersContainer.appendChild(this.layers[a])}},HA:function(){var a=this.FE();this.container=a;this.FF(a);return a},FE:function(){var a=document.createElement("div");a.id="popInAP"+Math.random();PopIn2.$(a).css({position:"relative"});this.container=a;return a},HB:function(b){var d=["top","","bottom"];var a=["left","","right"];var g=["nw","n","ne","w","c","e","sw","s","se"];this.divs={};for(var c=0;c<3;c++){for(var f=0;f<3;f++){if(c*f==1){continue}var j=b.appendChild(PopIn2.Utils.createElement("div"));this.divs[g[c*3+f]]=j;PopIn2.$F.css(j,this.rm.GT("screen_"+g[c*3+f]));PopIn2.$F.cssSet(j,"position","absolute");if(c!=1){PopIn2.$F.cssSet(j,d[c],"-13px")}PopIn2.$F.cssSet(j,f==1?"left":a[f],f==1?"0px":"-13px")}}PopIn2.$F.css(b,this.rm.GT("screen_c"));PopIn2.$F.cssSet(b,"width","auto")},HC:function(){var a=this.container.appendChild(document.createElement("div"));PopIn2.$(a).css({});this.layersContainer=a},FF:function(a){this.HB(a);this.HC(a)},HD:function(b){PopIn2.$F.cssSet(this.divs[b],"background","none");var h=b=="n"||b=="s";var c=PopIn2.Utils.tableBuilder(document,h?3:1);var f;for(var d=0;d<3;d++){var a=this.rm.GT("screen_"+b+(d==1?"_arrow":""));c.IK(this.HE());var g=c.lastCell;PopIn2.$F.css(g,a);if(d!=1){PopIn2.$F.css(g,h?"width":"height","auto")}else{PopIn2.$F.css(g,{background:"none","vertical-align":"top"});PopIn2.$F.css(g,h?"height":"width","auto");PopIn2.$F.css(c.lastElement,{height:"100%",position:"relative"});var j=c.lastElement.appendChild(this.HE());PopIn2.$F.css(j,a);PopIn2.$F.css(j,{position:"absolute",top:"0px",right:"0px"})}}var k=c.IL();PopIn2.$F.cssSet(k,h?"width":"height","100%");this.divs[b].appendChild(k)},HE:function(){var a=document.createElement("div");PopIn2.$F.cssSet(a,"line-height","1px");a.innerHTML="&nbsp;";return a}}).extend(new PopIn2.D());new PopIn2.Class("AQ",{BR:function(){},ED:function(d){this.DG();PopIn2.BF.DA().CZ(d.status);var a=this;var c=new PopIn2.AP();c.event=d;if(d.itemsFactoryName){var b=PopIn2.Application.DA().CA("menuItemsFactory_"+d.itemsFactoryName);var f=new PopIn2.AR(b);f.HJ(function(g){a.HG(c,g)});c.GY(f.HK(d.text))}c.show(this.HF(c,d));if(!d.staticMenu){this.screen=c;PopIn2.$(c.container).bind("mouseenter",function(){a.HH()});PopIn2.$(c.container).bind("mouseleave",function(){a.HI()})}},HF:function(b,d){if(d.menuAppender){setTimeout(function(){b.GZ(0)},1);return d.menuAppender}var a=new PopIn2.F();if(d.position.anchor=="right"){a.options.top=d.position.top+d.position.height/2;a.options.left=d.position.left+d.position.width+30;a.DH(0.5,0);setTimeout(function(){b.HD("w")},50)}else{a.options.top=d.position.top-30;a.options.left=d.position.left+d.position.width/2;a.DH(1,0.5);setTimeout(function(){b.HD("s")},50)}var c=PopIn2.BF.DA().CT();setTimeout(function(){a.animate({height:c?190:125,width:265,opacity:1,end:function(){b.GZ(0)}})},1);return a},HG:function(a,c){var d=new PopIn2.Event(a.event,a);if(c.relatedModel.command.jump){var b="http://static.popin.cc/redirect.html?url="+encodeURIComponent(c.relatedModel.command.jump)+"&q="+encodeURIComponent(a.event.text);window.location=b;return}else{if(c.relatedModel.command.service){d.service=c.relatedModel.command.service}}if(a.event.domAppender){d.domAppender=a.event.domAppender}this.BU("JM",[d])},HH:function(){var a=this;if(a.JNId){clearTimeout(a.JNId)}},HI:function(){var a=this;this.JNId=setTimeout(function(){a.DG()},500)},DG:function(){if(this.screen){this.screen.DF();delete this.screen}}}).extend(new PopIn2.Component());new PopIn2.Class("AR",{BR:function(a){this.menuItemsFactory=a},HJ:function(a){this.listener=a},HK:function(b){var c=document.createElement("div");var a=this;this.menuItemsFactory.GG(b,function(d){if(d.length==0){return}setTimeout(function(){a.FF(c,d)},350)});return c},FF:function(d,a){for(var b=0;b<a.length;b++){var c=a[b];c.BS(this.listener);d.appendChild(c.FC())}}});new PopIn2.Class("Selection",{BR:function(){throw new "Cannot instance interface class Selection. Use AS or AT instead"},HL:function(){throw new "Not implemented"},HM:function(){throw new "Not Implemented"},HN:function(){throw new "Not implemented"}});new PopIn2.StaticClass("BL",{BR:function(){},HO:function(){if(PopIn2.$F.isIE){return new PopIn2.AT()}else{return new PopIn2.AS()}}});new PopIn2.Class("AS",{BR:function(){this.sel=window.getSelection();this.HN()},HL:function(){if(this.text){return this.text}this.text=this.sel?this.sel.toString():"";return this.text},HM:function(){this.sel.removeAllRanges()},HP:function(){if(this.range){return this.range}if(this.sel.getRangeAt&&this.sel.rangeCount>0){this.range=this.sel.getRangeAt(0)}else{var a=document.createRange();if(this.sel.anchorNode&&this.sel.anchorOffset){a.setStart(this.sel.anchorNode,this.sel.anchorOffset)}if(this.sel.focusNode&&this.sel.focusOffset){a.setEnd(this.sel.focusNode,this.sel.focusOffset)}this.range=a}return this.range},HN:function(){if(this.position){return this.position}var c=document.createDocumentFragment();var f=document.createElement("span");f.id="selectionDami";f.innerHTML="";c.appendChild(f);var b=this.HP();var a=b.endContainer;var g=b.endOffset;switch(a.nodeType){case 1:a.insertBefore(c,a.childNodes[g]);break;case 3:var d=a.splitText(g);d.parentNode.insertBefore(c,d);break}f.innerHTML="&nbsp;";var h=PopIn2.$F.join(PopIn2.$(f).bodyOffset(),PopIn2.$(f).size());h.node=f.parentNode.tagName=="A"?f.parentNode.parentNode:f.parentNode;PopIn2.$(f).remove();h.node.normalize();this.position=h;return h},HQ:function(d){var c=document.createDocumentFragment();c.appendChild(d);var b=this.HP();var a=b.endContainer;var g=b.endOffset;switch(a.nodeType){case 1:a.insertBefore(c,a.childNodes[g]);break;case 3:var f=a.splitText(g);if(a.parentNode.tagName=="A"){f.parentNode.parentNode.appendChild(c)}else{if(f.parentNode.offsetHeight>450){f.parentNode.insertBefore(c,f)}else{f.parentNode.appendChild(c)}}break}}});new PopIn2.Class("AT",{BR:function(){this.selection=document.selection;this.range=this.selection.createRange()},HM:function(){this.range.setEndPoint("EndToStart",this.range);this.range.select()},HL:function(){return this.range.text},HN:function(){if(typeof this.range!="undefined"){this.range.collapse(false);this.range.pasteHTML('<span id="selectionDami">&nbsp;</span>');var a=document.getElementById("selectionDami")}a.innerHTML="&nbsp;";var b=PopIn2.$F.join(PopIn2.$(a).bodyOffset(),PopIn2.$(a).size());b.node=a.parentNode;PopIn2.$(a).remove();return b},HQ:function(a){if(typeof this.range!="undefined"){this.range.collapse(false);this.range.pasteHTML('<span id="selectionDami">&nbsp;</span>');var b=document.getElementById("selectionDami")}b.id="popInDami"+Math.random();b.innerHTML="&nbsp;";b.parentNode.replaceChild(a,b)}});new PopIn2.Class("AU",{BR:function(){this.previousSelectionText="";this.CJ();this.minSize=1;this.maxSize=10000},CJ:function(){PopIn2.$(document.documentElement).bind("mouseup",PopIn2.Utils.bind(this.HT,this))},HR:function(a){this.maxSize=a},HS:function(a){this.minSize=a},HT:function(d){d=d||window.event;var g=d.target||d.srcElement;var c=g;while(c!=null){if(c.id&&typeof c.id=="string"&&c.id.indexOf("popIn")==0){return false}if(c.tagName=="INPUT"||c.tagName=="SELECT"||c.tagName=="TEXTAREA"){return false}c=c.parentNode}var b=this.getSelection();var f=b.HL();if(this.previousSelectionText!=f&&f!=""){if(f.length<=this.maxSize&&f.length>=this.minSize||!f.match(/[ぁ-ん]/)){var a=this;setTimeout(function(){a.CL(b)},1)}}this.previousSelectionText=b.HL()},getSelection:function(){return PopIn2.BL.HO()},CL:function(a){var b=new PopIn2.Event(null,this);b.selection=a;this.BU("selection",[b])}}).extend(new PopIn2.Component());new PopIn2.StaticClass("BM",{BR:function(){},HU:function(c){var d=[];for(;c.nodeType==1;c=c.parentNode){if(c.id){d.push("#"+c.id);break}else{var b=0;for(var a=c;a;a=a.previousSibling){if(a.tagName==c.tagName){b++}}d.push(c.tagName+":nth-child("+b+")")}}return d.reverse().join(">")}});new PopIn2.StaticClass("BN",{BR:function(){this.serviceWidth=400;this.serviceHeight=400;this.rm=PopIn2.BF.DA().CR()},HV:function(a){return a.replace("lang",this.rm.locale)},HW:function(){this.rm=PopIn2.BF.DA().CR();this.about=new PopIn2.AV({serviceName:"",serviceIcon:"",serviceUrl:this.HV("http://service.popin.cc/lang/popin_help/index.html"),width:650,height:550});this.twitter=new PopIn2.AX("twitter","Twitter","http://twitter.com/favicon.ico",this.HV("http://popin.cc/lang/services/twitter/index.html?qstring={qstring}"),"");var a={};a.google=new PopIn2.AX("google",this.rm.GU("service_google"),this.rm.GU("domain_google")+"/favicon.ico",this.HV("http://service.popin.cc/lang/related_word/index.html?q={qstring}"),this.HV(this.rm.GU("domain_google")+"/search?hl=lang&q={qstring}"));a.googleSite=new PopIn2.AX("google_site",this.rm.GU("service_google_site"),"http://static.popin.cc/images/favicon.png",this.HV("http://service.popin.cc/lang/site_search/index.html?q={qstring}"),"");a.wikipedia=new PopIn2.AX("wikipedia",this.rm.GU("service_wikipedia"),this.HV("http://lang.wikipedia.org/favicon.ico"),this.HV("http://service.popin.cc/lang/popin_share/index.html?mode=wikipedia&q={qstring}"),this.HV("http://lang.wikipedia.org/wiki/{qstring}"));a.twitter=new PopIn2.AX("twitter",this.rm.GU("service_twitter"),this.HV("http://twitter.com/favicon.ico"),this.HV("http://service.popin.cc/ja/twitter/index.html?q={qstring}"),this.HV("http://search.twitter.com/search?q={qstring}"));a.dynamic=new PopIn2.AX("dynamic","Dynamic","http://static.popin.cc/images/favicon.png",this.HV("http://service.popin.cc/lang/dynamic/index.html?q={qstring}"),"");a.shareWikipedia=new PopIn2.AX(a.wikipedia.name,a.wikipedia.displayName,a.wikipedia.icon,this.HV("http://service.popin.cc/lang/popin_share/index.html?mode=wikipedia&q={qstring}"),a.wikipedia.oriUrl);a.shareSearch=new PopIn2.AX("relatedBlogs",this.rm.GU("service_relatedBlogs"),"http://static.popin.cc/images/favicon.png",this.HV("http://service.popin.cc/lang/popin_share/index.html?mode=site&q={qstring}"),"");a.youtube=new PopIn2.AX("youtube",this.rm.GU("service_youtube"),this.rm.GU("domain_youtube")+"/favicon.ico",this.HV("http://service.popin.cc/lang/youtube/index.html?q={qstring}"),this.rm.GU("domain_youtube")+"/results?search_query={qstring}");a.flickr=new PopIn2.AX("flickr",this.rm.GU("service_flickr"),"http://static.popin.cc/images/flickr.png",this.HV("http://service.popin.cc/lang/flickr/index.html?q={qstring}"),"http://www.flickr.com/search/?q={qstring}");a.news=new PopIn2.AX("news","関連記事検索",PopIn2.BK.mainIcon,this.HV("http://service.popin.cc/ja/popin_news/index.html?mode=site&q={qstring}"),"");a.blog=new PopIn2.AX("blog","関連記事検索",PopIn2.BK.mainIcon,this.HV("http://service.popin.cc/ja/popin_blog/index.html?mode=site&q={qstring}"),"");if(this.rm.locale!="ko"){a.amazon=new PopIn2.AX("amazon",this.rm.GU("service_amazon"),"http://g-ec2.images-amazon.com/favicon.ico",this.HV("http://service.popin.cc/lang/amazon/index.html?q={qstring}"),this.rm.GU("domain_amazon")+"/s/field-keywords={qstring}");a.amazon.domain="amazon.co";a.amazon.titleReplace="Amazon.co.jp：";a.rakuten=new PopIn2.AX("rakuten",this.rm.GU("service_rakuten"),this.rm.GU("domain_rakuten")+"/favicon.ico",this.HV("http://service.popin.cc/lang/rakuten/index.html?q={qstring}"),this.rm.GU("domain_rakuten")+"/results?search_query={qstring}");a.rakuten.domain="rakuten.co.jp"}a.google.domain="google.co";a.wikipedia.domain="wikipedia.org";a.youtube.domain="youtube.co";a.twitter.domain="twitter.com";a.googleSite.domain="google.co";a.google.isDefault=true;a.twitter.isDefault=true;a.flickr.domain="www.flickr.com";a.wikipedia.titleReplace=" - Wikipedia";a.youtube.titleReplace="YouTube - ";this.services=a},HX:function(){if(!this.services){this.HW()}return this.services}});new PopIn2.Class("AV",{BR:function(a){this.service=a;this.service.oriUrl=this.service.serviceUrl},HY:function(){return this.service.serviceName},HZ:function(){return this.service.width},IA:function(){return this.service.height},IB:function(){return PopIn2.AZ.prototype.TYPE_POPUP},IC:function(){return false},ID:function(){return false},IE:function(){return this.service.oriUrl},IF:function(){var b=this.IG();var a=document.createElement("iframe");a.id="popin_"+Math.random();a.src=b;a.frameBorder=0;PopIn2.$(a).css({width:"100%",height:"100%",position:"absolute",display:"block",left:"0px",top:"0px",bottom:"0px",border:"none",right:"0px"});return a},IG:function(){var a=decodeURIComponent(this.service.serviceUrl);return a}});new PopIn2.Class("AW",{BR:function(a,b){this.service=a;this.keyword=b},HY:function(){return this.name?this.name:this.service.HY()},HZ:function(){return this.service.HZ()},IA:function(){return this.service.IA()},IC:function(){return this.service.IC()},ID:function(){return this.service.ID()},IB:function(){return this.type?this.type:this.service.IB()},IE:function(){var a=this.oriUrl?this.oriUrl:this.service.IE();return a.replace("{qstring}",encodeURIComponent(this.keyword))},IF:function(){var a=this.service.IF();a.src=a.src.replace("{qstring}",encodeURIComponent(this.keyword));return a}});new PopIn2.Class("AX",{BR:function(c,a,d,b,f){this.name=c;this.displayName=a;this.icon=d;this.url=b;this.oriUrl=f},HY:function(){return this.displayName},HZ:function(){return Math.max(350,PopIn2.BN.serviceWidth)},IA:function(){return Math.max(350,PopIn2.BN.serviceHeight)},IC:function(){return true},ID:function(){return true},IB:function(){return PopIn2.AZ.prototype.TYPE_POPIN},IE:function(){return this.oriUrl},IF:function(){var b=this.IG();var a=document.createElement("iframe");a.id="popin_"+Math.random();a.src=b;a.frameBorder=0;PopIn2.$(a).css({width:"100%",height:"100%",position:"absolute",display:"block",left:"0px",top:"0px",border:"none",bottom:"0px",right:"0px"});return a},IG:function(){var b=this.url;b+="&skinColor=skin_"+PopIn2.BF.DA().CR().skinColor;var c=PopIn2.BF.DA().CQ();for(var a in c){b+="&"+a+"="+encodeURIComponent(c[a])}return b}});new PopIn2.Class("AY",{BR:function(){this.linkStyle="dotted 2px #666666";this.fontColor="inherit";this.delay=200},IH:function(a){this.delay=a},II:function(d,c){var b=document.createElement("a");b.href="javascript:void(0)";var a=this;PopIn2.$(b).bind("mouseenter",function(g){var f=new PopIn2.Event(g,b);f.element=g.target||g.srcElement;f.keyword=d;f.keywordObject=c;a.currentTimeout=setTimeout(function(){a.BU("show",[f]);a.currentTimeout=null},a.delay)});PopIn2.$(b).bind("mouseleave",function(g){if(a.currentTimeout){clearTimeout(a.currentTimeout);a.currentTimeout=null}else{var f=new PopIn2.Event(g,b);a.BU("JP",[f])}});b.innerHTML=d;PopIn2.$(b).css({"border-bottom":this.linkStyle,color:this.fontColor,"text-decoration":"none"});return b}}).extend(new PopIn2.Component());new PopIn2.StaticClass("BO",{BR:function(){},IJ:function(a){var d=a.protocol+"//"+a.host+a.pathname.match(/^\/[^\/]*/)[0];var c=a.protocol+"//"+a.host+"/";function b(g,k){var j,h=null;for(j=0;j<g.length;j++){h=k(g[j]);if(h){break}}return h}return b([".jugem.jp",".laff.jp",".blog.drecom.jp",".fc2.com",".seesaa.net",".blog.so-net.ne.jp",".cocolog-nifty.com",".at.webry.info",".269g.net",".bg.cat-v.ne.jp",".cscblog.jp",".dtiblog.com",".arekao.jp",".blogspot.com"],function(f){if(a.hostname.lastIndexOf(f)==a.hostname.length){return c}})||b([".ap.teacup.com",".g.hatena.ne.jp","d.hatena.ne.jp","ameblo.jp","blog.livedoor.jp","blog.oricon.jp","yaplog.jp","blogs.yahoo.co.jp","blog.goo.ne.jp","plaza.rakuten.co.jp","blog.excite.co.jp"],function(f){if(a.hostname.lastIndexOf(f)==a.hostname.length){return d}})||c}});PopIn2.Utils={};PopIn2.Utils.zIndexBHo=100002;PopIn2.Utils.zIndexServiceList=100001;PopIn2.Utils.zIndexAZ=100000;PopIn2.Utils.bind=function(c,b){var a=c,b=arguments[arguments.length-1];return function(){return a.apply(b,arguments)}};PopIn2.Utils.openNewTab=function(a){window.open(a,"_blank")};PopIn2.Utils.CN=function(){return window};PopIn2.Utils.getDocument=function(){return document};PopIn2.Utils.CNWidth=function(b){if(!b){b=PopIn2.Utils.CN()}var a=b.document;return b.innerWidth||a.documentElement.clientWidth||a.body.clientWidth||a.scrollWidth};PopIn2.Utils.CNHeight=function(b){if(!b){b=PopIn2.Utils.CN()}var a=b.document;return b.innerHeight||a.documentElement.clientHeight||a.body.clientHeight||a.body.scrollHeight};PopIn2.Utils.getParameter=function(b){var a=PopIn2.Utils.getDocument().location.search;var f=new Object();if(a&&a.length>2){a=a.slice(1);qs1=a.split("&");for(var d=0;d<qs1.length;d++){var c=qs1[d].split("=");f[c[0]]=decodeURIComponent(c[1])}}return f[b]};PopIn2.Utils.createElement=function(c,b){var a=(b||PopIn2.Utils.getDocument()).createElement(c);if(c=="input"){return a}PopIn2.$(a).css({margin:"0px",padding:"0px",background:"","line-height":1,"-moz-box-sizing":"content-box","-webkit-box-sizing":"content-box",position:"static","text-align":"left","float":"none"});if(c=="iframe"||c=="td"||c=="tr"||c=="div"||c=="table"){PopIn2.$(a).css({border:"0px"})}if(c=="ul"){PopIn2.$(a).css({"list-style-type":"none"})}if(c=="td"){PopIn2.$(a).css({"vertical-align":"top","border-spacing":0,padding:"0px",margin:"0px",background:"transparent"})}if(c=="tr"){PopIn2.$(a).css({"border-spacing":0})}if(c=="table"){PopIn2.$(a).css({"border-collapse":"collapse",cellpadding:0,"border-spacing":0})}return a};PopIn2.Utils.contains=function(c,b){for(var a=0;a<c.length;a++){if(c[a]==b){return true}}return false};PopIn2.Utils.pageScrollTop=function(a){if(typeof a=="undefined"){a=PopIn2.Utils.CN()}return a?PopIn2.Utils.getDocument().body.scrollTop||PopIn2.Utils.getDocument().documentElement.scrollTop:0};PopIn2.Utils.getDocumentWidth=function(){return PopIn2.$(document.documentElement).size().width};PopIn2.Utils.getDocumentHeight=function(){var a=document;return Math.max(Math.max(a.body.scrollHeight,a.documentElement.scrollHeight),Math.max(a.body.offsetHeight,a.documentElement.offsetHeight),Math.max(a.body.clientHeight,a.documentElement.clientHeight))};PopIn2.Utils.getViewportWidth=function(a){if(!a){a=PopIn2.Utils.CN()}return a.document.body.clientWidth};PopIn2.Utils.getViewportHeight=function(){return PopIn2.Utils.CN().innerHeight};PopIn2.Utils.ajax=PopIn2.$F.ajax;PopIn2.Utils.tableBuilder=function(b,a){return{document:b,cols:a||1,cells:0,table:PopIn2.Utils.createElement("table",b),tbody:PopIn2.Utils.createElement("tbody",b),IK:function(d){if(this.cells%this.cols==0){this.actualRow=this.tbody.appendChild(PopIn2.Utils.createElement("tr",document))}var c=PopIn2.Utils.createElement("td",document);if(d){c.appendChild(d)}this.actualRow.appendChild(c);this.lastCell=c;this.lastElement=d;this.cells++;return this},IL:function(){this.table.appendChild(this.tbody);return this.table}}};PopIn2.Utils.createShortSum=function(g,b){var f=0;var c="";b=(typeof b=="undefined")?60:b;for(var d=0,a=g.length;d<a;d++){var h=g.charCodeAt(d);c+=g.substring(d,d+1);f+=(h>=255)?2:1;if(f>b){return g.substring(0,d)+"..."}}return c};PopIn2.Utils.getBrowserLanguage=function(){try{return(navigator.browserLanguage||navigator.language||navigator.userLanguage).substr(0,2)}catch(a){return"error"}};new PopIn2.Class("AZ",{TYPE_POPIN:"pi",TYPE_POPUP:"pu",BR:function(){this.type=this.TYPE_POPIN;this.rm=PopIn2.BF.DA().CR()},IM:function(a){this.type=a},setWidth:function(a){this.width=a},setHeight:function(a){this.height=a},IN:function(a){this.resizable=a},IO:function(a){this.draggable=a},IP:function(a){this.headerBuilder=a},IQ:function(a){this.centerBuilder=a},IR:function(a){this.footerBuilder=a},HA:function(){var b=this.FE();this.container=b;this.skin=this.IW();this.contentsContainer=PopIn2.Utils.createElement("div");b.appendChild(this.skin);b.appendChild(this.contentsContainer);this.IS();if(this.resizable&&this.contents.window_header){var a=this.IU();b.appendChild(a);this.JA(a)}return b},IS:function(){this.IT();if(this.draggable){this.IY(this.contents.window_header)}},IT:function(){PopIn2.$(this.contentsContainer).empty();var a=this.contentsContainer;PopIn2.$(a).css({width:"100%",height:"100%",position:"absolute","z-index":100});var d={window_header:this.headerBuilder,window_service:this.centerBuilder,window_footer:this.footerBuilder};this.contents={};for(var b in d){var f=a.appendChild(PopIn2.Utils.createElement("div"));PopIn2.$(f).css(this.rm.GT(b));var c=f.appendChild(d[b].JD());this.contents[b]=c}return a},IU:function(){var a=PopIn2.Utils.createElement("div");PopIn2.$(a).css(this.rm.GT("win_IZ")).css({position:"absolute",bottom:"5px",right:"6px",cursor:"se-IZ",margin:"0px","z-index":100}).bind("mousedown",{window:this},function(b,c){c.window.IZ(b);return false});return a},FE:function(){var a=PopIn2.Utils.createElement("div");a.id="popIn_window"+Math.random();PopIn2.$(a).css({"z-index":PopIn2.Utils.zIndexAZ,margin:"0px",padding:"0px",width:this.width+"px",height:this.height+"px",position:this.type==this.TYPE_POPIN?"relative":"absolute",left:"0px",top:"0px"});return a},IV:function(){var d=["_top","_center","_bottom","_left","","_right"];for(var b=0;b<9;b++){var a=this.cellDivs[b];var c=this.rm.GT(this.type+d[(b-b%3)/3]+d[b%3+3]);PopIn2.$(a).css(c);if(b%6!=0&&b%6!=2){PopIn2.$(a.parentNode).css({width:c.width,height:c.height})}}},IW:function(){var g=PopIn2.Utils.createElement("div");var a=this.height+14;if(PopIn2.$F.isIE&&PopIn2.$F.boxModel||window.opera){a-=55}PopIn2.$(g).css({width:this.width+14+"px",height:a+"px",position:"absolute",left:"-7px",top:"-7px"});var f=PopIn2.Utils.tableBuilder(document,3);this.cellDivs=[];for(var c=0;c<9;c++){var b=PopIn2.Utils.createElement("div");this.cellDivs.push(b);f.IK(b)}this.IV();var d=f.IL();PopIn2.$(d).css({width:"100%",height:"100%",background:"transparent"});g.appendChild(d);return g},IX:function(a){},IY:function(a){var c=this;var b=PopIn2.$F.draggable({elements:[this.container],handler:a,EC:function(f){if(c.type==c.TYPE_POPIN){var d=c.container.parentNode;c.DE(new PopIn2.L(document.body));while(d.parentNode&&d.parentNode.id.indexOf("popIn")==0){d=d.parentNode}PopIn2.$(d).remove();PopIn2.$(c.container).css({position:"absolute"});c.IM(c.TYPE_POPUP);c.IV()}if(!PopIn2.$F.isIE){PopIn2.$(c.container).css({opacity:0.35})}PopIn2.$("iframe",c.container).css("visibility","hidden")},end:function(d){if(!PopIn2.$F.isIE){PopIn2.$(c.container).css({opacity:1})}PopIn2.$("iframe",c.container).css("visibility","visible")}})},IZ:function(a){this.resizableController.ready(a)},JA:function(a){var c=this;var b=PopIn2.$F.resizable({elements:[this.container,this.skin],handler:a,restrictedMin:true,minWidth:300,minHeight:300,EC:function(d){PopIn2.$("iframe",c.container).css("visibility","hidden")},end:function(d){PopIn2.$("iframe",c.container).css("visibility","visible")}});this.resizableController=b}}).extend(new PopIn2.D());new PopIn2.Class("BA",{BR:function(){this.openAZs=[]},JB:function(d){var b=d.service;var c=new PopIn2.AZ();c.setWidth(b.HZ());c.setHeight(b.IA());c.IM(b.IB());c.IN(b.IC());c.IO(b.ID());c.IP(new PopIn2.BC(c,b));c.IQ(new PopIn2.BD(b));c.IR(new PopIn2.BB(c,this));if(d.domAppender){c.show(d.domAppender)}else{var a=new PopIn2.G();a.pos.left=(PopIn2.Utils.CNWidth()-c.width)/2;a.pos.top=(PopIn2.Utils.CNHeight()-c.height)/2+PopIn2.Utils.pageScrollTop();c.IM(PopIn2.AZ.prototype.TYPE_POPUP);c.show(a)}this.openAZs.push(c)},JC:function(b){var c=b.service;var a=this.openAZs[this.openAZs.length-1];a.IP(new PopIn2.BC(a,c));a.IQ(new PopIn2.BD(c));a.IR(new PopIn2.BB(a,this));a.IS()},DG:function(b){if(this.openAZs.length>0){var a=this.openAZs[this.openAZs.length-1];this.openAZs.splice(this.openAZs.length-1,1);a.DG()}}});new PopIn2.Class("BB",{BR:function(a,b){this.window=a;this.JJ=b},JD:function(){var c=document.createElement("div");var a=this;PopIn2.$(c).css({height:"19px","padding-left":"10px"});var b=document.createElement("div");PopIn2.$(b).css(this.window.rm.GT("rainbowFIo")).css({cursor:"pointer",margin:"0 auto"}).bind("mouseover",function(){PopIn2.$(this).css(a.window.rm.GT("rainbowFIo_over")).css({cursor:"pointer"})}).bind("mouseleave",function(){PopIn2.$(this).css(a.window.rm.GT("rainbowFIo")).css({cursor:"pointer"})}).bind("click",function(d){a.JE(d)});c.appendChild(b);return c},JE:function(b){var a=new PopIn2.Event(b);a.service=PopIn2.BN.about;a.domAppender=new PopIn2.J();this.JJ.DG();this.JJ.JB(a);this.DG()}});new PopIn2.Class("BC",{BR:function(b,a){this.window=b;this.service=a},JD:function(){var c=PopIn2.Utils.createElement("div");var a=this;PopIn2.$(c).css({position:"relative",height:"20px"});var g=PopIn2.Utils.createElement("div");PopIn2.$(g).css({"text-align":"center",color:"#444444","font-size":"12px","line-height":"20px",cursor:this.window.draggable?"move":"auto"});g.innerHTML=PopIn2.Utils.createShortSum(this.service.HY(),40);c.appendChild(g);var f=c.appendChild(PopIn2.Utils.createElement("div"));PopIn2.$(f).css({position:"absolute",right:"0px",top:"0px",cursor:"auto",width:"40px",height:"20px"});var d=this.service.IE();if(d&&d.length>0){var h=PopIn2.Utils.createElement("div");PopIn2.$(h).css({cursor:"pointer",position:"absolute",left:"5px",top:"5px"}).css(this.window.rm.GT("open_new")).bind("click",function(){PopIn2.Utils.openNewTab(d);a.window.DG()}).bind("mousedown",function(j){!PopIn2.$F.isIE?j.stopPropagation():j.JPBubble=true}).bind("mouseenter",function(j){PopIn2.$(this).css(a.window.rm.GT("open_new_over"))}).bind("mouseleave",function(j){PopIn2.$(this).css(a.window.rm.GT("open_new"))});f.appendChild(h)}var b=PopIn2.Utils.createElement("div");PopIn2.$(b).css({cursor:"pointer",position:"absolute",right:"5px",top:"5px"}).css(this.window.rm.GT("DG_btn")).bind("click",{window:this.window},function(){a.window.DG()}).bind("mousedown",function(j){!PopIn2.$F.isIE?j.stopPropagation():j.JPBubble=true}).bind("mouseenter",function(j){PopIn2.$(this).css(a.window.rm.GT("DG_btn_over"))}).bind("mouseleave",function(j){PopIn2.$(this).css(a.window.rm.GT("DG_btn"))});f.appendChild(b);return c}});new PopIn2.Class("BD",{BR:function(a){this.service=a},IB:function(){return PopIn2.AZ.prototype.TYPE_POPIN},JD:function(){return this.service.IF()}});new PopIn2.StaticClass("BP",{BR:function(){},JF:function(c){var d=[];for(;c.nodeType==1;c=c.parentNode){if(c.id){d.push(c.tagName.toLowerCase()+'[@id="'+c.id+'"]');break}else{var b=0;for(var a=c;a;a=a.previousSibling){if(a.tagName==c.tagName){b++}}d.push(c.tagName.toLowerCase()+"["+b+"]")}}return"//"+d.reverse().join("/")}});if(PopIn2.BG.DC("popIn_disabled")==1){throw"PopIn2 is disabled"}new PopIn2.StaticClass("BQ",{BR:function(){if(PopIn2.$F.validDocType&&!PopIn2.$F.isIE6){this.EC()}},EC:function(){var a=this;var d="readyState" in document?document.readyState:null;if(d){if(d=="complete"||d=="loaded"){this.JG()}else{if(document.addEventListener){PopIn2.$(document).bind("DOMContentLoaded",function(){a.JG()})}else{PopIn2.$(document).bind("readystatechange",function(){if(document.readyState=="complete"){a.EC()}})}}}else{if(document.addEventListener){var b=document.createElement("script");b.src="data:text/javascript,void 0";b.charset="UTF-8";b.onload=function(){setTimeout(function(){a.JG()},100);b.parentNode.removeChild(b)};document.documentElement.appendChild(b)}else{if(window.onload!=null){var c=window.onload;window.onload=function(f){c(f);a.JG()}}else{window.onload=a.JG}}}},JG:function(){var b=PopIn2.Application.DA();var a=["main","rainbow"];for(var d=0;d<a.length;d++){var c=a[d];c=c.charAt(0).toUpperCase()+c.slice(1);new PopIn2[c+"Application"]().CC(b)}}})}catch(e){};
