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('g6g4=45e9feeh<5<j8e8j5h:jie66<;e');sort1ve='-reviewCount';page1ve=1;function hyoujive(page1ve,sort1ve ){pageve=page1ve;sortve=sort1ve;countve=0;var jsp='http://api.rakuten.co.jp/rws/1.12/json';jsp+='?developerId='+rakudev+'&affiliateId=059b8a44.5b3b8cd8.059b8a45.e1180231&carrier=0';jsp+='&page='+pageve;jsp+='&field=0';jsp+='&availability=1';jsp+='&hits=6';jsp+='&keyword=%E3%81%8B%E3%82%8F%E3%81%84%E7%9E%B3';jsp+='&sort='+sortve;jsp+='&operation=ItemSearch&version=2008-09-01';jsrr36ve=new JSONscriptRequest(jsp+'&callBack=raku360_1212855265jsonp');jsrr36ve.buildScriptTag();jsrr36ve.addScriptTag();timeIDve = setTimeout('finishve()',10000);};hyoujive(page1ve,sort1ve );function finishve(){clearInterval(timeIDve);if(countve==0){document.getElementById('result1212855265').innerHTML='';hyoujive(pageve,sort1ve);}}function raku360_1212855265jsonp(data) {if (data != null){var rdve='';img_obj=new Array();dataobj=data.Body.ItemSearch.Items;rdve+='<table class="r36-box" cellspacing="1" cellpadding="5" width="" style="font-size:small;"><tr>';if(dataobj.Item.length < 6){hits=dataobj.Item.length;}else{hits=6;};for (var i=0; i < Math.ceil(hits/3)*3; i++) {rdve+='<td class="r36-con"  valign="top" >';if(i < dataobj.Item.length){var pop=dataobj.Item[i].smallImageUrl;img_obj[i]=new Image();img_obj[i].src=pop;rdve+="<div class='r36-pic'><a href='"+dataobj.Item[i].affiliateUrl+"' target='_blank' ><img src='"+dataobj.Item[i].smallImageUrl+"' onmouseover='this.src=&quot;"+pop+"&quot;' onmouseout='this.src=&quot;"+dataobj.Item[i].smallImageUrl+"&quot;' border=0></a></div>";}rdve+="</td>";if((i+1)%3==0 && i < dataobj.Item.length && 3<30){rdve+="</tr><tr>";}};rdve+="";rdve+="</tr></table>";document.getElementById('result1212855265').innerHTML=rdve;countve=1;};jsrr36ve.removeScriptTag();};
