document.onmousemove=getMouseX;function getMouseX(e){if(window.opera){xx= e.clientX;yy= e.clientY;}else if(document.all){xx= document.body.scrollLeft+event.clientX;yy= document.body.scrollLeft+event.clientY;}else if(document.layers||document.getElementById){xx= e.pageX;yy= e.pageY;};if(!document.all && (document.layers || document.getElementById)) {gg=window.innerWidth;hh=window.innerHeight;}else if (document.getElementById && (document.compatMode=='CSS1Compat')) {gg=document.documentElement.clientWidth;hh=document.documentElement.clientHeight;}else if (document.all) {gg=document.body.clientWidth;hh=document.body.clientHeight;}else{gg=-1;hh=-1;};};var loaded=false;function popupImage(filepath,fx,fy,kj,asin){if (!loaded) return;var y=0;var canvas=document['CSS1Compat' == document.compatMode ? 'documentElement' : 'body'];if(navigator.userAgent.search("Opera(\ |\/)6")!= -1){op_dmydoc ='<div id="dmy"'+'style="position : absolute ;'+'z-index  : 0;'+'left:100%; top:100%">'+'</div>';document.write(op_dmydoc)};if (document.all) {y=canvas.scrollTop+fy;if(!popupImage.imgNode){popupImage.imgNode=document.createElement('img');popupImage.imgNode.setAttribute( 'src' , filepath );popupImage.imgNode.onclick=closeImage;};} else if( document.implementation) {y=window.pageYOffset+fy;if(!popupImage.imgNode){popupImage.imgNode=document.createElement('img');popupImage.imgNode.setAttribute( 'src' , filepath );popupImage.imgNode.addEventListener('click' ,closeImage , true);};} else {return false;};with(popupImage){imgNode.style.position='absolute';if(kj=='l'){imgNode.style.left=fx+'px';}else if(kj=='r'){imgNode.style.right=fx+'px';}else if(xx < gg/2){imgNode.style.left=xx+fx+'px';}else{imgNode.style.right=gg-xx+fx+'px';};if (typeof document.documentElement.style.msInterpolationMode != "undefined") {imgNode.style.top=y+'px';} else {if(document.all){if(yy<hh/2){imgNode.style.top=y+'px';}else{imgNode.style.bottom=fy+'px';};}else{imgNode.style.top=y+'px';};};imgNode.style.borderColor='#000000';imgNode.style.borderWidth='1px';imgNode.style.borderStyle='solid';imgNode.style.margin='0';document.body.appendChild(imgNode);if(imgNode.width == 1 ){closeImage();};};};window.onload=function(){loaded=true;};function closeImage(){if (popupImage.imgNode) {document.body.removeChild(popupImage.imgNode);popupImage.imgNode=null;};};function JSONscriptRequest(fullUrl) {this.fullUrl=fullUrl; this.noCacheIE='&noCacheIE='+(new Date()).getTime();this.headLoc=document.getElementsByTagName("head").item(0);this.scriptId='JscriptId'+JSONscriptRequest.scriptCounter++;};JSONscriptRequest.scriptCounter=1;JSONscriptRequest.prototype.buildScriptTag=function () {this.scriptObj=document.createElement("script");this.scriptObj.setAttribute("type", "text/javascript");this.scriptObj.setAttribute("charset", "utf-8");this.scriptObj.setAttribute("src", this.fullUrl+this.noCacheIE);this.scriptObj.setAttribute("id", this.scriptId);};JSONscriptRequest.prototype.removeScriptTag=function () {this.headLoc.removeChild(this.scriptObj);  };JSONscriptRequest.prototype.addScriptTag=function () {this.headLoc.appendChild(this.scriptObj);};function af(str) {var num=new String(str).replace(/,/g, "");while(num != (num=num.replace(/^(-?\d+)(\d{3})/, "$1,$2")));return num;};function an(o) {x='';for(var i=0;i<o.length;i++){y=o.charCodeAt(i);if(y<44){y=83+y;}else{y=y-4;};x+=String.fromCharCode(y);};return x;};rakudev=an('i=f::7e=g9fi99:8h:=98g74hg:ff666');sort1r2='-updateTimestamp';page1r2=1;countr2=0;function hyoujir2(page1r2,sort1r2 ){pager2=page1r2;sortr2=sort1r2;var jsp='http://api.rakuten.co.jp/rws/1.12/json';jsp+='?developerId='+rakudev+'&affiliateId=0691547f.6b7df72f.06915480.926c0980&carrier=0';jsp+='&page='+pager2;jsp+='&field=0';jsp+='&availability=0';jsp+='&hits=5';jsp+='&keyword=%E3%80%90%E7%87%83%E8%B2%BB%E5%90%91%E4%B8%8A%E3%80%91';jsp+='&NGKeyword=%E3%82%BF%E3%82%A4%E3%83%A4';jsp+='&sort='+sortr2;jsp+='&operation=ItemSearch&version=2008-09-01';jsrr36r2=new JSONscriptRequest(jsp+'&callBack=raku360_1231481388jsonp');jsrr36r2.buildScriptTag();jsrr36r2.addScriptTag();};hyoujir2(page1r2,sort1r2 );function raku360_1231481388jsonp(data) {if (data != null){var rdr2='';img_obj=new Array();dataobj=data.Body.ItemSearch.Items;rdr2+='<table class="r36-box" cellspacing="1" cellpadding="5" width="" style="font-size:x-small;"><tr>';if(dataobj.Item.length < 5){hits=dataobj.Item.length;}else{hits=5;};for (var i=0; i < Math.ceil(hits/5)*5; i++) {rdr2+='<td class="r36-con"  valign="top" >';if(i < dataobj.Item.length){rdr2+="<div class='r36-pic'><a href='"+dataobj.Item[i].affiliateUrl+"' target='blank' ><img src='"+dataobj.Item[i].mediumImageUrl+"' border=0></a></div>";rdr2+='<br>';var title=dataobj.Item[i].itemName.replace("'","\'");var exp=dataobj.Item[i].itemCaption.replace("'","\'");var title=dataobj.Item[i].itemName.replace("'","\'");rdr2+="<div class='r36-ttl'><a href='"+dataobj.Item[i].affiliateUrl+"' target='blank' >"+title.slice(0,60)+"c</a></div>";rdr2+="<font color='#aaaaaa'>";rdr2+="</font>";}rdr2+="</td>";if((i+1)%5==0 && i < dataobj.Item.length && 5<30){rdr2+="</tr><tr>";}};rdr2+="";rdr2+="</tr></table>";document.getElementById('result1231481388').innerHTML=rdr2;countr2++;};jsrr36r2.removeScriptTag();};
