var isNav4, isNav6, isIE4;

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( id, property, value )
{
		setBrowser();
    if (isNav6)
    {
        var styleObject = document.getElementById( id );
        if (styleObject != null)
        {
            styleObject = styleObject.style;
            styleObject[ property ] = value;
        }
    }
    else if (isNav4)
    {
        document[id][property] = value;
    }
    else if (isIE4)
    {
         document.all[id].style[property] = value;
    }
}

function hideAll()
{
var i=1;
for (i=1;i<=5;i++)
	{ setIdProperty("c" + i, "display", "none"); 
    setIdProperty("e" + i, "display", "inline");
	}
}

function showDiv( divNum )
{
	hideAll();
	setIdProperty("c" + divNum, "display", "inline");
	setIdProperty("li" + divNum, "background", "#B7B7B7");
}

