var offsetfrommouse=[15,15];var displayduration=0;var currentimageheight=270;var isMouseOnContent=false;if(document.getElementById||document.all){document.write('<div id="trailimageid">');document.write("</div>");}if(document.getElementById||document.all){document.write('<div id="trailcontentid" onmouseover="isMouseOnContent = true;" onmouseout="isMouseOnContent = false;">');document.write("</div>");}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 gettrailContentobj(){if(document.getElementById){return document.getElementById("trailcontentid").style;}else{if(document.all){return document.all.trailcontentid.style;}}}function gettrailContentobjnostyle(){if(document.getElementById){return document.getElementById("trailcontentid");}else{if(document.all){return document.all.trailcontentid;}}}function truebody(){return(!window.opera&&document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body;}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<380){xcoord=e.pageX-xcoord-400;}else{xcoord+=e.pageX;}if(docheight-e.pageY<(currentimageheight+110)){ycoord+=e.pageY-Math.max(0,(110+currentimageheight+e.pageY-docheight-truebody().scrollTop));}else{ycoord+=e.pageY;}}else{if(typeof window.event!="undefined"){if(docwidth-event.clientX<380){xcoord=event.clientX+truebody().scrollLeft-xcoord-400;}else{xcoord+=truebody().scrollLeft+event.clientX;}if(docheight-event.clientY<(currentimageheight+110)){ycoord+=event.clientY+truebody().scrollTop-Math.max(0,(110+currentimageheight+event.clientY-docheight));}else{ycoord+=truebody().scrollTop+event.clientY;}}}var docwidth=document.all?truebody().scrollLeft+truebody().clientWidth:pageXOffset+window.innerWidth-15;var docheight=document.all?Math.max(truebody().scrollHeight,truebody().clientHeight):Math.max(document.body.offsetHeight,window.innerHeight);if(ycoord<0){ycoord=ycoord*-1;}gettrailobj().left=xcoord+"px";gettrailobj().top=ycoord+"px";}function Content(){this.title="";this.content="";}var sp=new Content();var pp=new Content();function showtrailContent(url,height,name){if(height>0){currentimageheight=height;}document.onmouseover=followmouseContent;if(name=="sp"){if(sp==""){sp=getContent(url);}newHTML=sp;}else{if(name=="pp"){if(pp==""){pp=getContent(url);}newHTML=pp;}}gettrailContentobjnostyle.innerHTML=newHTML;gettrailContentobj().visibility="visible";}function showContent(content,height){var newHTML="";if(height>0){currentimageheight=height;}newHTML='<div class="dhtmlContentSmall"><h2 class="plaincontentrighth2">'+content.title+"</h2>";newHTML=newHTML+content.content+"</div>";document.onmouseover=followmouseContent;gettrailContentobjnostyle().innerHTML=newHTML;gettrailContentobj().visibility="visible";}function loadContent(content,height){var newHTML="";if(height>0){currentimageheight=height;}newHTML='<div class="dhtmlContentSmall"><h2 class="plaincontentrighth2">'+content.title+"</h2>";newHTML=newHTML+content.content+"</div>";document.onmouseover=followmouseContent;gettrailContentobjnostyle().innerHTML=newHTML;gettrailContentobj().visibility="hidden";}function getContent(url){var openRequest=getAjaxRequest();openRequest.open("POST",url,false);openRequest.setRequestHeader("Content-Type","application/x-www-form-urlencoded");openRequest.send("");return openRequest.responseText;}function hidetrail(){gettrailobj().visibility="hidden";gettrailobj().left="-500px";}var contentTimer;function hideTrailContent(){clearInterval(contentTimer);contentTimer=setInterval("hideContent()",20);}function hideContent(){if(!isMouseOnContent){gettrailContentobj().visibility="hidden";gettrailContentobjnostyle().innerHTML="";gettrailContentobj().width="0px";gettrailContentobj().height="0px";document.onmousemove="";clearInterval(contentTimer);gettrailContentobj().left="-500px";}}function followmouseContent(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(e.pageX>=(docwidth-380)){xcoord=e.pageX-xcoord-12;}else{xcoord+=e.pageX;}if(e.pageY>=(docheight-currentimageheight)){ycoord+=e.pageY-12;}else{ycoord+=e.pageY;}}else{if(typeof window.event!="undefined"){if(event.clientX>=(docwidth-380)){xcoord=event.clientX+truebody().scrollLeft-15;}else{xcoord+=truebody().scrollLeft+event.clientX;}if(event.clientY<(docheight-currentimageheight+110)){ycoord+=event.clientY+truebody().scrollTop-30;}else{ycoord+=truebody().scrollTop+event.clientY;}}}var docwidth=document.all?truebody().scrollLeft+truebody().clientWidth:pageXOffset+window.innerWidth-15;var docheight=document.all?Math.max(truebody().scrollHeight,truebody().clientHeight):Math.max(document.body.offsetHeight,window.innerHeight);if(ycoord<0){ycoord=ycoord*-1;}if(gettrailContentobj().visibility!="visible"){gettrailContentobj().left=xcoord+"px";gettrailContentobj().top=ycoord-160+"px";}}