function Tabs(ids){
	this.tabs = new Array();

	for(var i = 0; i < ids.length; i++){
		this.tabs[i] = {};
		this.tabs[i].id = ids[i];
		this.tabs[i].visible = false;
	}
	
	this.toggle = function(id){
		for(var i = 0; i < this.tabs.length; i++){
			if(this.tabs[i].id != id && this.tabs[i].visible){
				new Effect.toggle(this.tabs[i].id, 'appear', {duration: 0.1 });
				this.tabs[i].visible = false;
				//document.getElementById(this.tabs[i].id + "Link").className = "playerOptionsLink";
			}
		}
		new Effect.toggle(id, 'appear', {duration: 0.3});
		for(var i = 0; i < this.tabs.length; i++){
			if(this.tabs[i].id == id){
				this.tabs[i].visible = !this.tabs[i].visible;
				/*if(this.tabs[i].visible){
					document.getElementById(this.tabs[i].id + "Link").className = "playerOptionsLinkSel";
				}else{
					document.getElementById(this.tabs[i].id + "Link").className = "playerOptionsLink";
				}*/
			}
		}
	}
}
		
		
