// JavaScript Document
window.onload = onLoad;

function onLoad()
{
    hideAll();
    showItem("p1");
}
function fire(itemName)
{
	hideAll();
	showItem(itemName);
}
function hideAll()
{
    var portEntryCount = 4;
    for (var i=1; i<=portEntryCount; i++)
    {
        var portItem = document.getElementById("p" + i);
		if (portItem == null) return;
		portItem.className = 'invis';
	}
}
function showItem(itemName)
{
	var portItem = document.getElementById(itemName);
    if (portItem == null) return;
    portItem.className = '';
}       
        
        
        
        
        
        
        
        
        
        
        /*
        if(checked == true)
            expandQuestion("a" + i);
        else
            collapseQuestion("a" + i);
    }
    if(checked == false)
    {
      var sa = document.getElementById("chkViewAll");
        sa.checked = false;
    }
}

function toggleQuestion(aName)
{
    var ans = document.getElementById(aName);
    if (ans == null) return;
    if (ans.className == '')
    {
        ans.className = 'invis';
        var sa = document.getElementById("chkViewAll");
        sa.checked = false;
    }
    else
    {
        ans.className = '';
    }
}

function expandQuestion(aName)
{
    var ans = document.getElementById(aName);
    if (ans == null) return;
    ans.className = '';
}

function collapseQuestion(aName)
{
    var ans = document.getElementById(aName);
    if (ans == null) return;
    ans.className = 'invis';
}
*/