function cafeHeader(){var B='<div id="cafeHeaderArea"><div id="searchBox">';B+=searchBox(true)+"</div>";var A=decodeURIComponent(getCookie("INFODATE"));var C="&nbsp;&nbsp;&nbsp;&nbsp;";B+='<a href="/cafe/"><div id="cafeLogo" ';B+="onmouseover=\"$('homeGuide').style.display = 'block';\" ";B+="onmouseout=\"$('homeGuide').style.display = 'none';\">";B+='<div id="homeGuide">ホーム</div></div></a>';B+="</div>";B+='<div id="cafeHeaderMenu">';B+='<table border="0" cellpadding="0" cellspacing="0" width="990"><tr valign="middle">';B+='<td width="10">&nbsp;</td>';B+='<td width="550" valign="top"><a href="/cafe/">ホーム</a>';B+=C+'<a href="/cafe/myshelf.html">マイ棚</a>';B+=C+'<a href="/cafe/news/">カフェニュース</a>';B+=C+'<a href="/cafe/partners/">パートナー</a>';B+=C+'<a href="/cafe/nexts/">ツギドレ</a>';B+=C+'<a href="/cafe/games/memory.html">ゲーム</a>';B+=C+"<a href=\"javascript:void(0);\" onclick=\"window.open('/cafe/radio/', 'bossaradio', 'width=245,height=450,toolbar=0,location=0,status=0,menubar=0,scrollbars=0');\">ラジオ</a>";B+='</td><td width="400" align="right"><a href="/cafe/info/">お知らせ ['+A+"]</a>";B+=C+'<a href="/cafe/help.html">ヘルプ</a>';B+=C+'<a href="';if(getCookie("SESSIONID")||getCookie("FASTPASS")){B+='javascript:logout();">ログアウト</a></td>'}else{B+='/cafe/login.html">ログイン</a></td>'}B+='<td width="10">&nbsp;</td>';B+="</tr></table></div>";$("cafeHeader").innerHTML=B}function showBody(){$("body").style.display="block"}var g_debugAjax=false;function ajaxResponseCafe(){if(g_httpRequest.readyState==4){if(g_httpRequest.status==200){if(g_debugAjax){alert(g_httpRequest.responseText)}var A=g_httpRequest.responseXML;var B=A.documentElement;if(B){var C=B.tagName}else{var C=""}if(C=="NonMember"){logout();location.href="/cafe/login.html?member"}else{if(C=="Cafe"){cafeResponse(B)}else{if(C.match(/^Myshelf/)){if(C.match("Edit")){myshelfEditResponse(B)}else{if(C.match("Batch")){myshelfBatchResponse(B)}else{myshelfResponse(B)}}}else{if(C.match(/^Login/)){loginResponse(B)}else{if(C.match(/^News/)){newsResponse(B)}else{if(C.match(/^Nexts/)){nextsResponse(B)}else{if(C.match(/^Review/)){reviewResponse(B)}else{if(C.match(/^Group/)){if(C=="Group"){groupHomeResponse(B)}else{if(C=="GroupShelf"){groupShelfResponse(B)}else{if(C.match(/^GroupRanking/)){groupRankingResponse(B)}else{if(C=="GroupSearch"){groupSearchResponse(B)}else{if(C.match(/^GroupSub/)){groupSubResponse(B)}else{if(C.match(/^GroupEdit/)){profileResponse(B)}else{groupResponse(B)}}}}}}}else{if(C.match(/^Note/)){if(C=="NoteHistory"){showNoteHistory(B)}else{noteResponse(B)}}else{if(C.match(/^Game/)){gameResponse(B)}else{if(C.match(/^Talk/)){talkResponse(B)}else{if(C.match(/^Similar/)){similarMyshelfResponse(B)}else{if(C.match(/^Recommend/)){recommendResponse(B)}else{if(C.match(/^Letter/)){letterResponse(B)}else{if(C.match(/^Friend/)){if(C=="FriendRequest"){location.href="/cafe/friends_wait.html?request"}else{friendResponse(B)}}else{if(C.match(/^Profile/)){profileResponse(B)}else{if(C.match(/^Partner/)){partnerResponse(B)}else{if(C.match(/^BP/)){bpResponse(B)}else{if(C=="Signup"){signupResponse(B)}else{if(C=="Invite"){inviteResponse(B)}else{}}}}}}}}}}}}}}}}}}}}}}}var g_id="";var g_mypage=false;function handleMypage(){var A=window.location.search;if(A){A=A.substring(1,A.length);queries=A.split("&");for(i=0;i<queries.length;i++){A=queries[i].split("id=")[1];if(A&&!isNaN(A)){g_id=encodeURIComponent(A);break}}for(i=0;i<queries.length;i++){A=queries[i].split("key=")[1];if(A){setCookie("FASTPASS",A);break}}}if(!g_id&&!getCookie("SESSIONID")&&!getCookie("FASTPASS")){window.location.href="/cafe/login.html"}}var g_gid="";var g_dvd=false;function handleGroupPage(){var A=document.location.search;if(A){queryDVD=A.substring(1,4);g_dvd=queryDVD=="DVD"?true:false;queries=A.split("&");for(i=0;i<queries.length;i++){A=queries[i].split("gid=")[1];if(A&&!isNaN(A)){g_gid=encodeURIComponent(A);break}}}}function memberOnly(){if(!getCookie("SESSIONID")){window.location.href="/cafe/login.html"}}window.document.onmousemove=updateInfo;var g_infoBoxNode;var g_infoBoxFlag=true;var g_titleBoxFlag=false;var g_infoBoxOffset=false;function updateInfo(B){if(!g_infoBoxFlag){return }if(!g_infoBoxNode){var C=$("infoBox");if(C){g_infoBoxNode=C}else{C=$("titleBox");if(C){g_infoBoxNode=C;g_titleBoxFlag=true}else{g_infoBoxNode=false;return }}}if(document.all){var A=event.clientX+document.documentElement.scrollLeft;var D=event.clientY+document.documentElement.scrollTop}else{var A=B.pageX;var D=B.pageY}if(g_titleBoxFlag){A+=-20;D+=40}else{A+=-10;D+=20}if(g_IE6){A-=130;D-=160}if(g_infoBoxOffset){A+=g_infoBoxOffset}g_infoBoxNode.style.left=A+"px";g_infoBoxNode.style.top=D+"px"}function showInfo(C,E,B,D){if(g_titleBoxFlag){if(!g_infoBoxNode){g_infoBoxNode=$("titleBox")}var A=E}else{if(!g_infoBoxNode){g_infoBoxNode=$("infoBox")}var A='<img src="'+C+'"><div>'+E+"</div>"}g_infoBoxOffset=D?D:false;g_infoBoxNode.innerHTML=A;g_infoBoxNode.style.display="block"}function hideInfo(){g_infoBoxNode.style.display="none"}function pageNavi(E,J,K,G,H,B,A,D){var M="/cafe/img/cafe/page/";var C=new Array("top","prev","next","last");var L=new Array(4);var F=new Array(4);for(i=0;i<C.length;i++){F[i]=new Image();F[i].src=M+C[0]+"_hover.png";L[i]='<img src="'+g(M+C[i]+".png")+'" ';if(i==1){L[i]+='style="margin-left: 7px;" '}else{if(i==2){L[i]+='style="margin-right: 7px;" '}}L[i]+="onmouseover=\"this.src = '"+g(M+C[i]+"_hover.png")+"'\" ";L[i]+="onmouseout=\"this.src = '"+g(M+C[i]+".png")+"'\">"}if(!A){A=" / ";D=""}var I='<div class="pageNavi">';I+='<table border="0" cellpadding="0" cellspacing="0"><tr valign="middle">';I+='<td class="pageNaviPrev">';if(E>1||E=="last"){I+='<a href="'+H+'page=1">'+L[0]+"</a>";I+='<a href="'+H+"page="+(E-1)+'">'+L[1]+"</a>"}I+='</td><td class="pageNaviInfo">';I+=J+" - "+K+A+G+D;I+='</td><td class="pageNaviNext">';if(K<G){I+='<a href="'+H+"page="+(E+1)+'">'+L[2]+"</a>";if(!B){I+='<a href="'+H+'page=last">'+L[3]+"</a>"}}I+="</td></tr></table></div>";return I}var g_bookIconS='<img src="'+g("/cafe/img/icons/book_icon_18.png")+'">';var g_dvdIconS='<img src="'+g("/cafe/img/icons/dvd_icon_18.png")+'">';var g_bookIcon='<img src="'+g("/cafe/img/icons/book_icon_25.png")+'">';var g_dvdIcon='<img src="'+g("/cafe/img/icons/dvd_icon_25.png")+'">';var g_bookIconL='<img src="'+g("/cafe/img/icons/book_icon_30.png")+'">';var g_dvdIconL='<img src="'+g("/cafe/img/icons/dvd_icon_30.png")+'">';var g_noimgS=g("/cafe/img/myshelf/noimg_small.jpg");var g_noimgSdvd=g("/cafe/img/myshelf/noimg_small_dvd.jpg");function loginResponse(B){var D=B.tagName.split("Login")[1];if(!D){handleLogin(B)}else{if(D=="Page"){displayLoginPage(B)}else{if(D=="HelpPassword"){var A=B.firstChild.nodeValue;if(A=="OK"){var C='<div style="margin: 30px; color: #555;">';C+="<h4>登録されたメールアドレスに仮パスワードを送りました</h4>";$("cafeMain").innerHTML=C}else{if(A=="Resent"){var C='<div style="margin: 30px; color: #555;">';C+="<h4>登録確認メールを再送しました</h4>";$("cafeMain").innerHTML=C}else{if(A=="Valid"){alert("すでに登録は完了しています")}else{if(A=="Email"){alert("入力されたメールアドレスは登録されていません")}}}}}else{if(D=="HelpValid"){var A=B.firstChild.nodeValue;if(A=="OK"){var C='<div style="margin: 30px; color: #555;">';C+="<h4>登録確認メールを再送しました</h4>";$("cafeMain").innerHTML=C}else{if(A=="Valid"){alert("すでに登録は完了しています")}else{if(A=="Email"){alert("入力されたメールアドレスは登録されていません")}}}}}}}}function loginPage(){var A="/cafe/php/login_page.php";var B=document.location.search;if(B.match("myshelf")){var C="ログイン、もしくはメンバー登録をしてください。<br><br>";$("loginAlert").innerHTML=C}else{if(B.match("member")){var C="ログイン、もしくはメンバー登録をしてください。<br><br>";$("loginAlert").innerHTML=C}}ajaxRequest("GET",A,"cafe")}function displayLoginPage(F){var K="";var M="";var J,C="";var D,A="";var E="",L;var I,H;var B=F.getElementsByTagName("Member");for(i=0;i<B.length;i++){J=B[i].getElementsByTagName("MemberID");if(J.length){C=J[0].firstChild.nodeValue}D=B[i].getElementsByTagName("Name");if(D.length){A=D[0].firstChild.nodeValue}var G=B[i].getElementsByTagName("GradeImage");if(G.length){L=G[0].firstChild.nodeValue;E='<img src="'+g(L)+'" ';E+='onmousedown="return false;" oncontextmenu="return false;">'}I=B[i].getElementsByTagName("MemberImage");if(I.length){H=I[0].firstChild.nodeValue;M='<a href="/cafe/?id='+C+'">';M+='<img src="'+H;M+='" onmousedown="return false;" oncontextmenu="return false;"></a>'}else{M=""}K+='<div class="loginMemberBox"'+(i<2?' style="border-top: 1px solid #ddd" ':" ");K+=ieHoverBox()+" onclick=\"jumpTo('/cafe/?id="+C+"');\">";K+='<div class="loginMemberImage">'+M+"</div>";K+='<table class="loginMemberName" border="0" cellpadding="0" cellspacing="0">';K+='<tr valign="middle"><td>'+E+"</td>";K+='<td><a href="/cafe/?id='+C+'">'+A+"&nbsp;&nbsp;</a></td></tr></table></div>"}$("loginMembersArea").innerHTML=K}function login(){var B=$("email").value;var A=$("password").value;if(B&&A){var D="/cafe/php/login.php";var C="";g_postMessage="email="+encodeURIComponent(B);g_postMessage+="&password="+encodeURIComponent(A);g_postMessage+=$("freePassFlag").checked?"&pass=1":"";ajaxRequest("POST",D,"cafe")}}function handleLogin(B){var E=B.getElementsByTagName("MemberID");if(E.length){var G=E[0].firstChild.nodeValue;location.href="/cafe/?id="+G}else{var C=$("loginAlert");var F=B.getElementsByTagName("Status");if(F.length){var A=F[0].firstChild.nodeValue;var D='<span style="color: #d00;">';if(A=="Password"){C.innerHTML=D+"パスワードが正しくありません</span><br><br>"}else{if(A=="Email"){C.innerHTML=D+"メールアドレスが正しくありません</span><br><br>"}else{if(A=="Invalid"){C.innerHTML=D+"登録確認メールのリンクよりログインしてください</span><br><br>"}else{}}}}}}function logout(){removeCookie("ID");removeCookie("FASTPASS");removeCookie("SESSIONID");window.location.href="/cafe/"}function renewPassword(){var A=$("email").value;if(A){var B="/cafe/php/password_renew.php";g_postMessage="email="+encodeURIComponent(A);ajaxRequest("POST",B,"cafe")}}function resendValidation(){var A=$("email2").value;if(A){var B="/cafe/php/resend_validation.php";g_postMessage="email="+encodeURIComponent(A);ajaxRequest("POST",B,"cafe")}}function cafe(){var A="/cafe/php/home2/cafe2.php?";A+=g_id?"id="+g_id:"";ajaxRequest("GET",A,"cafe")}function similarMyshelfRequest(){var A=$$("div.similarMember");var C='探し中　<img src="'+g("/cafe/img/cafe/similar_waiting.gif")+'">';for(i=0;i<A.length;i++){A[i].innerHTML=C}var B="/cafe/php/home2/cafe2.php?s=1";B+=g_id?"&id="+g_id:"";ajaxRequest("GET",B,"cafe")}function cafeResponse(A){if(A.firstChild.nodeName=="Similar"){displaySimilars(A)}else{displayCafeHome(A);var C='<div class="partHeaderHover"><h4>';var D='<div class="partHeaderHover"><h4>DVD';var B='マイ棚つながり</h4></div><div class="similarMember" style="padding: 6px; padding-left: 10px;"><img src="'+g("/cafe/img/cafe/find_similar.png")+'" onclick="similarMyshelfRequest();"></div>';$("similarArea").innerHTML=C+B;$("similarDVDArea").innerHTML=D+B;analyze()}}function displayCafeHome(C){if(C.getElementsByTagName("WD").length){$("cafeMainHome").innerHTML='<div id="noAccess">こちらのメンバーは退会しました</div>';$("cafeMainHome").style.display="block";return }if(C.getElementsByTagName("IV").length){$("cafeMainHome").innerHTML='<div id="noAccess">メンバーは登録されていません</div>';$("cafeMainHome").style.display="block";return }$("cafeMainHome").style.display="block";var A=C.getElementsByTagName("Mypage");if(A.length){g_mypage=true;displayInvitation();displayGroupSearch()}var B=C.getElementsByTagName("Profile");if(B.length){displayProfile(B[0])}else{logout()}displayMyshelf(false);displayMyshelf(true);var J=C.getElementsByTagName("Groups");if(J.length){displayGroups(J[0],false)}var E=C.getElementsByTagName("DVDGroups");if(E.length){displayGroups(E[0],true)}var L=C.getElementsByTagName("Friends");if(L.length){displayFriends(L[0])}var H=C.getElementsByTagName("Reviews");if(H.length){displayFriendReviews(H[0],false)}var D=C.getElementsByTagName("DVDReviews");if(D.length){displayFriendReviews(D[0],true)}if(g_noGroup){$("recommendBorder").style.display="none";$("talksBorder").style.display="none"}else{var G=C.getElementsByTagName("Recs");if(G.length){displayRecommendations(G[0],false)}var K=C.getElementsByTagName("DVDRecs");if(K.length){displayRecommendations(K[0],true)}var F=C.getElementsByTagName("Talks");if(F.length){displayTalks(F[0],false)}var I=C.getElementsByTagName("DVDTalks");if(I.length){displayTalks(I[0],true)}}}function displaySimilars(C){var B=C.getElementsByTagName("Similar");if(B.length){displaySimilarMyshelf(B[0],false)}var A=C.getElementsByTagName("SimilarDVD");if(A.length){displaySimilarMyshelf(A[0],true)}if(g_IE6){ieHoverCafe("partHeaderHover")}var D=new Array();D[0]=new Image();D[0].src=g("/cafe/img/cafe/part_header_hover.png")}function ieHoverCafe(B){var A=document.getElementsByClassName(B);if(A.length){for(i=0;i<A.length;i++){action="this.style.backgroundImage = 'url("+g("/cafe/img/cafe/part_header_hover.png")+")'; ";action+="this.style.cursor = 'pointer';";A[i].setAttribute("onmouseover",new Function(action));action="this.style.backgroundImage = 'url("+g("/cafe/img/cafe/part_header.png")+")';";A[i].setAttribute("onmouseout",new Function(action));action="if (this.firstChild.href) {location.href = this.firstChild.href}";A[i].setAttribute("onclick",new Function(action))}}}function ieHoverBox(){if(g_IE6){var A="onmouseover = \"this.style.backgroundColor = '#f9f9f4'; ";A+="this.style.cursor = 'pointer'; ieHoverA(this);\" ";A+="onmouseout = \"this.style.backgroundColor = '#fff'; ieHoverAOut(this);\""}else{var A=""}return A}function ieHoverA(B){var A=B.getElementsByTagName("A");for(i=0;i<A.length;i++){A[i].style.color="#e00"}}function ieHoverAOut(B){var A=B.getElementsByTagName("A");for(i=0;i<A.length;i++){A[i].style.color="#259"}}var g_books=0;var g_dvds=0;var g_booksPrivate=0;var g_dvdsPrivate=0;var g_comments=0;var g_dvdComments=0;var g_partner=false;var g_sponsor=false;function displayProfile(H){var a="";var Q=H.getElementsByTagName("ID");if(Q.length){g_id=Q[0].firstChild.nodeValue}var l=H.getElementsByTagName("T");if(l.length){var w=l[0].firstChild.nodeValue;if(w=="P"){g_partner=true}else{if(w=="S"){g_sponsor=true}}}var U=H.getElementsByTagName("GR");if(U.length){var e=U[0].firstChild.nodeValue;e="<span>（"+e+"）</span>"}var G=H.getElementsByTagName("GI");if(G.length){var m=G[0].firstChild.nodeValue;var A='<img src="'+g(m)+'" ';A+='onmousedown="return false;" oncontextmenu="return false;">'}var P=H.getElementsByTagName("N");if(P.length){var O=escapeHtml(P[0].firstChild.nodeValue);document.title+=" - "+O;if(g_mypage){a='<div id="partHeaderHome" class="partHeader" ';a+='style="border-bottom: 1px solid #ddd;">'}else{a='<div class="partHeader" style="border-bottom: 1px solid #ddd;">'}if(g_partner){a+="<h4>パートナー</h4></div>"}else{if(g_sponsor){a+="<h4>スポンサー</h4></div>"}else{a+="<h4>メンバー"+e+"</h4></div>"}}a+='<div id="member">';a+='<table border="0" cellpadding="0" cellspacing="0">';a+='<tr valign="middle"><td style="padding-right: 3px;">'+A;a+="</td><td><h4>"+O+"</h4></td></tr></table>";a+="</div>"}var t=H.getElementsByTagName("G");if(t.length){var b=t[0].firstChild.nodeValue;a+='<div id="memberImage"><a href="/cafe/profile.html?id='+g_id+'">';a+='<img src="'+b+'" onmousedown="return false;" ';a+='oncontextmenu="return false;"></a></div>'}var f=H.getElementsByTagName("SP");if(f.length){var E=f[0].firstChild.nodeValue;E="<br>"+E+"<br><br>"}else{var E="<br>"}var v=H.getElementsByTagName("P");if(v.length){var n=v[0].firstChild.nodeValue}else{var n=""}var V=H.getElementsByTagName("Bs");if(V.length){g_books=V[0].firstChild.nodeValue}var r=H.getElementsByTagName("Ds");if(r.length){g_dvds=r[0].firstChild.nodeValue}var p=H.getElementsByTagName("BsP");if(p.length){g_booksPrivate=p[0].firstChild.nodeValue}var M=H.getElementsByTagName("DsP");if(M.length){g_dvdsPrivate=M[0].firstChild.nodeValue}var s=H.getElementsByTagName("NL");if(s.length){var N=s[0].firstChild.nodeValue}else{var N=0}var I=H.getElementsByTagName("FW");if(I.length){var L=I[0].firstChild.nodeValue}else{var L=0}var J=H.getElementsByTagName("Friend");if(J.length){var D=true}else{var D=false}var c=H.getElementsByTagName("V");if(c.length){var F=c[0].firstChild.nodeValue}else{var F=0}var W=H.getElementsByTagName("NT");if(W.length){var S=parseInt(W[0].firstChild.nodeValue)}else{var S=0}var B=H.getElementsByTagName("LN");if(B.length){var Z=parseInt(B[0].firstChild.nodeValue)}else{var Z=0}var C=H.getElementsByTagName("D");if(C.length){var q=C[0].firstChild.nodeValue;dates=q.split(" ")[0].split("-");var X=new Date(dates[0]+"/"+dates[1]+"/"+dates[2]);var T=new Date();if(T.getTime()-X.getTime()<14*24*60*60*1000){for(d=1;d<dates.length;d++){dates[d]=dates[d].charAt(0)=="0"?dates[d].charAt(1):dates[d]}q=dates[1]+"月"+dates[2]+"日"}else{q="２週間以上前"}}else{var q="-"}var u=H.getElementsByTagName("CM");if(u.length){g_comments=u[0].firstChild.nodeValue}var h=H.getElementsByTagName("DCM");if(h.length){g_dvdComments=h[0].firstChild.nodeValue}var o='<img src="'+g("/cafe/img/icons/letter.png")+'">';var Y='<img src="'+g("/cafe/img/icons/letter_send.png")+'" valign="top">';var R='<img src="'+g("/cafe/img/icons/profile.png")+'">';var K='<img src="'+g("/cafe/img/icons/note.png")+'" style="padding-left: 2px;">';a+='<div id="profileInfo">';a+=E;if(g_mypage&&L!=0){a+='友達の追加： <a href="/cafe/friends_wait.html" style="color: #d00; ';a+='text-decoration: underline;">'+L+"人</a><br><br>"}a+='<table border="0" cellpadding="0" cellspacing="0">';a+='<tr><td align="center"><a href="/cafe/profile.html?id='+g_id+'">'+R+"</a></td>";a+='<td><a href="/cafe/profile.html?id='+g_id+'">プロフィール</a></td></tr>';if(g_mypage&&!g_partner&&!g_sponsor){a+='<tr><td align="center"><a href="/cafe/letters.html">'+o+"</a></td>";a+='<td><a href="/cafe/letters.html">';if(N!=0){a+='新着の手紙&nbsp;&nbsp;<span style="color: #d00;">'+N;a+="通</span></a></td></tr>"}else{a+="手紙を見る</a></td></tr>"}}else{if(!g_partner&&!g_sponsor){a+='<tr><td align="center"><a href="/cafe/letter_write.html?id='+g_id;a+='">'+Y+"</a></td>";a+='<td><a href="/cafe/letter_write.html?id='+g_id+'">手紙を送る</a></td></tr>'}}if(!g_partner&&!g_sponsor){a+='<tr valign="top"><td><a href="/cafe/note.html?id='+g_id+'&page=last">'+K+"</a></td>";a+='<td style="padding-top: 1px;"><a href="/cafe/note.html?id='+g_id+'&page=last">ビジターノート (';if(g_mypage&&S>Z){a+='<span style="color: #d00;">'+S+"</span>)</a>"}else{a+=S+")</a>"}if(g_mypage){a+='<br><span style="font-size: 8pt; line-height: 10pt;">[ ';a+='<span id="noteHistoryLink" class="link" onclick="noteHistory();">記帳履歴</span> ]'}a+="</td></tr>"}a+="</table>";if(g_mypage){a+='<div id="noteHistory"></div>'}a+='<table border="0" cellpadding="0" cellspacing="0" style="padding-top: 15px;">';a+='<tr><td colspan="2">ビジター： '+F+"</td></tr>";if(!g_partner&&!g_sponsor){a+='<tr><td colspan="2">来店日： '+q+"</td></tr>"}a+="</table>";if(!g_mypage&&!D&&!g_partner&&!g_sponsor){a+='<br><a href="/cafe/friend_add.html?id='+g_id+'">友達に追加する</a>'}a+="</div>";$("profileBorder").innerHTML=a;if(g_partner||g_sponsor){displayPartner(n)}}function displayPartner(A){A=A.replace(/(https?:\/\/[^<>\s$]+)/g,'<a href="$1" target="_blank">$1</a>');html='<div class="partHeader" style="border-bottom: 1px solid #ddd;">';html+="<h4>プロフィール</h4></div>";html+='<div id="partnerProfile">';if(A){html+=A}else{if(g_mypage){html+='<span style="font-size: 9pt;">※ 左の「プロフィール」->「設定」から「プロフィール」を書いてください。</span>'}}html+="</div>";$("partnerBorder").innerHTML=html;$("partnerBorder").style.display="block"}var g_noteHistory=false;function noteHistory(){if(g_noteHistory){$("noteHistory").style.display="none";g_noteHistory=false}else{var A="/cafe/php/notes/history.php";ajaxRequest("GET",A,"cafe")}}function showNoteHistory(A){var B="";var D='<div id="noteHistoryClose"><span class="link" ';D+="onclick=\"$('noteHistory').style.display = 'none'\">x</span></div>";g_noteHistory=true;var C=A.getElementsByTagName("Member");if(!C.length){B='<div id="noteHistoryHeader"><div id="noteHistoryInfo">履歴はありません</div>'+D+"</div>";$("noteHistory").innerHTML=B;$("noteHistory").style.display="block";return }B='<div id="noteHistoryHeader"><div id="noteHistoryInfo">最新の5件</div>'+D+"</div>";B+='<table border="0" cellpadding="0" cellspacing="0">';for(i=0;i<C.length;i++){idNodes=C[i].getElementsByTagName("MemberID");if(idNodes.length){id=idNodes[0].firstChild.nodeValue}else{id=""}nameNodes=C[i].getElementsByTagName("Name");if(nameNodes.length){name=nameNodes[0].firstChild.nodeValue;if(name.length>6){name=name.slice(0,6)+"..."}}else{name=""}totalNodes=C[i].getElementsByTagName("Total");if(totalNodes.length){total=totalNodes[0].firstChild.nodeValue}else{total=""}B+='<tr><td><a href="/cafe/note.html?id='+id+'&page=last">';B+=name+" ("+total+")</a></td></tr>"}B+="</table>";$("noteHistory").innerHTML=B;$("noteHistory").style.display="block"}function displayMyshelf(A){html='<div id="myshelfArea" class="book">';html+='<div class="partHeader" style="border-bottom: 1px solid #ddd;">';html+='<h4>マイ棚</h4></div><div id="myshelf">';if(g_mypage){html+='<div id="myshelfIcon">';html+='<div class="myshelfTotal">'+g_books+" ("+g_booksPrivate+")</div>"}else{html+='<div id="myshelfIcon" style="padding-left: 70px;">';html+='<div class="myshelfTotal">'+g_books+"</div>"}html+='<a href="/cafe/myshelf.html?id='+g_id+'">';html+='<img src="'+g("/cafe/img/icons/myshelf.jpg")+'" width="120" height="120"><br>マイ棚</a></div>';if(g_mypage){html+='<div id="myshelfEditIcon"><a href="/cafe/myshelf_edit.html">';html+='<div class="myshelfTotal">&nbsp;</div>';html+='<img src="'+g("/cafe/img/icons/myshelf_edit.jpg")+'" width="120" height="120"><br>マイ棚管理</a></div>'}html+="</div></div>";html+='<div id="DVDMyshelfArea" class="DVD">';html+='<div class="partHeader" style="border-bottom: 1px solid #ddd;">';html+='<h4>DVDマイ棚</h4></div><div id="DVDMyshelf">';if(g_mypage){html+='<div id="DVDMyshelfIcon">';html+='<div class="myshelfTotal">'+g_dvds+" ("+g_dvdsPrivate+")</div>"}else{html+='<div id="DVDMyshelfIcon" style="padding-left: 70px;">';html+='<div class="myshelfTotal">'+g_dvds+"</div>"}html+='<a href="/cafe/myshelf.html?DVD&id='+g_id+'">';html+='<img src="'+g("/cafe/img/icons/dvdmyshelf.jpg")+'" width="120" height="120"><br>DVDマイ棚</a></div>';if(g_mypage){html+='<div id="DVDMyshelfEditIcon"><a href="/cafe/myshelf_edit.html?DVD">';html+='<div class="myshelfTotal">&nbsp;</div>';html+='<img src="'+g("/cafe/img/icons/dvdmyshelf_edit.jpg")+'" width="120" height="120"><br>DVDマイ棚管理</a></div>'}html+="</div></div>";$("myshelfBorder").innerHTML=html}function displayAdCafe(){var B=cafeAd();var A='<div id="adArea">'+cafeAd()+"</div>";$("adBorder").innerHTML=A}var g_noGroup=true;function displayGroups(D,M){var J="",O="";var G=0;var A,K="";var C,B="";var H,N="";var L,E="";var P=D.getElementsByTagName("GT");if(P.length){G=P[0].firstChild.nodeValue}J='<table class="groupsSubHeader" border="0" cellpadding="0" cellspacing="0">';J+='<tr valign="middle"><td style="padding-left: 5px;">';J+=M?g_dvdIcon:g_bookIcon;J+="</td><td>&nbsp;"+(M?"DVD":"本")+"（"+G+"）</td></tr></table>";if(G==0){J+='<div class="noResult" style="width: 166px;';if(!g_IE6){J+=M?"":" border-bottom: 1px solid #ddd;"}J+='">グループはまだありません</div>'}else{g_noGroup=false;J+='<table class="groups" border="0" cellpadding="0" cellspacing="0">';var F=D.getElementsByTagName("GP");for(i=0;i<F.length;i++){J+='<tr class="groupBox" valign="middle" '+ieHoverBox()+">";A=F[i].getElementsByTagName("ID");if(A.length){K=A[0].firstChild.nodeValue}C=F[i].getElementsByTagName("N");if(C.length){B=C[0].firstChild.nodeValue}H=F[i].getElementsByTagName("T");if(H.length){N=H[0].firstChild.nodeValue}O="/cafe/groups/?"+(M?"DVD&":"");O+="gid="+K;L=F[i].getElementsByTagName("G");if(L.length){E=L[0].firstChild.nodeValue;E='<a href="'+O+'"><img src="'+E+'"></a>'}else{E="&nbsp;"}J+='<td class="groupImage" align="center">'+E+"</td>";J+='<td class="group" onclick="jumpTo(\''+O+"');\">";J+='<a href="'+O+'">'+B+" ("+N+")</a></td></tr>"}J+="</table>"}if(!M){var I='<a href="/cafe/groups.html?id='+g_id+'">';I+='<h4>グループ&nbsp;<span class="raquo">&raquo;</span></h4></a>';$("groupsHeader").innerHTML=I}if(M){$("DVDGroupsArea").innerHTML=J}else{$("groupsArea").innerHTML=J}}function displayGroupSearch(){var A='<div id="groupSearchHeader" class="partHeader"><h4>グループを探す</h4></div>';A+='<div id="groupSearchHome">';A+='<form action="javascript:void%200;" onsubmit="initGroupSearch(); return false;">';A+='<input id="searchKeyG" name="keyG" type="text" maxlength="30">';A+='<input type="image" src="'+g("/cafe/img/cafe/find_group.png")+'" width="101" height="21" ';A+="onmouseover=\"this.src = '"+g("/cafe/img/cafe/find_group_hover.png")+"'\" ";A+="onmouseout=\"this.src = '"+g("/cafe/img/cafe/find_group.png")+"'\">";A+="</form></div>";A+='<div id="groupCreateLink">';A+='<a href="/cafe/groups/create.html">グループを作る</a></div>';var B=$("groupSearchBorder");B.innerHTML=A;B.style.display="block"}var g_search=false;function initGroupSearch(){g_search=true;var A=$("searchKeyG").value;A=encodeURIComponent(A);if(A){var B="/cafe/groups/search.html?q="+A;window.location.href=B}}function displayInvitation(){var A='<div id="inviteLinkHeader" class="partHeader"><h4>友達の招待</h4></div>';A+='<div id="inviteLinkArea"><div id="inviteLink">';A+='<a href="/cafe/invite.html">友達を招待する</a></div>';A+='<div id="findMembersArea">';A+='<form action="javascript:void%200;" onsubmit="initFindMembers(); return false;">';A+='<input id="findMemberF" type="text" maxlength="10">';A+='<input type="image" src="'+g("/cafe/img/cafe/find_member.png")+'" width="101" height="21" ';A+="onmouseover=\"this.src = '"+g("/cafe/img/cafe/find_member_hover.png")+"'\" ";A+="onmouseout=\"this.src = '"+g("/cafe/img/cafe/find_member.png")+"'\">";A+="</form></div></div>";var B=$("inviteLinkBorder");B.innerHTML=A;B.style.display="block"}function initFindMembers(){var A=$("findMemberF").value;if(A){var B="/cafe/friends.html?q="+encodeURIComponent(A);location.href=B}}function displayFriends(R){var G="";var M="";var Q,J="";var H,V="";var T;var F,K,I;var A,E=0;var C,P=0;var S,L=0;var D=R.getElementsByTagName("Total");if(D.length){var U=D[0].firstChild.nodeValue;if(U==0){G='<div class="noResult">友達はまだいません</div>'}}var O=R.getElementsByTagName("F");for(i=0;i<O.length;i++){Q=O[i].getElementsByTagName("ID");if(Q.length){J=Q[0].firstChild.nodeValue}H=O[i].getElementsByTagName("N");if(H.length){V=H[0].firstChild.nodeValue}T=O[i].getElementsByTagName("G");if(T.length){F=T[0].firstChild.nodeValue;M='<div class="friendImage"><a href="/cafe/?id='+J+'">';M+='<img src="'+F;M+='" onmousedown="return false;" oncontextmenu="return false;"></a></div>'}else{M='<div class="friendImage"></div>'}A=O[i].getElementsByTagName("Bs");if(A.length){E=A[0].firstChild.nodeValue}C=O[i].getElementsByTagName("Ds");if(C.length){P=C[0].firstChild.nodeValue}S=O[i].getElementsByTagName("FF");if(S.length){L=S[0].firstChild.nodeValue}gradeNodes=O[i].getElementsByTagName("GR");if(gradeNodes.length){var B=gradeNodes[0].firstChild.nodeValue}gradeImageNodes=O[i].getElementsByTagName("GI");if(gradeImageNodes.length){gradeImage=gradeImageNodes[0].firstChild.nodeValue;gradeTag='<img src="'+g(gradeImage)+'" ';gradeTag+='onmousedown="return false;" oncontextmenu="return false;">'}G+='<div class="friend" '+ieHoverBox()+" onclick=\"jumpTo('/cafe/?id="+J+"');\">";G+=M;G+='<div class="friendInfo"">';G+='<table border="0" cellpadding="0" cellspacing="0">';G+='<tr valign="middle"><td align="center">';G+=g_bookIconS+"</td><td>&nbsp;"+E+"冊</td></tr><tr><td>";G+=g_dvdIconS+"</td><td>&nbsp;"+P+"本</td></tr>";G+='<tr><td><img src="'+g("/cafe/img/icons/friends.gif")+'"></td><td>'+L+"人</td></tr>";G+="</table></div>";G+='<div class="friendName">';G+='<table border="0" cellpadding="0" cellspacing="0">';G+="<tr><td>"+gradeTag+"&nbsp;</td><td>";G+='<a href="/cafe/?id='+J+'">'+V+"</a></td></tr>";G+="</table></div></div>"}var N='<a href="/cafe/friends.html?id='+g_id+'">';N+="<h4>友達（"+U+'人）<span class="raquo">&raquo;</span></h4></a>';$("friendsHeader").innerHTML=N;$("friendsArea").innerHTML=G}function displayFriendReviews(S,C){var F="",P="",D="";var Q,K;var I,U;var M,T;var O,R;var B;var A,G;var N,H;var E,J;F='<div class="partHeaderHover">';F+='<a href="/cafe/reviews.html?'+(C?"DVD&":"");F+="id="+g_id+(g_mypage?"&friends":"")+'"><h4>';F+=g_mypage?"友達の":"";if(C){F+="DVD感想文"}else{F+="感想文"}F+='&nbsp;<span class="raquo">&raquo;</span></h4></a></div>';var L=S.getElementsByTagName("R");if(!L.length){F+='<div class="noResult">感想文はまだありません</div>'}for(j=0;j<L.length;j++){Q=L[j].getElementsByTagName("ID");if(Q.length){K=Q[0].firstChild.nodeValue}I=L[j].getElementsByTagName("N");if(I.length){U=I[0].firstChild.nodeValue}M=L[j].getElementsByTagName("RT");if(M.length){T=M[0].firstChild.nodeValue;if(T.length>10){T=T.slice(0,10)+"..."}}O=L[j].getElementsByTagName("RD");if(O.length){R=O[0].firstChild.nodeValue;dates=R.split(" ")[0].split("-");for(d=1;d<dates.length;d++){dates[d]=dates[d].charAt(0)=="0"?dates[d].charAt(1):dates[d]}R=dates[1]+"/"+dates[2]}B=L[j].getElementsByTagName("I");if(B.length){A=B[0].getElementsByTagName("A");if(A.length){G=A[0].firstChild.nodeValue}N=B[0].getElementsByTagName("T");if(N.length){H=N[0].firstChild.nodeValue}E=B[0].getElementsByTagName("G");if(E.length){J=E[0].firstChild.nodeValue}else{J=C?g_noimgSdvd:g_noimgS}P='<div class="friendReviewItem">';P+='<img class="friendReviewImg" src="'+J+'" ';P+="onmouseover=\"showInfo('"+J+"', '"+escapeHtml(H);P+="', '"+G+'\');" onmouseout="hideInfo();" ';P+='onclick="hideInfo();"></div>'}D="/cafe/review.html?"+(C?"DVD&":"");D+="id="+K+"&asin="+G;F+='<div class="friendReview" '+ieHoverBox()+" onclick=\"jumpTo('"+D+"');\">";F+=P;F+='<div class="friendReviewInfo">';F+='<div class="reviewTitle"><a href="'+D+'">『'+T+"』</a></div>";F+="&nbsp;&nbsp;"+U+"&nbsp;&nbsp;&nbsp;"+R;F+="</div></div>"}if(g_mypage){F+='<div class="friendReview" style="padding-top: 4px; padding-bottom: 4px; text-align: right; font-size: 9pt;">';F+='<a href="/cafe/reviews.html?'+(C?"DVD&":"");F+="id="+g_id+'">自分の'+(C?"DVD":"")+"感想文一覧";if(g_dvdComments!=0&&C){F+=" ("+g_dvdComments+"コメント)"}else{if(g_comments!=0&&!C){F+=" ("+g_comments+"コメント)"}}F+="&nbsp;&nbsp;&nbsp;</a></div>"}if(C){$("friendDVDReviews").innerHTML=F}else{$("friendReviews").innerHTML=F}}function displayRecommendations(D,M){var I="",N="";var Q,G;var P,O;var L,F;var H,C;var B,A;var K,E;I='<div class="partHeaderHover" style="width: 260px; border: 1px solid #ddd;">';I+='<a href="/cafe/recommends.html?'+(M?"DVD&":"");I+="id="+g_id+'"><h4>';if(M){I+="DVDグループのオススメ";I+='&nbsp;<span class="raquo">&raquo;</span></h4></a></div>';I+='<div id="DVDRecommend">'}else{I+="グループのオススメ";I+='&nbsp;<span class="raquo">&raquo;</span></h4></a></div>';I+='<div id="recommend">'}var J=D.getElementsByTagName("Rec");if(!J.length){I+='<div class="noResult" style="width: 246px; border: 1px solid #ddd; ';I+='border-top: 0; background-color: #fff;">オススメはまだありません</div>'}for(i=0;i<J.length;i++){Q=J[i].getElementsByTagName("A");if(Q.length){G=Q[0].firstChild.nodeValue}P=J[i].getElementsByTagName("T");if(P.length){O=P[0].firstChild.nodeValue}L=J[i].getElementsByTagName("G");if(L.length){F=L[0].firstChild.nodeValue}else{F=M?g_noimgSdvd:g_noimgS}gidNodes=J[i].getElementsByTagName("GID");if(gidNodes.length){gid=gidNodes[0].firstChild.nodeValue}B=J[i].getElementsByTagName("N");if(B.length){A=B[0].firstChild.nodeValue;if(A.length>10){A=A.slice(0,10)+"..."}}K=J[i].getElementsByTagName("D");if(K.length){E=K[0].firstChild.nodeValue;dates=E.split(" ")[0].split("-");for(d=1;d<dates.length;d++){dates[d]=dates[d].charAt(0)=="0"?dates[d].charAt(1):dates[d]}E=dates[1]+"/"+dates[2]}N="/cafe/groups/?"+(M?"DVD&":"")+"gid="+gid;I+='<div class="recommendation" '+ieHoverBox()+" onclick=\"jumpTo('"+N+"');\"";if((i%3)==0){I+=' style="width: 87px; border-left: 1px solid #ddd;">'}else{I+=">"}I+='<div class="recommendItem">';I+='<img class="recommendImg" src="'+F+'" ';I+="onmouseover=\"showInfo('"+F+"', '"+escapeHtml(O);I+="', '"+G+'\');" onmouseout="hideInfo();" onclick="hideInfo();"></div>';I+='<div class="recommendInfo">';I+='<a href="'+N+'" style="font-size:9pt;">'+A+"</a><br>";I+='<span style="font-size:9pt;">'+E+"&nbsp;&nbsp;</span><br></div></div>"}I+="</div>";if(M){$("recommendDVDArea").innerHTML=I}else{$("recommendArea").innerHTML=I}}function displayTalks(E,N){var J="",Q="";var M,G;var H,O;var I,P;var A,L;var D,B;var K,F;J='<div class="partHeaderHover">';J+='<a href="/cafe/talks.html?'+(N?"DVD&":"")+"id="+g_id+'"><h4>';if(N){J+='DVDグループのトーク&nbsp;<span class="raquo">&raquo;</span></h4></a></div>';J+='<div id="DVDTalks">'}else{J+='グループのトーク&nbsp;<span class="raquo">&raquo;</span></h4></a></div>';J+='<div id="talks">'}var C=E.getElementsByTagName("TK");if(!C.length){J+='<div class="noResult">トークはまだありません</div>'}for(i=0;i<C.length;i++){M=C[i].getElementsByTagName("TID");if(M.length){G=M[0].firstChild.nodeValue}H=C[i].getElementsByTagName("S");if(H.length){O=H[0].firstChild.nodeValue;if(O.length>12){O=O.slice(0,12)+"..."}}I=C[i].getElementsByTagName("T");if(I.length){P=I[0].firstChild.nodeValue}A=C[i].getElementsByTagName("GID");if(A.length){L=A[0].firstChild.nodeValue}D=C[i].getElementsByTagName("N");if(D.length){B=D[0].firstChild.nodeValue;if(B.length>12){B=B.slice(0,12)+"..."}}K=C[i].getElementsByTagName("D");if(K.length){F=K[0].firstChild.nodeValue;dates=F.split(" ")[0].split("-");for(d=1;d<dates.length;d++){dates[d]=dates[d].charAt(0)=="0"?dates[d].charAt(1):dates[d]}F=dates[1]+"/"+dates[2]}Q="/cafe/groups/talk.html?"+(N?"DVD&":"");Q+="gid="+L+"&tid="+G+"&page=last";J+='<div class="talk" '+ieHoverBox()+" onclick=\"jumpTo('"+Q+"');\">";J+='<a href="'+Q+'"> 『'+O+"』 ("+P+")</a><br>";J+='<div class="groupName">';J+=B+'&nbsp;&nbsp;&nbsp;<span style="font-size: 9pt;">';J+=F+"</span></div></div>"}J+="</div>";if(N){$("talksDVDArea").innerHTML=J}else{$("talksArea").innerHTML=J}}function displaySimilarMyshelf(U,E){var J="",G="";var B,W;var F,S;var T,P;var M,X;var D;var C,K;var Q,V;var I,N;var A="http://ecx.images-amazon.com/images/I/";var O=U.getElementsByTagName("TotalSum");if(O.length){var H=O[0].firstChild.nodeValue}J='<div class="partHeaderHover">';J+='<a href="/cafe/similars.html?'+(E?"DVD&":"")+"id="+g_id+'">';J+="<h4>"+(E?"DVD":"")+"マイ棚つながり（"+H;J+='人）<span class="raquo">&raquo;</span></h4></a></div>';if(H==0){J+='<div class="noResult">マイ棚つながりはいません (毎日更新)</div>'}var R=U.getElementsByTagName("Seg");for(i=0;i<R.length;i++){F=R[i].getElementsByTagName("Sim");if(F.length){S=F[0].firstChild.nodeValue}B=R[i].getElementsByTagName("Total");if(B.length){W=B[0].firstChild.nodeValue}J+='<div class="similarSegment"><div class="similarity">';J+="&nbsp;<span>"+S+"</span> ";J+=(E?"本":"冊")+"（"+W+"人）</div>";var L=R[i].getElementsByTagName("M");for(j=0;j<L.length;j++){T=L[j].getElementsByTagName("ID");if(T.length){P=T[0].firstChild.nodeValue}M=L[j].getElementsByTagName("N");if(M.length){X=M[0].firstChild.nodeValue}G="/cafe/?id="+P;J+='<div class="similarMember" '+ieHoverBox()+" onclick=\"jumpTo('"+G+"');\">";J+='<div class="similarName">';J+='<a href="'+G+'">'+X+"</a>&nbsp;</div>";J+='<div class="similarItems">';D=L[j].getElementsByTagName("I");for(k=0;k<D.length;k++){C=D[k].getElementsByTagName("A");if(C.length){K=C[0].firstChild.nodeValue}Q=D[k].getElementsByTagName("T");if(Q.length){V=Q[0].firstChild.nodeValue}I=D[k].getElementsByTagName("G");if(I.length){N=I[0].firstChild.nodeValue;if(!N.match("http")){N=A+N}}else{N=E?g_noimgSdvd:g_noimgS}J+='<a href="/product.html?asin='+K+'">';J+='<img class="similarImage" src="'+N+'" ';J+="onmouseover=\"showInfo('"+N+"', '"+escapeHtml(V);J+="', '"+K+'\');" onmouseout="hideInfo();" onclick="hideInfo();"></a>'}if(D.length<S){J+='&nbsp;<span style="color: #999;">...</span>'}J+="</div></div>"}J+="</div>"}if(E){$("similarDVDArea").innerHTML=J}else{$("similarArea").innerHTML=J}}window._uds_nbw_donotrepair=true;GSearch.setOnLoadCallback(LoadNewsBar);function LoadNewsBar(){var B;var A={resultStyle:GSnewsBar.RESULT_STYLE_COMPRESSED,largeResultSet:false,title:"ニュース",horizontal:false,linkTarget:GSearch.LINK_TARGET_BLANK,autoExecuteList:{executeList:["書籍","映画"]}};B=new GSnewsBar(document.getElementById("gNews"),A)};