var offsetfrommouse=[0,-160];var displayduration=0;var defaultimageheight=40;var defaultimagewidth=40;var timer;function gettrailobj(){if(document.getElementById){return document.getElementById("preview_div").style;}}
function gettrailobjnostyle(){if(document.getElementById){return document.getElementById("preview_div");}}
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,category,width,height){i=imagename;t=title;c=category;w=width;h=height;timer=setTimeout("show('"+i+"',t,c,w,h);",200);}
function show(imagename,title,category,width,height){var docwidth=document.all?truebody().scrollLeft+truebody().clientWidth:pageXOffset+window.innerWidth-offsetfrommouse[0];var docheight=document.all?Math.min(truebody().scrollHeight,truebody().clientHeight):Math.min(window.innerHeight);if((navigator.userAgent.indexOf("Konqueror")==-1||navigator.userAgent.indexOf("Firefox")!=-1||(navigator.userAgent.indexOf("Opera")==-1&&navigator.appVersion.indexOf("MSIE")!=-1))&&(docwidth>650&&docheight>500)){(width==0)?width=defaultimagewidth:'';(height==0)?height=defaultimageheight:'';defaultimageheight=height;defaultimagewidth=width;gettrailobj().onmouseover=followmouse;document.onmousemove=followmouse;newHTML='<div class="preview_wrapper">';newHTML+='<img src="images/preview_top.gif" align="absbottom" />';newHTML+='<div class="border_preview">';newHTML+='<div style="float:left; margin-top:6px; margin-left:6px; margin-right:15px;">';newHTML+='<div class="rank_top">RANK</div>';newHTML+='<div class="rank_bot">#</div>';newHTML+='</div>';newHTML+='<div style="float:left; margin-top:8px;">';newHTML+='<h6>'+title+'</h6>';newHTML+='<h5>'+category+'</h5>';newHTML+='</div>';newHTML+='<div class="spacer"></div>';newHTML+='<img src="'+imagename+'" border="0" />';newHTML+='<div style="clear:both;"></div>';newHTML+='</div>';newHTML+='<img src="images/preview_bottom.gif" />';newHTML+='</div>';gettrailobjnostyle().innerHTML=newHTML;gettrailobj().display="block";}}
function followmouse(e){var xcoord=offsetfrommouse[0];var ycoord=offsetfrommouse[1]-defaultimageheight;var docwidth=document.all?truebody().scrollLeft+truebody().clientWidth:pageXOffset+window.innerWidth-15;var docheight=document.all?Math.min(truebody().scrollHeight,truebody().clientHeight):Math.min(window.innerHeight);if(typeof e!="undefined"){xcoord+=e.pageX;ycoord+=e.pageY;}else if(typeof window.event!="undefined"){xcoord+=truebody().scrollLeft+event.clientX;ycoord+=truebody().scrollTop+event.clientY;}
gettrailobj().left=xcoord+"px";gettrailobj().top=ycoord+"px";}