/*
	Class:    	fadingLink
	Author:   	Si Forster (based on a script by David Walsh)
	Website:    http://siforster.net
	Version:  	1.0.0
	Date:     	20/04/2010
	Built For:  jQuery 1.2.6
*/

jQuery.fn.fadingLink = function(settings) {
	settings = jQuery.extend({
		color: '#ff8c00',
		duration: 500
	}, settings);
	return this.each(function() {
		var original = $(this).css('color');
		$(this).hover(
			function() { $(this).stop().animate({ color: settings.color }, settings.duration); },
			function() { $(this).stop().animate({ color: original }, settings.duration); }
		);
	});
};
