/**
 * misc functions for site
 */

function showTab( elem ) {
    var tabLi = document.getElementById( "tab"+elem );
    tabLi.className = "homeTab current";

    var e = document.getElementById( "tab"+elem+"Content" );
    e.className = "tabVisible";
}

function hideTab( elem ) {
    var tabLi = document.getElementById( "tab"+elem );
    tabLi.className = "homeTab";

    var e = document.getElementById( "tab"+elem+"Content" );
    e.className = "tabHidden";
}

// function to hide a ShowHide div
function hideDiv(divName) {
	var theDiv = document.getElementById(divName+"ShowHide");
	if (theDiv) {
		theDiv.className="divHide";
	}
}

// function to show a ShowHide div
function showDiv(divName) {
	var theDiv = document.getElementById(divName+"ShowHide");
	if (theDiv) {
		theDiv.className="divShow";
	}
}


// function to hide a ShowHide div
function hideDiv2(divName) {
	var theDiv = document.getElementById(divName+"Menu");
	if (theDiv) {
		theDiv.className="menuDropdown dropInvis";
	}
}

// function to show a ShowHide div
function showDiv2(divName) {
	var theDiv = document.getElementById(divName+"Menu");
	if (theDiv) {
		theDiv.className="menuDropdown dropVis";
	}
}


function rollOver(obj)
{
	obj.firstChild.src = obj.firstChild.src.substring(0,obj.firstChild.src.length-4) + "_over.gif";
}

function restore(obj)
{
	obj.firstChild.src = obj.firstChild.src.substring(0,obj.firstChild.src.length-9) + ".gif";
}


