/**
 *  This little snippet will make the text in the target fit in the parent by gradually decreasing the font-size
 *  Requires the parent to have a fixed height
 *  Obviously requires the parent and target to be visible (otherwise height() returns 0)
 */
$.fn.fit = function()
{
	var oTarget = $( this ),
	oParent = oTarget.parent();
	while( oTarget.height() > oParent.height() )
	{
		oTarget.css( { fontSize : "-=1" } );
	}
}
