//<![CDATA[
function hideContentRemoveHighlight(contentPanel, contentTab)
{
    hide(contentPanel);
    var tab = document.getElementById(contentTab);
    if (tab) { tab.className = ''; }
}

function swapContent(divID)
{
    hideContentRemoveHighlight('summary', 'summaryTab');
    hideContentRemoveHighlight('overview', 'overviewTab');
    hideContentRemoveHighlight('features', 'featuresTab');
    hideContentRemoveHighlight('popup', 'popupTab');


    document.getElementById(divID).style.display = 'block';

    // For tabs which have 'content' in their id

    document.getElementById(divID + "Tab").className="selected";
}




//For The Show Hide

function hide(id)
{
    var content = document.getElementById(id);
    if (content) { content.style.display = "none"; }
}

function show(id)
{
    var content = document.getElementById(id);
    if (content && content.style.display == "none") { content.style.display = ""; }
}


// SHOWS OR HIDES AN ELEMENT
function showHide(id) {
	if (document.getElementById(id).style.display == "none") {
		document.getElementById(id).style.display = "";
	} else {
		document.getElementById(id).style.display = "none";
	}
}
///]]>
