/**
 * @(#)Rtoaster.js
 * Copyright (c) 2006-2010 BrainPad, Inc. All right reserved.
 * @version 1.6.8
 * @see <a href="http://www.rtoaster.jp/">Rtoaster web site</a>
 */
var Rtoaster={host:"reco.cecile.co.jp",path:"/",timeout:2500,C:"_rt.",F:"_rt.cf",M:"CustNo;vid",R:"_rt.sid",_B:function(v){return!v||v.length===0||v==="null"||v==="undefined"},_D:function(v){if(Rtoaster._B(v)){return""}return(typeof(decodeURIComponent)==="function"?decodeURIComponent:unescape)(v)},_E:function(v){if(Rtoaster._B(v)){return""}return(typeof(encodeURIComponent)==="function"?encodeURIComponent:escape)(v)}};Rtoaster.Cookie=(function(){var D=document,S=Rtoaster,T={},_B=S._B,_E=S._E;T.get=function(k){var a=D.cookie.split("; "),m=_E(k)+"=";for(var i=0,n=a.length;i<n;i++){var c=a[i];if(c.indexOf(m)===0){return S._D(c.substring(m.length))}}return""};T.set=function(p){p=p||{};if(!_B(p.key)){var c=[_E(p.key),"="];if(!_B(p.value)){c[c.length]=_E(p.value)}if(!_B(p.domain)){c[c.length]="; domain=";c[c.length]=p.domain}if(!_B(p.path)){c[c.length]="; path=";c[c.length]=p.path}if(!_B(p.expires)){c[c.length]="; expires=";c[c.length]=p.expires}p.secure=p.secure||false;if(p.secure){c[c.length]="; secure"}D.cookie=c.join("")}};T.remove=function(p){p=p||{};p.expires="Thu, 01-Jan-1970 00:00:00 GMT";T.set(p)};return T})();(function(){var D=document,E=[],H=[],S=Rtoaster,T={},U=/*@cc_on!@*/0?!D.documentMode?2048:4096:8192,W=window,_B=S._B,_C=function(){if(T.X){clearTimeout(T.X);T.X=null}},_E=S._E,_F=function(e){for(var i=0,n=E.length;i<n;i++){var o=E[i];if(o.E===e){return o}}return null},_G=S.Cookie.get,_I=setTimeout,_L=function(p,q){var c=D.charset||"UTF-8",u=location.protocol+"//"+S.host+p+q+"&c="+c;if(u.length<=U){try{var e=D.createElement("script");e.type="text/javascript";e.charset=c;e.src=u;e.async=true;D.getElementsByTagName("head")[0].appendChild(e);return true}catch(x){}}return false},_M=function(){var m=S.M.split(";");for(var i=0,n=m.length;i<n;i++){var v=_G(m[i]);if(!_B(v)){return v}}return""},_O=function(t,e,c){if(t.addEventListener){t.addEventListener(e,c,false)}else if(t.attachEvent){if(!T.O){T.O=[];_O(window,"unload",function(){var l=T.O;for(var i=l.length-1;i>=0;i--){var f=l[i],o=f[0];try{o.detachEvent(f[1],f[2])}catch(e){}f[0]=f[2]=null}T.O=null})}e="on"+e;t.attachEvent(e,c);T.O[T.O.length]=[t,e,c]}},_R=function(a,b){if(T.F===1){T.F=2;for(var i=0,n=a.length;i<n;i++){var e=a[i];if(!_B(e)&&!_F(e)){E[E.length]={"E":e}}}if(E.length>0){var c=0,x=function(){if(T.F===2){if(!T.E){var e=[];for(var i=0,n=E.length;i<n;i++){var o=E[i];if(D.getElementById(o.E)){e[e.length]=o.E}}if(e.length===0){return}T.E=_E(e.join(","))}T.F=3;var d=_B(T.M),p=[],l=0;if(!d){if(!_B(T.C)){p[l++]="category="+T.C}if(!_B(T.P)){p[l++]=T.P}T.X=_I(function(){S.flush()},S.timeout)}if(d||!_L(S.path,"?a="+T.A+"&l="+T.L+"&e="+T.E+"&m="+T.M+"&p="+_E(p.join("\n"))+"&i="+T.I)){S.flush()}}};if(b){x()}if(T.F===2){if(D.addEventListener){if(/webkit/i.test(navigator.userAgent)){_I(function(){var r=D.readyState;if(r==="loaded"||r==="complete"){x()}else{_I(arguments.callee,10)}},10)}else{D.addEventListener("DOMContentLoaded",function(){D.removeEventListener("DOMContentLoaded",arguments.callee,false);x()},false)}}else if(D.attachEvent){D.attachEvent("onreadystatechange",function(){if(D.readyState==="complete"){D.detachEvent("onreadystatechange",arguments.callee);x()}});var d=D.documentElement;if(d.doScroll&&W==W.top){(function(){try{d.doScroll("left");x()}catch(e){_I(arguments.callee,0)}})()}}_O(W,"load",x)}}}},_S=S.Cookie.set,_T=function(k){if(!_B(_G(k))){S.Cookie.remove({"key":k,"domain":T.R,"path":"/"})}},_U=function(v){if(!_B(v)){_S({"key":S.R,"value":v,"domain":T.R,"path":"/"});if(_B(_G(S.F))){_S({"key":S.F,"value":T.I,"domain":T.R,"path":"/"})}}},_X=function(t,c){if(_B(c)){return true}var e=function(s){if(_B(s)){return""}var o=[D.open,D.close,D.clear,D.write,D.writeln],w=[],x=function(a){for(var i=0,n=a.length;i<n;i++){w[w.length]=a[i]}};D.open=D.close=D.clear=function(){};D.write=function(){x(arguments)};D.writeln=function(){x(arguments);w[w.length]="\n"};try{eval(s)}catch(e){}D.open=o[0];D.close=o[1];D.clear=o[2];D.write=o[3];D.writeln=o[4];return w.join("")},g=function(u){var r;try{r=new XMLHttpRequest()}catch(x){try{r=new ActiveXObject("Msxml2.XMLHTTP")}catch(y){try{r=new ActiveXObject("Microsoft.XMLHTTP")}catch(z){r=false}}}if(!r){return null}r.open("GET",u,false);r.send(null);return r.responseText},w=function(c){return c==="\t"||c==="\n"||c==="\f"||c==="\r"||c===" "},i=0;while((i=c.indexOf("<",i))!==-1){var l=i+1,p=c.charAt(l),x=i,r;if(p==="!"||p==="/"){if(p==="!"&&c.charAt(++l)==="-"&&c.charAt(++l)==="-"){if(c.charAt(++l)===">"){i=l+1}else{r=c.indexOf("-->",l);if(r===-1){break}i=r+3}}else{r=c.indexOf(">",l);if(r===-1){break}i=r+1}continue}r=c.indexOf(">",l);if(r===-1){break}i=r+1;if(r-l<6||(!w(p=c.charAt(l+6))&&p!==">")||c.substring(l,l+6).toLowerCase()!=="script"){continue}var n=c.substring(l+6,r),s=null;l=0;while((l=n.indexOf("=",l))!==-1){p=n.charAt(++l);if((p==="\""||p==="'")&&(r=n.indexOf(p,++l))!==-1){if(w(n.charAt(l-6))&&n.substring(l-5,l-2).toLowerCase()==="src"){s=g(n.substring(l,r));break}l=r+1}}r=i;while((l=c.indexOf("</",r))!==-1&&(r=c.indexOf(">",l+2))!==-1){if(c.substring(l+2,r).toLowerCase()==="script"){break}r++}if(r===-1){break}var y=r+1;if(!s){var j=l;r=c.indexOf("<!",i);if(r===-1||r>j){l=i;r=j}else{l=r+1;while(c.charAt(++l)==="-"){}r=c.lastIndexOf(">",j);if(r===-1||l>r){break}while(c.charAt(--r)==="-"){}r++}s=c.substring(l,r)}c=c.substring(0,x)+e(s)+c.substring(y);i=x}if(!_B(c)){try{t.innerHTML=c;return true}catch(z){}}return false};S.init=function(a,m){if(_B(m)){m=_M()}T.A=_E(a);T.F=1;T.I=Math.random();T.L=_E(location);T.M=_E(m);T.C=T.P=""};S.hide=function(){if(T.F<3){var e,h=H.length,i="rt:c"+h,p;D.write("<span id=\""+i+"\" style=\"display: none;\"></span>");if((e=D.getElementById(i))&&(p=e.parentNode)){var t=p.style;H[h]={"E":i,"P":p.id,"V":t.visibility};t.visibility="hidden";if(h===0){_O(W,"load",function(){if(!T.F||T.F<2){S.flush()}})}}}};S.item=function(p){if(p){if(typeof(p)==="string"){T.P="item_code="+p}else{var a=[],l=0;for(var k in p){a[l++]=k+"="+p[k]}T.P=a.join("\n")}}};S.category=function(p){T.C=p};S.recommend=function(){_R(arguments,false)};S.recommendNow=function(){_R(arguments,true)};S.click=function(e){if(!_B(e)){var o=_F(e);if(o&&o.T){_U(o.S);return true}}return false};S.show=function(p){_C();if(T.F===3&&p&&!_B(p.element)){var o=_F(p.element),t=D.getElementById(p.element);if(!o){o={"E":p.element};E[E.length]=o}if(!T.R){T.R=p.domain;_O(W,"unload",function(){_T(S.F);_T(S.R)})}o.S=p.sid;o.T=p.event;if(t&&_X(t,p.content)&&o.T){var f=function(e){e=e||W.event;if(!e){return}switch(e.type){case"keydown":if(e.keyCode!=13){return}case"click":_U(o.S);break}};_O(t,"click",f);_O(t,"keydown",f)}}};S.flush=function(t){if(T.F!==4){var e;if(t){if((e=D.getElementById(t))){e.style.display="block"}}else{T.F=4;for(var i=0,n=H.length;i<n;i++){var o=H[i],c=D.getElementById(o.E);if(c&&(e=c.parentNode)){e.removeChild(c);e.style.visibility=o.V}else if(o.P&&(e=D.getElementById(o.P))){e.style.visibility=o.V}}H=[]}}}})();
