$(function() {

	jQuery.fn.highLight = function(options) {
				
		var settings = jQuery.extend( {
			toTextColor : '',
			toBgColor : ''
		}, options);
		
		//Doing the BG stuff		
		if(settings.toBgColor != false){			
			
			var oldBG = $(this).css('background-color');	

			$(this).mouseover(function(){
				$(this).stop();
				$(this).animate({
					backgroundColor: settings.toBgColor
				});
			});
			
			$(this).mouseleave(function(){
				$(this).stop();
				$(this).animate({
					backgroundColor: oldBG
				});
			});
		}
				
		//Doing the TITLE stuff		
		if(settings.toTextColor != false){
			
			var oldColor = $(this).css('color');

			$(this).mouseover(function(){
				$(this).animate({
					color: settings.toTextColor
				});
			});
			
			$(this).mouseleave(function(){
				$(this).animate({
					color: oldColor
				});
			});
		}

	};
});

