﻿/*! 
* Copyright (c) FoxMobile Development 2011
*/
(function ($) {
    $.fn.fadeBackground = function (activeColor, activeSpeed, defaultColor, defaultSpeed) {
        $(this).css("background-color", defaultColor);
        $(this).hover(function () {
            $(this).stop().animate({ backgroundColor: activeColor }, activeSpeed);
        }, function () {
            $(this).stop().animate({ backgroundColor: defaultColor }, defaultSpeed);
        });
    };
})(jQuery);

(function ($) {
    $.fn.fadeForeground = function (activeColor, activeSpeed, defaultColor, defaultSpeed) {
        $(this).css("background-color", defaultColor);
        $(this).hover(function () {
            $(this).stop().animate({ color: activeColor }, activeSpeed);
        }, function () {
            $(this).stop().animate({ color: defaultColor }, defaultSpeed);
        });
    };
})(jQuery);

