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(f){if(ToolTipCompatibleBrowser()&&DDRIVE_enabletip){var c=(DDRIVE_ns6)?f.pageX:event.x+DDRIVE_ietruebody().scrollLeft;var g=(DDRIVE_ns6)?f.pageY:event.y+DDRIVE_ietruebody().scrollTop;var b=DDRIVE_ie&&!window.opera?DDRIVE_ietruebody().clientWidth-event.clientX-DDRIVE_offsetxpoint:window.innerWidth-f.clientX-DDRIVE_offsetxpoint-20;var a=DDRIVE_ie&&!window.opera?DDRIVE_ietruebody().clientHeight-event.clientY-DDRIVE_offsetypoint:window.innerHeight-f.clientY-DDRIVE_offsetypoint-20;var d=(DDRIVE_offsetxpoint<0)?DDRIVE_offsetxpoint*(-1):-1000;if(b<DDRIVE_tipobj.offsetWidth){DDRIVE_tipobj.style.left=DDRIVE_ie?DDRIVE_ietruebody().scrollLeft+event.clientX-DDRIVE_tipobj.offsetWidth+"px":window.pageXOffset+f.clientX-DDRIVE_tipobj.offsetWidth+"px"}else{if(c<d){DDRIVE_tipobj.style.left="5px"}else{DDRIVE_tipobj.style.left=c+DDRIVE_offsetxpoint+"px"}}if(a<DDRIVE_tipobj.offsetHeight){DDRIVE_tipobj.style.top=DDRIVE_ie?DDRIVE_ietruebody().scrollTop+event.clientY-DDRIVE_tipobj.offsetHeight-DDRIVE_offsetypoint+"px":window.pageYOffset+f.clientY-DDRIVE_tipobj.offsetHeight-DDRIVE_offsetypoint+"px"}else{DDRIVE_tipobj.style.top=g+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(f){if(!f){var f=window.event}var c;if(f.target){c=f.target}else{if(f.srcElement){c=f.srcElement}}if(c.nodeType==3){c=c.parentNode}var g=DDRIVE_ietruebody();while(c!=g&&c.nodeName.toLowerCase()!="a"){c=c.parentNode}if(c==g){return false}var h,a,d;if(ToolTipCompatibleBrowser()){var j=GetAmazonImageSource(c.href);if(j!=""){var b=new Image();b.src=j;DDRIVE_tipobj.innerHTML="<img src='"+b.src+"'/>";DDRIVE_tipobj.style.width=b.width+"px";DDRIVE_tipobj.style.display="inline";DDRIVE_enabletip=true;return false}}}function GetAmazonImageSource(a){var b="";var c=a.match(/^http:\/\/www\.amazon\.[^\/]+\/exec\/obidos\/ASIN\/([\w\d]{10})\/[-\w\d]+$/i);if(c&&c.length>1){b="http://"+AMAZON_imageserver+"/images/P/"+c[1]+".01.MZZZZZZZ.jpg"}return b}function RewriteAmazonLinksWithTooltips(){for(i=0;i<document.links.length;i++){var b=GetAmazonImageSource(document.links[i].href);if(b!=""){document.links[i].onmouseover=AmazonImgTooltip;document.links[i].onmouseout=DDRIVE_hidetip;var a=new Image();a.src=b}}}function ToolTipCompatibleBrowser(){if(DDRIVE_ns6||DDRIVE_ie){return true}else{return false}}document.onmousemove=DDRIVE_positiontip;function initAmazonLinks(){DDRIVE_tipobj=createToolTipDiv();RewriteAmazonLinksWithTooltips()}$(function(){initAmazonLinks()});
