var media_tab = "alpha";

function flick_of_the_switch(nid) {
		if (media_tab != nid) {
			// Turn off the active tab
			var a = document.getElementById(media_tab + "_tab");
			a.className = "";
			// And hide the content
			var a = document.getElementById(media_tab + "_container");
			a.style.display = "none";

			media_tab = nid;

			// Turn on the next tab on
			var n = document.getElementById(media_tab + "_tab");
			n.className = "current";
			// 
			var n = document.getElementById(media_tab + "_container");
			n.style.display = "block";		
	} else {
			media_tab = nid
	}

}
