(function($){
	$.fn.jNice = function(options){
		var self = this;
	
		/* each form */
		this.each(function(){
			/***************************
			  Buttons
			 ***************************/
			var setButton = function(){
				$(this).replaceWith('<button id="'+ this.id +'" name="'+ this.name +'" type="'+ this.type +'" class="'+ this.className +'"><span>'+ $(this).attr('value') +'</span>');
			};
			$('input:submit, input:reset', this).each(setButton);

		}); /* End Form each */
	
	};/* End the Plugin */

	/* Automatically apply to any forms with class jNice */
	$(function(){$('form.jNice').jNice();});

})(jQuery);
				   
