// DO NOT UPDATE!!! THIS IS A MODIFIED PLUGIN FOR AMALIA WEBSITE

(function($){
	$.fn.miniature = function(options) {
		var defaults = {
			color:null,
			float:null,
			fontSize:null			
		};
		
		return this.each(function() {
			var html = $("<div>");
			$.each($(this).get(0).childNodes, function(i, o) {	
			
				
					
				
				if(o.nodeType == 3) { //text node
				if(i == 0) {
					var text = $.trim($(o).text());
					
					if(text.length > 0) {
						var first = "<span class='-jquery-miniature -jquery-miniature-"+text.charAt(0).toLowerCase()+"'>"+text.charAt(0)+"</span>";
						html.append(first + text.substr(1));
					}
					} else {
						var text = $(o).text();	
						
						html.append(text);					
					}
				}
				else
						html.append($(o).clone());
				
			});
			$(this).html(html.html());		
			
			
			$(this).wrapInner('<span class="regular-text" />');
			$(this).prepend($('span.-jquery-miniature').remove());
			
		});
	};
})(jQuery);
