﻿$(function() {
	$("table tbody tr:odd").addClass("odd").addClass("gray");
	$("table tbody tr:even").addClass("even");

	$(":button,:reset,:submit").each(function() {
	$("<button>").insertAfter(this).addClass(this.className).attr("id", this.id).text($(this).val());
	/*.attr("type", $(this).attr("type"))*/
		$(this).remove();
	});

	$("button").each(function() {
		var b = $(this);
		var tt = b.text();
		b.text("").css({ cursor: "pointer" }).prepend("<i></i>").append($("<span>").text(tt).append("<i></i><span></span>"));
	});
});