/* Author: Devin de Vries
   Created: 22 Oct 2011
*/

//FADING BUTTON MOUSEOVERS
//Adds hover spans to items with the class of .btnfade and does a fade-in animation
$('.btnfade').append('<span class="hover"></span>').each(function () {
    var $span = $('> span.hover', this).css('opacity', 0);
    $(this).hover(function () {
        $span.stop().fadeTo(300, 1);
    }, function () {
        $span.stop().fadeTo(300, 0);
    });
});

//AVATAR TOOLTIPS
$('.linkTitle').qtip({
    content: {
        attr: 'title'
    },
    style: {
        classes: 'ui-tooltip-jtools ui-tooltip-shadow ui-tooltip-general',
    },
    position: {
        target: $('#avatar'),
        my: 'right bottom',
        at: 'center left'
    },
    show: {
        delay: 300,
        solo: true
    }
});
























