<!--
// Browser Deterimination
var isIE4 = (document.all && !document.getElementById) ? true : false;
var isIE5 = (document.all && document.getElementById) ? true : false;
var isNS6 = (!document.all && document.getElementById) ? true : false;

// Naavigation Control Variables
var timeout,previous;

// Show Layer
function show (id) 
{
    if (timeout != null) {
	clearTimeout(timeout);
    }
    if (previous != null && previous != id) {
	hide(previous);
    }

    previous = id;

    if (isIE5 || isNS6) {
        document.getElementById(id).style.visibility = 'visible';
    } else if (IE4) {
    	document.all[id].style.visibility = 'visible';
    } else if (document.layers) {
        document.layers[id].visibility = 'show';
    }
}

// Hide Layer
function hide (id)
{
    if (isIE5 || isNS6) {
        document.getElementById(id).style.visibility = 'hidden';
    } else if (IE4) {
    	document.all[id].style.visibility = 'hidden';
    } else if (document.layers) {
        document.layers[id].visibility = 'hide';
    }
}

// Hide All Layers
function hide_all (x) 
{
    if (previous != null){
	if (x <= 0){			
           x = 25000;
	}
 	timeout = setTimeout('hide(\'' + previous + '\');', x);
    }
	
}

// Show/Hide Menu Item
// (e.g. menu('divtag',this,1); )
function menu (menu,tab,state)
{
    if (state == 1) {
	show(menu);
	mcolor(tab,'#FFFFFF','#6A6A6A');
    } else {
	hide_all(10000);
	mcolor(tab,'','');
    }
}

// Change Text Color and Background Color for an Element
function mcolor (menu,color,bgcolor)
{
    menu.style.color = color;
    menu.style.backgroundColor = bgcolor;
}

// Navigates to a site off the CD
function navigate (url)
{
    if (confirm('This Link Requires Internet Access.\n\nAre you sure you want to connect?')) {
	location.href = url;
    }
}
//-->
