this.ie = document.all ? 1 : 0
this.ns4 = document.layers ? 1 : 0
this.dom = document.getElementById ? 1 : 0
this.gecko = this.navigator.userAgent.indexOf("Gecko")!=-1 ? 1 : 0

function show(item)
{
	if (this.ie || this.gecko)
	{
		document.getElementById(item).style.visibility = "visible"
	}
	else
	{
		document.getElementById(item).container.style.visibility = "visible"
	}
}

function hide(item)
{
	if (this.ie || this.gecko)
	{
		document.getElementById(item).style.visibility = "hidden"
	}
	else
	{
		document.getElementById(item).container.style.visibility = "hidden"
	}
}

//Utility function for left navigation table
function LeftNavTableBegin()
{
	document.write("<table width='100%' border='0' cellspacing='0' cellpadding='1' class='leftnavtable'>")
}

function LeftNavTableEnd()
{
	document.write("</table>")
}

function LeftNavTableHeader(NavHeader,ClickEvent)
{
	document.write("<tr class='leftnavitem'>")
	document.write("<td colspan='2'>")
	document.write(NavHeader)
	document.write("</td>")
	document.write("<td align='right'>")
	document.write("<img src='/image/menu-arrow-down.gif' alt='' width='11' height='11' border='0'>")
	document.write("</td>")
	document.write("</tr>")
}

function LeftNavTableSpace()
{
	document.write("<tr bgcolor='#FFFFFF'><td colspan='3'><img src='/app/template/image/clear.gif' alt='' width='10' height='10' border='0'></td></tr>")
}

function LeftNavTableItem(NavItem)
{
	document.write("<tr>")
	document.write("<td valign='top' class='leftnavitem'>")
	document.write("&nbsp;<img src='/image/star.gif' alt='' width='7' height='7' border='0'>&nbsp;")
	document.write("</td>")
	document.write("<td valign='top' class='leftnavitem'>")
	document.write(NavItem)
	document.write("</td>")
	document.write("<td valign='top' class='leftnavitem'></td>")
	document.write("</tr>")
}

function LeftNavTableSubItem(NavItem)
{
	document.write("<tr>")
	document.write("<td valign='top' class='leftnavitem'>")
	document.write("&nbsp;")
	document.write("</td>")
	document.write("<td valign='top' class='leftnavitem'>")
	document.write("&nbsp;" + '-' + "&nbsp;" + NavItem)
	document.write("</td>")
	document.write("<td valign='top' class='leftnavitem'></td>")
	document.write("</tr>")
}

function doShow(it)
{
	show(it)
}
// end utility function for left navigation table