var offsetfrommouse=[15,15]; //image x,y offsets from cursor position in pixels. Enter 0,0 for no offset var displayduration=1; //duration in seconds image should remain visible. 0 for always. var currentimageheight = 450; // maximum image size. var t_id = 0; var currentimagewidth = 430; // maximum image size. var timer; var pos=0; var dir=2; var len=0; function getSize() { var myWidth = 0, myHeight = 0; if( typeof( window.innerWidth ) == 'number' ) { myWidth = window.innerWidth; myHeight = window.innerHeight; } else if( document.documentElement && ( document.documentElement.clientWidth ||document.documentElement.clientHeight ) ) { myWidth = document.documentElement.clientWidth; myHeight = document.documentElement.clientHeight; } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) { myWidth = document.body.clientWidth; myHeight = document.body.clientHeight; } return [myWidth,myHeight]; } function getScrollXY() { var scrOfX = 0, scrOfY = 0; if( typeof( window.pageYOffset ) == 'number' ) { scrOfY = window.pageYOffset; scrOfX = window.pageXOffset; } else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) { scrOfY = document.body.scrollTop; scrOfX = document.body.scrollLeft; } else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) { scrOfY = document.documentElement.scrollTop; scrOfX = document.documentElement.scrollLeft; } return[scrOfX,scrOfY]; } function gettrailobj(){ if (document.getElementById) return document.getElementById("preview_div").style else if (document.all) return document.all.trailimagid.style } function gettrailobjnostyle(){ if (document.getElementById) return document.getElementById("preview_div") else if (document.all) return document.all.trailimagid } function truebody(){ return (!window.opera && document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body } function hidetrail(){ gettrailobj().display= "none"; document.onmousemove="" gettrailobj().left="-500px" clearTimeout(timer); } function showtrail(imagename,title,showthumb){ i = imagename t = title s = showthumb timer = setTimeout("show('"+i+"',t,s);",200); } function show(imagename,title,showthumb){ document.onmousemove=followmouse; t_id = setInterval(animate,20); newHTML = '