var currentNav = "0"
var isIE4, isNav4, isNav6


function setBrowser()
{
    if (navigator.appVersion.charAt(0) == "4")
    {
        if (navigator.appName.indexOf("Explorer") >= 0)
        {
            isIE4 = true
        }
        else
        {
            isNav4 = true
        }
    }
    else if (navigator.appVersion.charAt(0) > "4")
    {
        isNav6 = true
    }
}


function setIdProperty(whichFrame, id, property, value)
{
   if (isNav6)
    {
        var styleObject = eval("top."+whichFrame)
        var styleObject = styleObject.document.getElementById(id)
        if (styleObject != null)
        {
            styleObject = styleObject.style
            styleObject[property] = value
        }
    }
    else if (isNav4)
    {
    	var styleObject = eval("top."+whichFrame)
    	styleObject.document[id][property] = value
    }
    else if (isIE4)
    {
    	var styleObject = eval("top."+whichFrame)
    	styleObject.document.all[id].style[property] = value
    }
}



function showProject(whichProject,whichNav)
{
	
	expandNav(whichNav)
	top.contentFrame.document.location = whichProject + ".html"
	
}

function expandNav(whichNav)
{

	if (currentNav != "0")
	{
		setIdProperty("navFrame","c_Disc_" + currentNav,"display","none")
		setIdProperty("navFrame","c_Head_" + currentNav,"display","block")
	}

	setIdProperty("navFrame","c_Head_" + whichNav,"display","none")	
	setIdProperty("navFrame","c_Disc_" + whichNav,"display","block")
		
	currentNav = whichNav

}

function collapseNav(whichNav)
{
	setIdProperty("navFrame","c_Disc_" + whichNav,"display","none")
	setIdProperty("navFrame","c_Head_" + whichNav,"display","block")
	var currentNav = "0"
}



function showBoxName(whichBox)
{	
	setIdProperty("contentFrame",whichBox,"display","block")
}

function hideBoxName(whichBox)
{
	setIdProperty("contentFrame",whichBox,"display","none")
}





