TK.registerNS("TK.tooltip");TK.tooltip=new function(){this.registerGolferTT=function(selector){$(selector).each(function(){$(this).qtip({content:{text:"
"+$(this).data("alias")+"
",ajax:{url:"/shared/TooltipQuery",type:"GET",data:{type:"golfer",gid:$(this).data("gid")}}},style:{tip:"bottomCenter",classes:"qtip-bootstrap"},position:{at:"top center",my:"bottom center"},show:{solo:true},hide:{delay:300,fixed:true}});
});};this.registerGroupTT=function(selector){$(selector).each(function(){$(this).qtip({content:{text:""+$(this).data("title")+"
",ajax:{url:"/shared/TooltipQuery",type:"GET",data:{type:"group",grid:$(this).data("grid")}}},style:{tip:"bottomCenter",classes:"qtip-bootstrap ui-tooltip-wide"},position:{at:"top center",my:"bottom center"},show:{solo:true},hide:{delay:300,fixed:true}});
});};this.registerGolferGalleryTT=function(selector){$(selector).each(function(){$(this).qtip({content:{text:""+$(this).data("title")+" ("+$(this).data("count")+")
",ajax:{url:"/shared/TooltipQuery",type:"GET",data:{type:"golfergallery",galid:$(this).data("galid")}}},style:{tip:"bottomCenter",classes:"qtip-bootstrap"},position:{at:"top center",my:"bottom center"},show:{solo:true},hide:{delay:300,fixed:true}});
});};this.registerGolfClubTT=function(selector){$(selector).each(function(){$(this).qtip({content:{text:""+$(this).data("title")+")
",ajax:{url:"/shared/TooltipQuery",type:"GET",data:{type:"golfclub",gcid:$(this).data("gcid")}}},style:{tip:"leftCenter",classes:"qtip-bootstrap"},position:{at:"right center",my:"left center"},show:{solo:true},hide:{delay:300,fixed:true}});
});};this.registerClubTT=function(selector){$(selector).qtip({content:{text:""+$(this).attr("data-title")+"
",ajax:{url:"/shared/TooltipQuery",type:"GET",data:{type:"club",cid:$(this).attr("data-cid")}}},style:{tip:"bottomLeft",classes:"qtip-bootstrap ui-tooltip-wide"},position:{at:"top right",my:"bottom left"},show:{solo:true},hide:{delay:300,fixed:true}});
};this.init=function(){TK.tooltip.registerGolferTT('[tt="golfertt"]');TK.tooltip.registerGroupTT('[tt="grouptt"]');TK.tooltip.registerGolferGalleryTT('[tt="golfergallerytt"]');};};$(document).ready(function(){TK.tooltip.init();});