
/*

	linkFade.js
	version 0.1.0
	MIT License
	First Created: 07/18/10
	Last Revised: 07/18/10
	edward@edwardhotchkiss.com
	http://www.edwardhotchkiss.com/

*/

(function($) {

	$.linkFade = function (options) {

    	var settings = {
    		selector   : "a",
    		speed      : 500,
    		offColor   : "#f920a2",
    		hoverColor : "#a5a5a5"
    	};

    	if (options) {
        	jQuery.extend(settings, options);
   	 	};

		function applyLinkFaders() {
			$(settings.selector).each(function() {
				$(this).hover(
					function() {
						$(this).animate({ color : settings.hoverColor }, settings.speed);
					},
					function(){
						$(this).animate({ color : settings.offColor }, settings.speed);
					}
				);
			});
		};
		
		applyLinkFaders();

	}
	
})(jQuery);

$(document).ready(function() {	

	$.linkFade({
	   	selector   : "a.fader",
    	offColor   : "#f920a2",
    	hoverColor : "#a5a5a5"
  	});

});

/* EOF */
