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(f){var b=offsetfrommouse[0];var a=offsetfrommouse[1];var d=document.all?truebody().scrollLeft+truebody().clientWidth:pageXOffset+window.innerWidth-15;var c=document.all?Math.min(truebody().scrollHeight,truebody().clientHeight):Math.min(window.innerHeight);if(typeof f!="undefined"){if(d-f.pageX<380){b=f.pageX-b-400}else{b+=f.pageX}if(c-f.pageY<(currentimageheight+110)){a+=f.pageY-Math.max(0,(110+currentimageheight+f.pageY-c-truebody().scrollTop))}else{a+=f.pageY}}else{if(typeof window.event!="undefined"){if(d-event.clientX<380){b=event.clientX+truebody().scrollLeft-b-400}else{b+=truebody().scrollLeft+event.clientX}if(c-event.clientY<(currentimageheight+110)){a+=event.clientY+truebody().scrollTop-Math.max(0,(110+currentimageheight+event.clientY-c))}else{a+=truebody().scrollTop+event.clientY}}}var d=document.all?truebody().scrollLeft+truebody().clientWidth:pageXOffset+window.innerWidth-15;var c=document.all?Math.max(truebody().scrollHeight,truebody().clientHeight):Math.max(document.body.offsetHeight,window.innerHeight);if(a<0){a=a*-1}gettrailobj().left=b+"px";gettrailobj().top=a+"px"}function Content(){this.title="";this.content=""}var sp=new Content();var pp=new Content();function showtrailContent(c,a,b){if(a>0){currentimageheight=a}document.onmouseover=followmouseContent;if(b=="sp"){if(sp==""){sp=getContent(c)}newHTML=sp}else{if(b=="pp"){if(pp==""){pp=getContent(c)}newHTML=pp}}gettrailContentobjnostyle.innerHTML=newHTML;gettrailContentobj().visibility="visible"}function showContent(b,a){var c="";if(a>0){currentimageheight=a}c='<div class="dhtmlContentSmall"><h2 class="plaincontentrighth2">'+b.title+"</h2>";c=c+b.content+"</div>";document.onmouseover=followmouseContent;gettrailContentobjnostyle().innerHTML=c;gettrailContentobj().visibility="visible"}function loadContent(b,a){var c="";if(a>0){currentimageheight=a}c='<div class="dhtmlContentSmall"><h2 class="plaincontentrighth2">'+b.title+"</h2>";c=c+b.content+"</div>";document.onmouseover=followmouseContent;gettrailContentobjnostyle().innerHTML=c;gettrailContentobj().visibility="hidden"}function getContent(b){var a=getAjaxRequest();a.open("POST",b,false);a.setRequestHeader("Content-Type","application/x-www-form-urlencoded");a.send("");return a.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(f){var b=offsetfrommouse[0];var a=offsetfrommouse[1];var d=document.all?truebody().scrollLeft+truebody().clientWidth:pageXOffset+window.innerWidth-15;var c=document.all?Math.min(truebody().scrollHeight,truebody().clientHeight):Math.min(window.innerHeight);if(typeof f!="undefined"){if(f.pageX>=(d-380)){b=f.pageX-b-12}else{b+=f.pageX}if(f.pageY>=(c-currentimageheight)){a+=f.pageY-12}else{a+=f.pageY}}else{if(typeof window.event!="undefined"){if(event.clientX>=(d-380)){b=event.clientX+truebody().scrollLeft-15}else{b+=truebody().scrollLeft+event.clientX}if(event.clientY<(c-currentimageheight+110)){a+=event.clientY+truebody().scrollTop-30}else{a+=truebody().scrollTop+event.clientY}}}var d=document.all?truebody().scrollLeft+truebody().clientWidth:pageXOffset+window.innerWidth-15;var c=document.all?Math.max(truebody().scrollHeight,truebody().clientHeight):Math.max(document.body.offsetHeight,window.innerHeight);if(a<0){a=a*-1}if(gettrailContentobj().visibility!="visible"){gettrailContentobj().left=b+"px";gettrailContentobj().top=a-160+"px"}};