// JavaScript Document
var tab = function(href, divId)
{
	// Clear the links background
	tabs	= href.parentNode.getElementsByTagName('a');
	
	for (a = 0; a < tabs.length; a++) {
		tabs[a].className	= "";
	}
	
	// Set the background color of the selected link
	href.className	= "on";
	
	// Hide all the divs
	contentDiv	= document.getElementById(divId);
	contentDivs	= contentDiv.parentNode.getElementsByTagName('div');
	for (a = 0; a < contentDivs.length; a++) {
		contentDivs[a].style.display	= "none";
	}
	
	// Display the selected div
	contentDiv.style.display	= "";
		
	return false;
}
