var ns4=(document.layers)? true:false;
var ns6=(document.getElementById)? true:false;
var ie4=(document.all)? true:false;
var ie5=false;

if(ie4)
{
	if((navigator.userAgent.indexOf('MSIE 5')> 0)||(navigator.userAgent.indexOf('MSIE 6')> 0))
	{
		ie5=true;
	}
	ns6=false;
}


//-----------------------------------------------------------------------------
// aec: I'm only keeping this function around in case some other page calls it.
// I've removed all references to it in this file.
function element(id)
{
	return $(id);
}

//-----------------------------------------------------------------------------

function isDisplayed(id)
{
	var elm = $(id);
	var isDisp = true;
	
	if(elm != null)
	{	
		if(ns6)
		{
			if(elm.tagName == "TR")
			{
				isDisp = (elm.style.display == "table-row")
							|| (elm.style.display == "");
			}
		}
		else 
		{  
			isDisp = (elm.style.display == "inline") || (elm.style.display == "")
		}
	}
	else 
	{ 
		isDisp = false; 
	}
	return isDisp;
}

//-----------------------------------------------------------------------------

function show(id)
{
	var elm = $(id);

	if(elm != null)
	{	
		if(ns6)
		{
			if(elm.tagName == "TR")
			{ 
				elm.style.display = "table-row"; 
			}
		}
		else 
		{ 
			elm.style.display = "inline"; 
		}
		elm.style.visibility = "visible";
	}
}

//-----------------------------------------------------------------------------

function hide(id)
{
	var elm = $(id);

	if(elm != null)
	{
		elm.style.display = "none";
		elm.style.visibility = "hidden";
	}
}

//-----------------------------------------------------------------------------