/**
 * @author Mark.Kennard
 * @email info at ukdesigndirectory dot net
 */

(function($){
	$.fn.enhanceList = function(options){
	$(this).each(function(){
													var strListItemReplacement = ''
			$(this).wrap('<div class="enListContainer"></div>')
			$(this).find('li').each(function(index){
											 
						strListItemReplacement += '<div class="olContainer">';
            strListItemReplacement += '<div class="olNumber">' + (index+1) + '</div>';
            strListItemReplacement += '<div class="olText">' + $(this).html() + '</div>';
            strListItemReplacement += '</div>';
            strListItemReplacement += '<div class="clearFix" />';
			
		 })	 
			$(this).parent().append(strListItemReplacement);  
			$(this).remove()
		})
	}
})(jQuery);
