(function ($)
{
	jQuery.fn.niceOrderedLists = function (options) {
		settings = $.extend ({
			includePeriod: true,
			alternatingClasses: false,
			inlineStyling: true,
			numberSize: '32pt',
			numberColor: '#006699',
			numberFont: 'Georgia, serif',
			numberClass: 'drop_number',
			contentClass: 'li_content',
			startingNumber: 1
		}, options);
		return this.each(function()
		{
			$(this).find ("li").each (function (index)
			{
				$(this).css("list-style-type","none");
				var clss = (index%2) ?  'even' : 'odd';
				str = '<span class="' + settings['numberClass'];
				if (settings['alternatingClasses'])
				{
					str += ' ' + clss + ' ';
				}
				str += '" ';
				
				if (settings['inlineStyling'])
				{
					str += ' style="font-size:'+settings['numberSize']+';text-align:right;padding-right:0px;color:'+settings['numberColor']+';font-family:'+settings['numberFont']+'"'
				}
				str += '>' + (index+settings['startingNumber']);
				if (settings['includePeriod'])
				{
					str += ')';
				}
				str += '</span> <span class="' + settings['contentClass'];
				if (settings['alternatingClasses'])
				{
					str += ' ' + clss + ' ';
				}
				str += '" ';
				if (settings['inlineStyling'])
				{
					str += ' style="padding-left:2px;margin-bottom:2px;padding-top: 2px;" ';
				}
				str += '>' + $(this).html() + '</span>';
				$(this).html(str);
			});
			$(this).append('<br style="clear: both" />');
		});
	};
})(jQuery);
