function navBar(tdRef, hoverFlag, navStyle) 
{
	if (hoverFlag)
	{
		switch (navStyle) 
		{
		case 1:
			tdRef.style.backgroundColor = '#6699cc';
			tdRef.getElementsByTagName('a')[0].style.color = '#ffffff';
			tdRef.style.cursor = 'hand';
			break;
		case 2:
			tdRef.style.backgroundImage = 'url(images/top_blu.gif)';
			tdRef.getElementsByTagName('a')[0].style.color = '#ffffff';
			tdRef.style.cursor = 'hand';
			break;
		case 3:
			tdRef.style.backgroundColor = '#ffffff';
			tdRef.getElementsByTagName('a')[0].style.color = '#990000';
			tdRef.style.cursor = 'hand';
			break;
		default:
			if (document.getElementsByTagName) 
			{
				tdRef.getElementsByTagName('a')[0].style.color = '#000000';
			}
		}
	} 
	else 
	{
		switch (navStyle) 
		{
		case 1:
			tdRef.style.backgroundColor = '#cccccc';
			tdRef.getElementsByTagName('a')[0].style.color = '#000000';
			break;
		case 2:
			tdRef.style.backgroundImage = 'url(images/top_dk_gray.gif)';
			tdRef.getElementsByTagName('a')[0].style.color = '#000000';
			break;
		case 3:
			tdRef.style.backgroundColor = '#eeeeee';
			tdRef.getElementsByTagName('a')[0].style.color = '#000000';
			break;
		default:
			if (document.getElementsByTagName) 
			{
				tdRef.getElementsByTagName('a')[0].style.color = '#000000';
			}
		}
	}
}

function navBarClick(tdRef, navStyle, url) {
	navBar(tdRef, 0, navStyle);
	goTo(url);
}

function goTo(url) {
	window.location.href = url;
}


function popUp(URL) 
{
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=400,height=300');");
}
