/**
 * when this file is included, tooltips will be setup
 */
jQuery(qtip_init);
/**
 * initializes qtip tooltips.  made into a seperate function so it can be called after ajax calls
 */
function qtip_init() {
    jQuery('.tipshow').each(function(){
        var tooltip_text = jQuery(this).attr('tooltip');
        if(typeof(tooltip_text)=='string' && tooltip_text.trim().length >0) {
            jQuery(this).qtip({
               content: tooltip_text, // Use the tooltip attribute of the element for the content
               style: 'light', // Give it a crea mstyle to make it stand out
                position: {corner: {target: 'topMiddle', tooltip: 'bottomMiddle'}}
            });
        }
    });
}
