/**
 * adds a colour fade to the selected items
 * requires jquery.color.js
 *
 * @example: $("form .input").inputFade("#FFC", 300);
 *
 * @author Richard Allsebrook <richard@futurate.com>
 * @version 1.0.0
 */
$.fn.inputFade = function (colour, speed) {

	$(this).each(function () {
	
		var originalColour = $(this).css("background-color");
	
		//alert(this);
		$(this).focus(function () {
			$(this).animate({ 
    		backgroundColor: colour
  		}, speed );
		});
		
		$(this).blur(function () {
			$(this).animate({ 
    		backgroundColor: originalColour
  		}, speed );
		});
	
	});
};
