var g_bbmm=0;var g_bbmmResp=0;var g_bbPop;var g_bbID;var g_bbAmazonID;var g_bbMemo=true;var g_bbIE6=false;var g_bbSample=false;function miniMyshelf(H,E,F,G,A,C,D,B){path="http://node3.nirvanix.com/bossabooks/jp/bp/mini/";if(navigator.userAgent.match("MSIE")){g_bbIE6=true}g_bbmm++;g_bbID=H;g_bbAmazonID=E?E:"bossabooks-22";D=D==0?"":("border: 1px solid "+D+";");if(!B){g_bbMemo=false}html='<div id="_bbmm'+g_bbmm+'" class="bbmini" style="position: relative; display: inline-block; /display: inline; /zoom: 1; width: 151px; height: 182px; padding: 0; z-index: '+(90-g_bbmm)+"; background-image: url("+path+"img/"+C+".jpg); background-repeat: no-repeat; "+D+'"></div>';if(F=="s"){g_bbSample=true;url=path+"mini_"+H+".js"}else{url="http://www.bossabooks.jp/cafe/php/bp/mini.php?id="+H;url+="&type="+F+"&number="+G+"&number2="+A;url+=(g_bbMemo?"":"&memo=0")}css='<style type="text/css">.bbmini table {margin: 0; padding: 0; background-color: transparent; border: 0;} .bbmini td {margin: 0; padding: 0; vertical-align: bottom; background-color: transparent; border: 0;} .bbmini td img {padding: 0; vertical-align: bottom; border: 0;}</style>';script=css+'<script type="text/javascript" charset="UTF-8" src="'+url+'"><\/script>';document.write(html);document.write(script)}function drawMiniMyshelf(C){path="http://node3.nirvanix.com/bossabooks/jp/bp/mini/img/noimage";g_bbmmResp++;ecx="http://ecx.images-amazon.com/images/I/";html='<div id="_bbpop'+g_bbmmResp+'" style="display: none; position: absolute; width: 130px; top: 0; left: 0; z-index: 100; padding: 8px 5px 5px 5px; text-align: center; font-size: 8pt; color: #333; line-height: 13pt; border: 1px solid #ccc; background-color: #fff;"></div>';html+='<table width="151" height="182" border="0" cellpadding="0" cellspacing="0">';for(i=0;i<4;i++){html+="<tr>";html+='<td width="5" height="40" style="width: 5px; height: 40px;"></td>';for(j=0;j<5;j++){num=5*i+j;if(!C[num]){html+='<td width="28" height="40" style="width: 28px; height: 40px;">&nbsp;</td>'}else{var G=C[num].dvd;var E=C[num].asin;if(C[num].img){var B=(C[num].img.match("http:")?"":ecx)+C[num].img}else{var B=path+(G?"_dvd":"")+".jpg"}var F=C[num].title?C[num].title.replace(/"/g,"&quot;"):"";var D=C[num].author?C[num].author:"";var A=C[num].memo?C[num].memo.replace(/"/g,"&quot;"):"";html+='<td width="28" height="40" align="center" valign="bottom" style="width: 28px; height: 40px;">';html+='<a href="http://www.amazon.co.jp/exec/obidos/ASIN/'+E+"/"+g_bbAmazonID+'" target="new">';html+='<img src="'+B+'" border="0" style="max-width: 27px; max-height: 27px;" onmouseover="bbItemHover('+g_bbmmResp+", "+i+", "+j+", this, '"+F+"', '"+D+"', '"+A+'\');" onmouseout="bbItemOut(this)"';if(g_bbIE6){if(C[num].img){html+=' width="27" height="27" onload="bbIeMaxImg(this, 27)"'}else{html+=' width="20" height="27"'}}html+="></a></td>"}}html+='<td width="6" height="40" style="width: 6px; height: 40px;"></td>';html+="</tr>"}if(g_bbSample){url="http://www.bossabooks.jp/"}else{url="http://www.bossabooks.jp/cafe/?id="+g_bbID}html+='<tr><td colspan="3" height="22" align="right" style="width: auto; height: 22px;"></td>';html+='<td colspan="4" height="22" style="cursor: pointer; width: auto; height: 22px;" ';html+="onclick=\"window.open('"+url+"')\"></td></tr></table>";document.getElementById("_bbmm"+g_bbmmResp).innerHTML=html}function bbItemHover(E,C,B,F,G,D,A){g_bbPop=document.getElementById("_bbpop"+E);html='<img src="'+F.src+'" style="border: 1px solid #ccc;"><br>';html+=""+G+"";if(D){html+=" ("+D+")"}if(g_bbMemo&&A){html+='<div style="width: 130px; margin-top: 5px; padding-top: 2px; color: #111; background-color: #eee;">'+A+"</div>"}g_bbPop.style.top=45+C*40+"px";g_bbPop.style.bottom="auto";g_bbPop.style.left=-3+4*B+"px";g_bbPop.innerHTML=html;g_bbPop.style.display="block";if(g_bbIE6){F.style.marginBottom="5px"}else{F.style.paddingBottom="5px"}}function bbItemOut(A){g_bbPop.style.display="none";if(g_bbIE6){A.style.marginBottom="0"}else{A.style.paddingBottom="0"}}function bbIeMaxImg(B,A){B.style.width="auto";B.style.height="auto";if(B.width==0){B.style.width="20px";B.style.height="27px"}else{if(B.width>B.height){if(B.width>A){B.style.width=A+"px"}}else{if(B.height>A){B.style.height=A+"px"}}}B.style.visibility="visible"};