function switchTo(idPrefix) {
	// CSS selectors to choose the tabs and labels
	var oldTab = $$('#tabContent .on')[0];
	var newTab = $$('#tabContent #' + idPrefix + 'Tab')[0];
	
	var oldLabel = $$('.tabs .on')[0];
	var newLabel = $$('.tabs #' + idPrefix + 'Label')[0];
	
	
	var hideFx = new Fx.Tween(oldTab.id);
	var showFx = new Fx.Tween(newTab.id);
	
	hideFx.addEvent('complete', function() {
		oldTab.className = 'off';
		oldLabel.className = 'off';
		showFx.set('opacity', 0.0);
		newTab.className = 'on';
		newLabel.className = 'on';
		showFx.start('opacity', 0.0, 1.0);
	});
	
	hideFx.start('opacity', 1.0, 0.0);
}
