var AMAZON_imageserver="images.amazon.com";var DDRIVE_offsetxpoint=-60;var DDRIVE_offsetypoint=20;var DDRIVE_ie=document.all;var DDRIVE_ns6=document.getElementById&&!document.all;var DDRIVE_enabletip=false;var DDRIVE_tipobj=null;function createToolTipDiv(){var A=document.createElement("div");A.id="DDRIVE_dhtmltooltip";A.style.position="absolute";A.style.width="150px";A.style.border="3px double black";A.style.padding="2px;";A.style.backgroundcolor="#fff";A.style.display="none";A.style.zindex="100";A.style.filter="filter: progid:DXImageTransform.Microsoft.Shadow(color=gray,direction=135)";document.body.appendChild(A);return A}if(ToolTipCompatibleBrowser()){DDRIVE_tipobj=document.all?document.all["DDRIVE_dhtmltooltip"]:document.getElementById?document.getElementById("DDRIVE_dhtmltooltip"):""}function DDRIVE_ietruebody(){return(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body}function DDRIVE_tooltip(B,C,A){if(ToolTipCompatibleBrowser()){if(typeof A!="undefined"){DDRIVE_tipobj.style.width=A+"px"}else{DDRIVE_tipobj.style.width=""}if(typeof C!="undefined"&&C!=""){DDRIVE_tipobj.style.backgroundColor=C}DDRIVE_tipobj.innerHTML=B;DDRIVE_enabletip=true;return false}}function DDRIVE_positiontip(E){if(ToolTipCompatibleBrowser()&&DDRIVE_enabletip){var B=(DDRIVE_ns6)?E.pageX:event.x+DDRIVE_ietruebody().scrollLeft;var A=(DDRIVE_ns6)?E.pageY:event.y+DDRIVE_ietruebody().scrollTop;var D=DDRIVE_ie&&!window.opera?DDRIVE_ietruebody().clientWidth-event.clientX-DDRIVE_offsetxpoint:window.innerWidth-E.clientX-DDRIVE_offsetxpoint-20;var C=DDRIVE_ie&&!window.opera?DDRIVE_ietruebody().clientHeight-event.clientY-DDRIVE_offsetypoint:window.innerHeight-E.clientY-DDRIVE_offsetypoint-20;var F=(DDRIVE_offsetxpoint<0)?DDRIVE_offsetxpoint*(-1):-1000;if(D<DDRIVE_tipobj.offsetWidth){DDRIVE_tipobj.style.left=DDRIVE_ie?DDRIVE_ietruebody().scrollLeft+event.clientX-DDRIVE_tipobj.offsetWidth+"px":window.pageXOffset+E.clientX-DDRIVE_tipobj.offsetWidth+"px"}else{if(B<F){DDRIVE_tipobj.style.left="5px"}else{DDRIVE_tipobj.style.left=B+DDRIVE_offsetxpoint+"px"}}if(C<DDRIVE_tipobj.offsetHeight){DDRIVE_tipobj.style.top=DDRIVE_ie?DDRIVE_ietruebody().scrollTop+event.clientY-DDRIVE_tipobj.offsetHeight-DDRIVE_offsetypoint+"px":window.pageYOffset+E.clientY-DDRIVE_tipobj.offsetHeight-DDRIVE_offsetypoint+"px"}else{DDRIVE_tipobj.style.top=A+DDRIVE_offsetypoint+"px"}DDRIVE_tipobj.style.display="inline"}}function DDRIVE_hidetip(A){if(ToolTipCompatibleBrowser()){DDRIVE_enabletip=false;DDRIVE_tipobj.style.display="none";DDRIVE_tipobj.style.left="-1000px";DDRIVE_tipobj.style.backgroundColor="";DDRIVE_tipobj.style.width=""}}function AmazonImgTooltip(G){if(!G){var G=window.event}var E;if(G.target){E=G.target}else{if(G.srcElement){E=G.srcElement}}if(E.nodeType==3){E=E.parentNode}var C=DDRIVE_ietruebody();while(E!=C&&E.nodeName.toLowerCase()!="a"){E=E.parentNode}if(E==C){return false}var D,H,B;if(ToolTipCompatibleBrowser()){var F=GetAmazonImageSource(E.href);if(F!=""){var A=new Image();A.src=F;DDRIVE_tipobj.innerHTML="<img src='"+A.src+"'/>";DDRIVE_tipobj.style.width=A.width+"px";DDRIVE_tipobj.style.display="inline";DDRIVE_enabletip=true;return false}}}function GetAmazonImageSource(C){var B="";var A=C.match(/^http:\/\/www\.amazon\.[^\/]+\/exec\/obidos\/ASIN\/([\w\d]{10})\/[-\w\d]+$/i);if(A&&A.length>1){B="http://"+AMAZON_imageserver+"/images/P/"+A[1]+".01.MZZZZZZZ.jpg"}return B}function RewriteAmazonLinksWithTooltips(){for(i=0;i<document.links.length;i++){var A=GetAmazonImageSource(document.links[i].href);if(A!=""){document.links[i].onmouseover=AmazonImgTooltip;document.links[i].onmouseout=DDRIVE_hidetip;var B=new Image();B.src=A}}}function ToolTipCompatibleBrowser(){if(DDRIVE_ns6||DDRIVE_ie){return true}else{return false}}document.onmousemove=DDRIVE_positiontip;function initAmazonLinks(){DDRIVE_tipobj=createToolTipDiv();RewriteAmazonLinksWithTooltips()}addLoadEvent(initAmazonLinks)
