/* /\/\ -|- ]\[ */
$(BT_init);var BT_open_wait=500;var BT_close_wait=0;var BT_cache_enabled=true;var BT_events=new Array();
var BT_titles=new Array();function BT_init(){$("a.betterTip").parent("div.betterTip").hover(function(){BT_hoverIn($(this).children("a.betterTip")[0]);
return false},function(){BT_hoverOut($(this).children("a.betterTip")[0])});$("a.betterTip").filter(function(A){return $(this).parent("div.betterTip").length==0
}).hover(function(){BT_hoverIn(this)},function(){BT_hoverOut(this)}).click(function(){return false
})}function BT_setOptions(A){if(A["openWait"]!=null){BT_open_wait=A["openWait"]}if(A["closeWait"]!=null){BT_close_wait=A["closeWait"]
}if(A["cacheEnabled"]!=null){BT_cache_enabled=A["cacheEnabled"]}}function BT_hoverIn(B){var C=BT_open_wait;
if($("#BT_cache_"+B.id).length>0){C=0}var A=B.title;if(!BT_titles[B.id]){if(!A||A.toLowerCase()=="$none"){A=""
}else{if(A.toLowerCase()=="$content"){A=$(B).text()}}BT_titles[B.id]=A;B.title=""
}BT_events[B.id]=1;setTimeout(function(){BT_show(B.id)},BT_open_wait)}function BT_hoverOut(A){BT_events[A.id]=0;
setTimeout(function(){BT_remove()},BT_close_wait)}function BT_remove(){$("#BT").remove()
}function BT_show(C){if(BT_events[C]==0){return}var M=$("#"+C);var Q=M[0].href;var I=BT_titles[C];
$("#BT").remove();var P=$("#"+C).parent("div.betterTip");if(P.length>0){C=$("#"+C).parent("div.betterTip")[0].id
}M=$("#"+C);var O=true;if(I.length==0){O=false}var N=Q.split("?",2);var L=BT_parseQuery(N[1]);
N[0]=N[0].substr(N[0].lastIndexOf("/")+1);if(!L["width"]||L["width"].length==0){L["width"]=250
}var G=parseInt(L["width"]);var K=BT_getLeft(C);var R=BT_getWidth(C);var S=K+R+12;
var F=BT_getTop(C);var E="left";var A=self.innerWidth||(document.documentElement&&document.documentElement.clientWidth)||document.body.clientWidth;
var J=K+R+11+G+20;var T=-10;var D=-3;var H=-7;var B=-7;if(A<J){E="right";S=K-12-G;
T=G;D=-1;if(document.all){T-=2}}else{if(O){D=-2}}if(O){E="title_"+E}$("body").append("<div id='BT' class='BT_shadow0' style='top:"+(F-H-8)+"px; left:"+(S-B-8)+"px;'><div class='BT_shadow1'><div class='BT_shadow2'><div id='BT_main' style='width:"+L["width"]+"px; top:"+H+"px; left:"+B+"px;'><div id='BT_arrow_"+E+"' style='top: "+D+"px; left:"+T+"px;'></div>"+(O?"<div id='BT_title'>"+I+"</div>":"")+"<div style='padding:5px'><div id='BT_content'><div class='BT_loader'></div></div></div></div></div></div></div>");
if(N[0].charAt(0)=="$"){$("#BT_content").html($("#"+N[0].substr(1)).html());$("#BT").show()
}else{if(BT_cache_enabled){if($("#BT_cache_"+C).length>0){BT_loadCache(C)}else{$.post(Q,{},function(U){BT_createCacheElement(C,U)
})}}else{$.post(Q,{},function(U){$("#BT_content").html(U);$("#BT").show()})}}}function BT_createCacheElement(A,B){$("body").append("<div id='BT_cache_"+A+"' style='display:none'>"+B+"</div>");
BT_loadCache(A)}function BT_loadCache(A){$("#BT_content").html($("#BT_cache_"+A).html());
$("#BT").show()}function BT_getWidth(B){var A=document.getElementById(B);return A.offsetWidth
}function BT_getLeft(C){var D=$("#"+C)[0];var B=D.offsetLeft;var A=D.offsetParent;
while(A){B+=A.offsetLeft;A=A.offsetParent}return B}function BT_getTop(C){var D=$("#"+C)[0];
var A=D.offsetTop-100;var B=D.offsetParent;while(B){A+=B.offsetTop;B=B.offsetParent
}return A}function BT_parseQuery(F){var A=new Object();if(!F){return A}var B=F.split(/[;&]/);
for(var C=0;C<B.length;C++){var D=B[C].split("=");if(!D||D.length!=2){continue}var E=unescape(D[0]);
var G=unescape(D[1]);G=G.replace(/\+/g," ");A[E]=G}return A};
