var global_hasTwoCols = true;

function hide(s)
{
	t = document.all ? document.all[s] : document.getElementById(s);
	if (t) t.style.display = "none";
}

function writeLink(nr, title, url, selectedItemNr)
{
   document.write('<tr height="12">');
   document.write('<td colspan="3" align="right" valign="top" width="80" height="12">');
   document.write('<img src="space.gif" alt="" height="12" width="75" align="top" border="0"></td></tr>');
   document.write('<tr height="12">');
   document.write('<td align="left" valign="top" width="6" height="20">');
   document.write('<img src="space.gif" alt="" height="1" width="6" align="top" border="0"></td>');
   document.write('<td align="left" valign="center" width="89" height="20">');
	if(nr == selectedItemNr)
	{
	document.write('<strong><span class="link_off">'+title+'</span></strong>');
	} else {
	document.write('<strong><a class="link_nav" href="'+url+'">'+title+'</a></strong>');
	}
   document.write('<img src="space.gif" alt="" height="0" width="89" align="top" border="0"></td>');
   document.write('<td align="left" valign="bottom" width="25" height="12">');
	if(nr == selectedItemNr)
	{
	document.write('<img src="bullet.gif" alt="" height="18" width="10" border="0">');
	} else {
	document.write('<img src="space.gif" alt="" height="18" width="10" border="0">');
	}
   document.write('</td>');
   document.write('</tr>');

}

function showNav(selectedItemNr)
{
document.write('<table width="105" border="0" cellspacing="0" cellpadding="0" background="nav_back.jpg" height="455">');
// repeat these as often as necessary for the whole navigation
// {
writeLinks(selectedItemNr);
   
// }
document.write('<tr><td colspan="2" align="left" valign="top"><img src="space.gif" alt="" height="250" width="1" border="0"></td></tr>');
document.write('</table>');
}

function showLeft(selectedItemNr, hasTwoCols)
{
    //alert('g=' + global_hasTwoCols + ' h=' + hasTwoCols);
	document.write('		\
		<table width="100%" border="0" cellspacing="0" cellpadding="0">	\
			<tr>	\
				<td align="left" valign="top" width="100">');
	showNav(selectedItemNr);
	document.write('</td>	\
				<td align="left" valign="top" width="5" background="bg_' + selectedItemNr + '.jpg"><img src="space.gif" alt="" height="10" width="85" border="0"></td>	\
				<td align="left" valign="top"><img src="space.gif" alt="" height="1" width="1" border="0">	\
				<table width="100%" border="0" cellspacing="0" cellpadding="0">	\
					<tr>	\
						<td align="left" valign="top" width="100%">	\
						</td>	\
					</tr>	\
					<tr>');
	
}


