function toggleButton(button,color) {
	var y_position = -1*(22*button) - 1;
	$('topmenu').setStyle("background-position: 0 " + y_position + "px");
	if ( button == activeMenuEntry ) {
		$('topnav').down(button + (button-1)).setStyle("color: white;");
	} else {
		$('topnav').down(activeMenuEntry + (activeMenuEntry-1)).setStyle("color: " + color + ";");
	}
};

function showTab(name) {
    var f = $$('div#content .tab-content');
	for(var i=0; i<f.length; i++){
		Element.hide(f[i]);
	}
    var f = $$('div.tabs a');
	for(var i=0; i<f.length; i++){
		Element.removeClassName(f[i], "selected");
	}
	Element.show('tab-content-' + name);
	Element.addClassName('tab-' + name, "selected");
	return false;
}