function JT_show(linkId){$('#JT').remove();var mod_title=linkId.attr('rel');if(mod_title==false)mod_title="&nbsp;";var de=document.documentElement;var w=self.innerWidth||(de&&de.clientWidth)||document.body.clientWidth;var hasArea=w-getAbsoluteLeft(linkId);var clickElementy=getAbsoluteTop(linkId)-3;var params=[];if(params['width']===undefined){params['width']=250};if(params['link']!==undefined){$('#'+linkId).bind('click',function(){window.location=params['link']});$('#'+linkId).css('cursor','pointer');}
if(hasArea>((params['width']*1)+75)){$("body").append("<div id='JT' style='width:"+params['width']*1+"px'><div id='JT_arrow_left'></div><div id='JT_close_left'><strong>"+mod_title+"</strong><a class=JT_close href=javascript:void(0)>X</a><div class=clear_b></div></div><div id='JT_copy'><div class='JT_loader'><div></div></div>");var arrowOffset=getElementWidth(linkId)+11;var clickElementx=getAbsoluteLeft(linkId)+arrowOffset;}else{$("body").append("<div id='JT' style='width:"+params['width']*1+"px'><div id='JT_arrow_right' style='left:"+((params['width']*1)+1)+"px'></div><div id='JT_close_right'><strong>"+mod_title+"</strong><a class=JT_close href=javascript:void(0)>X</a><div class=clear_b></div></div><div id='JT_copy'><div class='JT_loader'><div></div></div>");var clickElementx=getAbsoluteLeft(linkId)-((params['width']*1)+15);}
$('#JT').css({left:clickElementx+"px",top:clickElementy+"px"});var checked_basename=check_ssl(window.location.href);$.ajax({url:checked_basename,data:{ajax:"ajax_calls",mod_id:linkId.attr('id').replace(/highlight_id/,''),what:'highlight'},type:'POST',dataType:'json',success:function(data){$.each(data.highlight,function(json_id,json_data){$('#JT_copy').html(json_data.text);$('.JT_close').bind('click',function(){$('#JT').hide(200);return false;});});}});}
function getElementWidth(objectId){x=objectId.width();return x;}
function getAbsoluteLeft(objectId){o=objectId
oLeft=o.offset();oLeft=oLeft.left;return oLeft}
function getAbsoluteTop(objectId){o=objectId
oTop=o.offset();oTop=oTop.top;return oTop}
function blockEvents(evt){if(evt.target){evt.preventDefault();}else{evt.returnValue=false;}}