function GetTooltipContent(element) {
return jQuery("#tooltip_"+(jQuery(element).attr("rel")))[0].innerHTML;}
function Trim(sInString){
sInString = sInString.replace(/ /g," ");
return sInString.replace(/(^\s+)|(\s+$)/g,"");}
function Tooltip(element) {
var content = GetTooltipContent(element);
if (Trim(content) != "")
jQuery(element).tooltip({
bodyHandler: function() {
return content;},
track: false,
showURL: false,
delay: 0,
top: 25,
left: 5});}
function BindEvents() {
jQuery(".with_tooltip").each(function() { Tooltip(this); });
jQuery(".with_tooltip").each(function() { jQuery(this).rebindTooltipEvents(); });}
function TooltipOnPostBack(){
BindEvents();}
jQuery(document).ready(function() {
BindEvents();});
