function showBranch(branch) 
{
	var objBranch = 
		document.getElementById(branch).style;
	if(objBranch.display == "block")
		objBranch.display = "none";
	else
		objBranch.display = "block";
}

var detect = navigator.userAgent.toLowerCase();
var OS,browser,version,total,thestring;

function supportsXSLT()
{
    var supports = false;
    if (checkIt('konqueror')) supports = true;
    else if (checkIt('safari')) supports = true;
    else if (checkIt('omniweb')) supports = false;
    else if (checkIt('opera')) supports = false;
    else if (checkIt('webtv')) supports = false;
    else if (checkIt('icab')) supports = false;
    else if (checkIt('firefox')) supports = true;
    else if (checkIt('msie'))
    {
        if(getVersion() >= 6)
        {
            supports = true;
        }
    }
    else if (!checkIt('compatible'))
    {
        //browser = "Netscape Navigator"
        //version = detect.charAt(8);
    }
    else browser = "An unknown browser";
    
    return supports;
}

function getVersion()
{
    if (!version) version = detect.charAt(place + thestring.length);
    return version;
}

function checkIt(string)
{
    place = detect.indexOf(string) + 1;
    thestring = string;
    return place;
}
