var Tables = Class.create({ 

	initialize: function() { 			
		// styling of tables
		$$("tbody").each(function(table) {
			if (table.up("table").className != "clsPersTabell") {
				table.firstDescendant().addClassName("tableHeader");
				var childs = table.childElements(); 
				for (var i=1;i<childs.size();i++) childs[i].addClassName("tableRow").addClassName((i%2) ? "odd" : "even");
			}
		});
	}
	
});

$(document).observe("dom:loaded", function() {
	var tables = new Tables();
});
