function ShowcaseSwitcher(){
	this.getActiveShowcase = function(){
		return showcaseContainer.down('.' + activeShowcaseClass);
	}

	this.switchToShowcase = function(showcase){
		if (showcase == this.getActiveShowcase()){
			// nothing to do 
			return false; 
		}
		this.hideShowcase(this.getActiveShowcase());
		this.showShowcase(showcase);
		return false;
	}

	this.showShowcase = function(showcase){
		showcase.fade({
			beforeStart:
				function(){
					showcase.addClassName(activeShowcaseClass);
					showcase.setOpacity(0);
					showcase.show();
				},
			duration: 0.5, 
			from: 0, 
			to: 1,
			queue: {position: 'end', scope: 'showcaseIn'}});
		return false;
	}
	
	this.hideShowcase = function(showcase){
		showcase.fade({
			duration: 0.5, 
			from: 1, 
			to: 0,
			queue: {position: 'end', scope: 'showcaseOut'},
			afterFinish: 
				function(){
					showcase.hide();
					showcase.removeClassName(activeShowcaseClass);
				}
			});
		return false;
	}
}
