// Basic tab implementation. Contents do not know when they are shown/hidden
Ext.onReady(function() {
	var showTab = function(t) {
		Ext.get(t.id.slice(0, t.id.length - 1) + "Content" + t.id.slice(-1)).radioClass("content-show");
	};
	var tabs = Ext.select(".tabs");
	tabs.each(function(ts) {
		var firstTab = ts.select("li").item(0);
		firstTab.radioClass("selected");
		showTab(firstTab.dom);
	});
	tabs.on("click", function(e, t) {
		Ext.get(t).radioClass("selected");
		showTab(t);
	}, null, {delegate:"li"});
});

