/*
 * jQuery Tooltip plugin Extensions
 *
 * Extension, which helps to bind tooltips to elements.
 */
 
(function($) {

    $.fn.bindTooltip = function() {
        $(this).each(function() {
            if ($(this).attr('title') != undefined && $(this).attr('title') != "")
            {
                $(this).qtip({
                    style: {
                        name: 'cream',
                        tip: 'bottomLeft',
                        color: 'black'
                    },
                    position: {
                        corner: {
                            target: 'topRight',
                            tooltip: 'bottomLeft'
                        },
                        adjust: {
                            x: -4,
                            y: 4
                        }
                    }
                });
            }
        });
    };
    
})(jQuery);

