TabsClass = Class.create();
TabsClass.prototype = {
	opened: '',
	fader: false,
	
	initialize: function(opened,fader) {
		this.fader = fader;
		this.opened = opened;
	},
	
	openTab: function(tab) {
		opened = this.opened;
		$(opened).style.position = "fixed";
		
		
		if (this.fader) {
			Effect.Fade(opened,{duration:.4, beforeStart:function() { $(opened).style.position = "fixed"; }, afterFinish: function() { $(opened).style.position = "relative"; } });
			Effect.Appear(tab,{duration:.4, beforeStart:function() { $(tab).style.position = "fixed"; }, afterFinish: function() { $(tab).style.position = "relative"; } });
		} else {
			Element.hide(this.opened);
			Element.show(tab);
		}
		
		$(this.opened).style.position = "relative";
		
		
		this.opened = tab;
	}	
}