YAHOO=(typeof YAHOO==="undefined")?{}:YAHOO;YAHOO.JP=(typeof YAHOO.JP==="undefined")?{}:YAHOO.JP;YAHOO.JP.msthd=(typeof YAHOO.JP.msthd==="undefined")?{}:YAHOO.JP.msthd;(function(){var x=document,t=0,y="http-equiv",z=true,n=x.getElementsByTagName("meta"),f="msthd",c,v;function s(i,d){i=i.replace(/[\[\]]/g,"\\$&");var B=new RegExp("[?&]"+i+"(=([^]*)|&|#|$)"),A=B.exec(d);if(!A){return null}if(!A[2]){return""}return decodeURIComponent(A[2].replace(/\+/g," "))}if(z){if(x.getElementById("msthdLoginName")!==null){var l=x.getElementById("msthdLoginName").href;c=s(".src",l);v=s(".done",l)}}if(navigator.userAgent.match(/MSIE 6/)||navigator.userAgent.match(/MSIE 7/)){y="httpEquiv"}else{if(navigator.userAgent.match(/MSIE 8/)||navigator.userAgent.match(/MSIE 9/)){}}for(t=0;t-1&&i.indexOf("opera")===-1)&&(d.indexOf("msie 6.")>-1||d.indexOf("msie 7.")>-1||d.indexOf("msie 8.")>-1||d.indexOf("msie 9.")>-1)){return true}else{return false}}function b(i,d){return(i-d)/86400000}YAHOO.JP.msthd.Promo=(function(){var d,A,i=0,D=null,B=x.getElementById(f+"LoginName")===null?0:1,C=0;isGoogleBot=/googlebot/.test(navigator.userAgent.toLowerCase());return{init:function(){d=this,g({label:"alluser"});if(typeof YAHOO.JP.mempf.mhd!=="undefined"){YAHOO.JP.mempf.mhd.init("mhd_premium_pc,mhd_uhd_pc,mhd_text_pc");D=window.setTimeout(function(){if(!YAHOO.JP.mempf.mhd.complete&&!B){return}},3000);k(document.body,"yjmempfMhdInitialized",function(){if(YAHOO.JP.mempf.mhd.complete){window.clearTimeout(D);var E=/chiebukuro\.yahoo\.co\.jp/.test(document.domain);if(E){if(x.getElementById(f+"UhdPrLink")){x.getElementById(f+"UhdPrLink").classList.remove("rapid-noclick-resp")}}}},false)}k(x.body,"successuseratr",function(){if(i){return false}x.getElementById("msthdLoginUser").setAttribute("class","msthdNameView");d.showDefault();i=1},false);k(x.body,"faileduseratr",function(){d.showDefault()},false);if(B&&!p()&&!isGoogleBot){d.getUserAttribute()}else{d.showDefault()}},showDefault:function(){x.getElementById("mhd_text_pc").style.display="inline-block";x.getElementById("mhd_uhd_pc").style.display="inline-block";if(B){x.getElementById("msthdLoginUser").setAttribute("class","msthdNameView");x.getElementById("msthdUserIconImg").style.display="inline";x.getElementById("msthdPoint").style.display="inline-block"}},getUserAttribute:function(){var J=w(),G,E,F=new Date(),I=F.getTime(),H=1;J.onreadystatechange=function(){if(J.readyState===4){if(J.status===200){var K;if(typeof JSON!=="undefined"){G=J.responseText.replace(//,"");G=JSON.parse(G);K={dnm:G.name,login:G.login,dnmicn:{url64:G.icon_url.icon_url_64},tp:G.tpoint,pd:G.tpoint_expire}}if(G.type==="MIS-W0001"){B=0;x.getElementsByClassName("msthdtxt")[0].innerHTML=""+decodeURI("ID%E3%81%A7%E3%82%82%E3%81%A3%E3%81%A8%E4%BE%BF%E5%88%A9%E3%81%AB")+''+decodeURI("%E6%96%B0%E8%A6%8F%E5%8F%96%E5%BE%97")+'
'+decodeURI("%E3%83%AD%E3%82%B0%E3%82%A4%E3%83%B3")+'
';E="faileduseratr"}else{d.insertDisplayName(K);d.insertPoint(K);useratr={uhd:"default",txt:"default"};E="successuseratr"}m(x.body,E)}else{if(J.status===401){x.getElementsByClassName("msthdtxt")[0].innerHTML=""+decodeURI("ID%E3%81%A7%E3%82%82%E3%81%A3%E3%81%A8%E4%BE%BF%E5%88%A9%E3%81%AB")+''+decodeURI("%E6%96%B0%E8%A6%8F%E5%8F%96%E5%BE%97")+'
'+decodeURI("%E3%83%AD%E3%82%B0%E3%82%A4%E3%83%B3")+'
';B=0;m(x.body,"faileduseratr")}else{if(J.status!==0&&C"+decodeURI("ID%E3%81%A7%E3%82%82%E3%81%A3%E3%81%A8%E4%BE%BF%E5%88%A9%E3%81%AB")+''+decodeURI("%E6%96%B0%E8%A6%8F%E5%8F%96%E5%BE%97")+'
'+decodeURI("%E3%83%AD%E3%82%B0%E3%82%A4%E3%83%B3")+'
';m(x.body,"faileduseratr")}}}}};J.open("GET","https://mhd.yahoo.co.jp/v1/mhdinfo?v=1&date="+I);J.withCredentials=true;J.setRequestHeader("Content-Type","text/plain");if(J.timeout!==undefined){J.ontimeout=function(){J.abort()};J.timeout=5000}J.send(null)},parseStringToDate:function(H){if(!H||H.length<8){return null}var F=H.slice(0,4),G=Number(H.slice(4,6))-1,E=H.slice(6,8);return new Date(F,G,E)},insertPoint:function(J){const F=new Date(Date.now()+((new Date().getTimezoneOffset()+(9*60))*60*1000));const K=F.getFullYear();const G=F.getMonth()+1;const I=G<10?"0"+G:G;const M=F.getDate()<10?"0"+F.getDate():F.getDate();const H=""+K+I+M;var L=d.parseStringToDate(J.pd),O=d.parseStringToDate(H),E=(L&&O)?b(L,O):null;if(x.getElementById("msthdPointArea")){if("tp" in J){var N=J.tp!==""?parseInt(J.tp,10):"-";x.getElementById(f+"PointNum").innerHTML=N+decodeURI("%E3%83%9D%E3%82%A4%E3%83%B3%E3%83%88")}if((/msie ([67])\./).test(navigator.userAgent.toLowerCase())){x.getElementById("msthdPoint").style.display="inline"}else{x.getElementById("msthdPoint").style.display="inline-block"}}if((E!==null)&&(E<=7)&&(E>=0)){d.insertPointLapse(E)}},insertPointLapse:function(E){var G=x.getElementById(f+"PointTxt"),F=(E===0)?decodeURI("%E6%9C%AC%E6%97%A5%E4%B8%AD%E3%81%AB%E5%A4%B1%E5%8A%B9%E3%81%99%E3%82%8B%E3%83%9D%E3%82%A4%E3%83%B3%E3%83%88%E3%81%82%E3%82%8A"):decodeURI("%E3%81%82%E3%81%A8")+E+decodeURI("%E6%97%A5%E3%81%A7%E5%A4%B1%E5%8A%B9%E3%81%99%E3%82%8B%E3%83%9D%E3%82%A4%E3%83%B3%E3%83%88%E3%81%82%E3%82%8A");G.innerHTML=F;g({label:"imp_pointlps"})},insertDisplayName:function(E){if(E.dnm){x.getElementById("msthdLoginName").innerHTML=E.dnm}else{if(E.login){x.getElementById("msthdLoginName").innerHTML=E.login}}if(E.dnmicn&&!(typeof E.dnmicn.url64==="undefined")){if(E.dnmicn.url64!==""){x.getElementById("msthdUserIconImg").src=E.dnmicn.url64}x.getElementById("msthdUserIconImg").style.display="inline"}}}}());window.msthdPromo()})();