$.fn.highlight = function(backgroundColor)
{

	if (backgroundColor == null)
	{
		backgroundColor = "#FFFFCF";
	}
    var color = backgroundColor;

    var currentColor = $(this).css('background-color');

    if (currentColor == 'transparent')

    {

        $(this).parents().each(function()

        {

            if ($(this).css('background-color') != 'transparent')

            {

              currentColor = $(this).css('background-color');

              return false;

            }

        });

    }
    $(this).animate({ backgroundColor: color }, 2000).animate({ backgroundColor: currentColor }, 2000);
} 
