$(document).ready(JT_init);function JT_init(){$("a.jTip").hover(function(){JT_show(this.href,this.id,this.name)},function(){$('#JT').remove()}).click(function(){return false})}function JT_show(a,b,c){if(c==false)c="&nbsp;";var d=document.documentElement;var w=self.innerWidth||(d&&d.clientWidth)||document.body.clientWidth;var e=w-getAbsoluteLeft(b);var f=getAbsoluteTop(b)-3;var g=a.replace(/^[^\?]+\??/,'');var h=parseQuery(g);if(h['width']===undefined){h['width']=500};if(h['link']!==undefined){$('#'+b).bind('click',function(){window.location=h['link']});$('#'+b).css('cursor','pointer')}if(e>((h['width']*1)+75)){$("body").append("<div id='JT' style='width:"+h['width']*1+"px'><div id='JT_arrow_left'></div><div id='JT_close_left'>"+c+"</div><div id='JT_copy'><div class='JT_loader'><div></div></div>");var i=getElementWidth(b)+11;var j=getAbsoluteLeft(b)+i}else{$("body").append("<div id='JT' style='width:"+h['width']*1+"px'><div id='JT_arrow_right' style='left:"+((h['width']*1)+1)+"px'></div><div id='JT_close_right'>"+c+"</div><div id='JT_copy'><div class='JT_loader'><div></div></div>");var j=getAbsoluteLeft(b)-((h['width']*1)+15)}$('#JT').css({left:j+"px",top:f+"px"});$('#JT').show();$('#JT_copy').load(a)}function getElementWidth(a){x=document.getElementById(a);return x.offsetWidth}function getAbsoluteLeft(a){o=document.getElementById(a);oLeft=o.offsetLeft;while(o.offsetParent!=null){oParent=o.offsetParent;oLeft+=oParent.offsetLeft;o=oParent}return oLeft}function getAbsoluteTop(a){o=document.getElementById(a);oTop=o.offsetTop;while(o.offsetParent!=null){oParent=o.offsetParent;oTop+=oParent.offsetTop;o=oParent}return oTop}function parseQuery(a){var b=new Object();if(!a)return b;var c=a.split(/[;&]/);for(var i=0;i<c.length;i++){var d=c[i].split('=');if(!d||d.length!=2)continue;var e=unescape(d[0]);var f=unescape(d[1]);f=f.replace(/\+/g,' ');b[e]=f}return b}function blockEvents(a){if(a.target){a.preventDefault()}else{a.returnValue=false}}
