var offsetfrommouse=[30,15]; var displayduration=0; var currentimageheight = 500; var defaultimageheight = 40; var defaultimagewidth = 40; a=new Image(100,25); b=new Image(100,25); c=new Image(100,25); a.src="/images/loading.gif"; b.src="/images/wen.gif"; c.src="/images/bnow.gif"; document.write(''); function gettrailobj(){if (document.getElementById) return document.getElementById("trailimageid").style; else if (document.all) return document.all.trailimagid.style}function gettrailobjnostyle(){if (document.getElementById) return document.getElementById("trailimageid"); else if (document.all) return document.all.trailimagid} function truebody(){return (!window.opera && document.compatMode && document.compatMode!="BackCompat") ? document.documentElement : document.body} function showtrail(imagename,title,description,ratingaverage,ratingnumber,showthumb,height,hres,word){ if(description == ''){ defaultimageheight = height+100; } else { defaultimageheight = height+200; } defaultimagewidth = 520; document.onmousemove=followmouse; cameraHTML = ''; newHTML = '
'; if (ratingnumber == 0){ratingaverage = 0;} cameraHTML = ratingaverage + '(' + ratingnumber + ')'; cameraHTML = ''; newHTML = newHTML + '

' + title + '

'; newHTML = newHTML + '
'; // newHTML = newHTML + '
Has matching MS Word template: ' + word + 'Backgrounds Size: ' + hres + '
 ' + cameraHTML + '

'; newHTML = newHTML + '

' + description + '


'; newHTML = newHTML + '
'; newHTML = newHTML + '
'; gettrailobjnostyle().innerHTML = newHTML; gettrailobj().visibility = "visible"; gettrailobj().display="block";} function hidetrail(){gettrailobj().visibility="hidden"; document.onmousemove=""; gettrailobj().left="-800px";} function followmouse(e){ var xcoord=offsetfrommouse[0]; var ycoord=offsetfrommouse[1]; 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"){ if (docwidth - e.pageX < defaultimagewidth + 2*offsetfrommouse[0]){ xcoord = e.pageX - xcoord - defaultimagewidth; } else { xcoord += e.pageX; } if (docheight - e.pageY < defaultimageheight + 2*offsetfrommouse[1]){ ycoord += e.pageY - Math.max(0,(2*offsetfrommouse[1] + defaultimageheight + e.pageY - docheight - truebody().scrollTop)); } else { ycoord += e.pageY; } } else if (typeof window.event != "undefined"){if (docwidth - event.clientX < defaultimagewidth + 2*offsetfrommouse[0]){xcoord = event.clientX + truebody().scrollLeft - xcoord - defaultimagewidth;} else {xcoord += truebody().scrollLeft+event.clientX} if (docheight - event.clientY < (defaultimageheight + 2*offsetfrommouse[1])){ycoord += event.clientY + truebody().scrollTop - Math.max(0,(2*offsetfrommouse[1] + defaultimageheight + event.clientY - docheight));} else {ycoord += truebody().scrollTop + event.clientY;} } gettrailobj().left=xcoord+"px"; gettrailobj().top=ycoord+"px" }