function Selector() {
	this.names = new Array();
	this.addName = function(name) {
		this.names.push(name);
	}
	this.select = function() {
		for (n in this.names) {
			tabs = document.getElementsByName(this.names[n]);
			for (x in tabs) {
				 tab = tabs[x];
				 tab.className += " selected";
				 if (tab.nodeName == "UL") {
				     tab.style.display="block";
				 }
			}
		}
	}
}

var tabSelector = new Selector();