// JavaScript Document
/*
 * Tab links
 */
var laphTab = function(href, divId)
{
	// Clear the links background
	links	= href.parentNode.getElementsByTagName('a');
	for (a = 0; a < links.length; a++) {
		links[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;
}

