/**
 * core.js
 * minification version
 *
 * version:1.1.0
 * $Date:2009-9-29
 */

/*@cc_on _d=document;eval('var document=_d')@*/
var jsSetupPackage=function(E){var B=E.split(".");var F=window;for(var D=0,A=B.length;D<A;D++){var C=B[D];if(typeof (F[C])=="undefined"){F[C]={}}F=F[C]}return F};var Xua=(function(){var A=navigator.userAgent.toLowerCase();return{version:(A.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[])[1],safari:/webkit/.test(A),opera:/opera/.test(A),msie:/msie/.test(A)&&!/opera/.test(A),mozilla:/mozilla/.test(A)&&!/(compatible|webkit)/.test(A),win:/windows/.test(A),mac:/macintosh/.test(A)}})();var addEvent=function(C,B,A){if("function"!=typeof A){return false}if(B=="domReady"){addDomReadyEventListener(A);return false}if(C.attachEvent){C["e"+B+A]=A;C[B+A]=function(){C["e"+B+A](window.event)};C.attachEvent("on"+B,C[B+A])}else{C.addEventListener(B,A,false)}};var removeEvent=function(C,B,A){if(C.detachEvent){C.detachEvent("on"+B,C[B+A]);C[B+A]=null}else{C.removeEventListener(B,A,false)}};var onDomReady,onLoadAll;var addDomReadyEventListener=(function(){var load_events=[],load_timer,script,done,exec,old_onload,init=function(){done=true;clearInterval(load_timer);while(exec=load_events.shift()){exec()}if(script){script.onreadystatechange=""}};return function(func){if(done){return func()}if(!load_events[0]){if(document.addEventListener){document.addEventListener("DOMContentLoaded",init,false);}/*@cc_on @*//*@if (@_win32)document.write("<script id=__ie_onload defer src=//0><\/scr"+"ipt>");script = document.getElementById("__ie_onload");script.onreadystatechange = function(){if (this.readyState == "complete")init();};/*@end @*/if(/WebKit/i.test(navigator.userAgent)){load_timer=setInterval(function(){if(/loaded|complete/.test(document.readyState)){init()}},10)}old_onload=window.onload;window.onload=function(){init();if(old_onload){old_onload()}}}load_events.push(func)}})();jsSetupPackage("jp.co.mutow");jp.co.mutow.commonSystem=function(B){var A=this;return function(){return B.apply(A,arguments)}};jp.co.mutow.commonSystem.prototype={cookieWindow:function(D,A,C){this.setCookie("checkCookie","true");if(this.getCookie("checkCookie")=="true"){var B=window.open(D,A,C);B.focus()}else{alert("Cookieの設定を「使用する」に変更してください。")}},setCookie:function(B,C){var A=B+"="+escape(C)+";path=/;";document.cookie=A},getCookie:function(B,F,D,G,E,C){F=" "+document.cookie+";";G=E=0;var A=F.length;while(G<A){E=F.indexOf(";",G);D=F.substring(G+1,E);C=D.indexOf("=");if(D.substring(0,C)==B){return(unescape(D.substring(C+1,E-G-1)))}G=E+1}return("")}};var addFavorite=new jp.co.mutow.commonSystem(function(E,J,A,K,D,C,I){var I=I||location.href,C=C||"xxxxxx",H="http://www.scroll-shop.com/plaza/apl/SV?md=jump&dst=checklistentry&rtnURL="+encodeURIComponent(I);H+="&hinCD="+E+"&ctgryCD="+C+"&siteCD="+A+"&limit="+K+"&entryFlg=2";H+=(D!="")?"&outletFlg=1":"&outletFlg=0";var G=(screen.width-300)/2;var F=(screen.height-150)/2;var B="width=300,height=150,scrollbars=0,resizable=1,location=0,status=0,titlebar=0,top="+G+",left="+F;this.cookieWindow(H,"checklistentry",B)});var showFavorite=new jp.co.mutow.commonSystem(function(){var A=screen.width-250;var C="http://www.scroll-shop.com/plaza/apl/SV?md=jump&dst=checklist&rtnURL="+encodeURIComponent(location.href);var B="width=250,height=800,scrollbars=1,resizable=1,location=0,top=1,left="+A;this.cookieWindow(C,"checklist",B)});var showItemHistory=new jp.co.mutow.commonSystem(function(){var A=screen.width-250;var C="http://www.scroll-shop.com/plaza/apl/SV?md=jump&dst=readinglist";var B="width=250,height=800,scrollbars=1,resizable=1,location=0,top=1,left="+A;this.cookieWindow(C,"readinglist",B)});var checkListReLoad=function(A){if(A.checkListFlg=="true"){showItemHistory()}if(A.favoriteFlg=="true"){showFavorite()}};var addReadingHistory=function(D,G,E,B){var C="hinCD="+D+"&ctgryCD=xxxxxx&siteCD="+G+"&limit="+E;if(B=="1"){C=C+"&outletFlg="+B}var A="http://www.scroll-shop.com/plaza/apl/jsp/MACReadingHistry2.jsp?"+C;var F=document.createElement("script");F.setAttribute("type","text/javascript");F.setAttribute("src",A);document.getElementsByTagName("head").item(0).appendChild(F)};jp.co.mutow.trimHeight=function(){var t=this;this.cache={};this.addCSSRule=(/*@cc_on!@*/false)?(function(sheet){return function(selector,declaration){sheet.addRule(selector,declaration)}})(document.createStyleSheet()):(function(sheet){return function(selector,declaration){sheet.insertRule(selector+"{"+declaration+"}",sheet.cssRules.length)}})((function(e){e.appendChild(document.createTextNode(""));(document.getElementsByTagName("head")[0]||(function(h){document.documentElement.insertBefore(h,this.firstChild);return h})(document.createElement("head"))).appendChild(e);return e.sheet})(document.createElement("style")));return function(){return t.update.apply(t,arguments)}};jp.co.mutow.trimHeight.prototype={update:function(A,G,C,E){if(!A||!G||!document.getElementById(A)){return false}var C=C||"div",E=E||"X_ITEM_CELL",B,D,F;if(this.cache[A+"class"]){this.resetClass(A,this.cache[A+"class"])}B=this.cache[A]||this.getItems(A,C,E);D=this.getHeight(B);F=this.cache[A+"pad"]||this.getPad(A,B[0]);if(!this.cache[A+"class"]){this.setClass(A,B,G)}this.setRule(A,G,D.h,F)},getItems:function(B,F,H){var G=document.getElementById(B),E=G.getElementsByTagName(F),C=[];for(var D=0,A=E.length;D<A;D++){if(H==E[D].className){C[C.length]=E[D]}}return this.cache[B]=C},getHeight:function(C){for(var E=0,A=C.length,F=[],D=0;E<A;E++){var B=parseInt(C[E].offsetHeight);F[F.length]=B;if(D<B){D=B}}return{h:F,maxh:D}},getPad:function(B,F){if(Xua.msie&&(document.compatMode!="CSS1Compat"||Xua.version<6)){return this.cache[B+"pad"]=0}var G=0,C,E=["paddingTop","paddingBottom","borderTopWidth","borderBottomWidth"];(F.currentStyle)?C=F.currentStyle:C=document.defaultView.getComputedStyle(F,"");for(var D=0,A=E.length;D<A;D++){G+=parseInt(C[E[D]].replace("px",""))}return this.cache[B+"pad"]=G},setClass:function(I,H,J){var E=0,L,K=[],G=(Xua.msie&&Xua.version<8)?"className":"class";for(var B=0,F=H.length;B<F;B++){var A=H[B].getAttribute(G),D=A.split(" "),C="X_TRIM_CLASS"+E;if(L!=C){L=C;K[K.length]=L}D[D.length]=C;H[B].setAttribute(G,D.join(" "));if(B%J==(J-1)){E++}}this.cache[I+"class"]=K},resetClass:function(B,D){for(var C=0,A=D.length;C<A;C++){this.addCSSRule("#"+B+" ."+D[C],"height:auto;")}},setRule:function(E,G,F,A){var I=[];var D=Math.ceil(F.length/G);var J=function(L,K){return L-K};for(var B=0;B<D;B++){I[I.length]=F.slice(B*G,B*G+G)}for(var B=0,C=I.length;B<C;B++){var H=I[B].sort(J).pop();this.addCSSRule("#"+E+" .X_TRIM_CLASS"+B,"height:"+(H-A)+"px;")}}};jp.co.mutow.imgSwap=function(){var A=this;return function(){return A.init.apply(A,arguments)}};jp.co.mutow.imgSwap.prototype={init:function(C,E,F){if(!C){return false}var E=E||"swap",F=F||"-o",H=document.getElementsByTagName(C),B=new Array();for(var D=0,A=H.length;D<A;D++){if(H[D].className==E){B[D]=new Image();var G=H[D].originalImg=H[D].getAttribute("src");B[D].src=H[D].hoverImg=G.replace(/^(.+)(\.[a-z]+)$/,"$1-o$2");B[D].elm=H[D];B[D].onload=function(){this.elm.onmouseover=function(){this.setAttribute("src",this.hoverImg)};this.elm.onmouseout=function(){this.setAttribute("src",this.originalImg)}}}}}};jp.co.mutow.scroller=function(){this.init.apply(this,arguments)};jp.co.mutow.scroller.prototype={init:function(B,F){this.speed=(F<=1)?1.5:F||1.5;var B=B||"#header",C=this,G=document.getElementsByTagName("A");for(var D=0,A=G.length;D<A;D++){var E=(Xua.msie)?G[D].getAttribute("href",2):G[D].getAttribute("href");if(E&&E.indexOf(B)>-1){G[D].onclick=function(){C.scrlTo();return false}}}},scrlTo:function(){var A=this,B=y2=y3=0;if(document.documentElement){B=document.documentElement.scrollTop||0}if(document.body){y2=document.body.scrollTop||0}y3=window.scrollY||0;var C=Math.max(B,Math.max(y2,y3));window.scrollTo(0,Math.floor(C/this.speed));if(C>0){window.setTimeout(function(){A.scrlTo()},30)}}};