var xmlobj=null;var loaded=false;var pics=new Array();var i=0;var heights=new Array();var widths=new Array();var captions=new Array();function ClearArrays(){UnTip();captions.length=0;heights.length=0;widths.length=0;return true}function ShowTrail(f,e){var d;var a="getCompDetails-fap.asp?imageid="+f.name;var b=parseInt(f.id.substring(1));var c=b+1;if(e==1){d=f.src.replace("/4/","/3/")}else{d=f.src.replace("/4/","/6/")}if(captions[b]&&widths[b]&&heights[b]){processImage(d,c,widths[b],heights[b],captions[b])}else{sendRequest(a,d,c)}return true}function sendRequest(b,c,a){if(xmlobj!=null&&xmlobj.readyState!=0&&xmlobj.readyState!=4){xmlobj.abort()}try{xmlobj=new XMLHttpRequest()}catch(d){try{xmlobj=new ActiveXObject("Microsoft.XMLHTTP")}catch(d){xmlobj=null;return false}}try{xmlobj.onreadystatechange=function(){stateChecker(c,a)};xmlobj.open("GET",b,true);xmlobj.send(null)}catch(d){UnTip();xmlobj=null;return false}}function HideTrail(){if(xmlobj!=null&&xmlobj.readyState!=0&&xmlobj.readyState!=4){xmlobj.abort()}UnTip()}function stateChecker(d,c){var e,b,a;if(xmlobj.readyState==4){a=xmlobj.responseText.substring(6);e=parseInt(xmlobj.responseText.substring(0,3));b=parseInt(xmlobj.responseText.substring(3,6));processImage(d,c,e,b,a);loaded=true}}function processImage(l,o,b,d,r){var q,p,t,h,e,s;var u;var m=o-1;var n="i"+m;var g=document.getElementById(n);var f=g.offsetLeft;var c=g.offsetTop;while(g.offsetParent){f=f+g.offsetParent.offsetLeft;c=c+g.offsetParent.offsetTop;if(g==document.getElementsByTagName("body")[0]){break}else{g=g.offsetParent}}q=f+Math.round(document.getElementById(n).width/2);p=c+Math.round(document.getElementById(n).height/2);t=90;e=f;s=tt_GetClientW()-e;if(l.indexOf("/6/")>-1){u=l.replace("/6/","/4/")}else{u=l.replace("/3/","/4/")}var a='<table border="0" cellspacing="0" cellpadding="0"><tr><td style="padding:0px"><div class="container"><div class="top-left"></div><div class="top-right"></div><div class="inside"><table class="notopgap"><tr><td valign="top" style="width:'+b+'px;" ><IMG style="width:'+b+"px;height:"+d+'px; vertical-align:top;" SRC="'+u+'"/><IMG style="width:'+b+"px;height:"+parseInt(d+20)+"px;margin-left:-"+parseInt(b)+"px;margin-top:-"+0+'px" SRC="'+l+'"/></td></tr></table><div class="caption">'+r+'</div><p class="nobottomgap"></p></div><div class="bottom-left"></div><div class="bottom-right"></div></div></td></tr></table>';captions[m]=r;widths[m]=b;heights[m]=d;if(b!=0){b=b+20}Tip(a,IMGCENTERX,q,IMGCENTERY,p,OFFSETX,t,OFFSETY,-150,FOLLOWMOUSE,false,HEIGHT,0,WIDTH,b,DURATION,11000);return true};