function menu(noshow)
{	
	document.write("<table border='0' cellpadding='0' cellspacing='0' width='1000px'>");	
	document.writeln("	<tr><td><img src='images/spacer.gif' border='0' width='98px' height='56px'></td>");
	document.writeln("		<td><table border='0' cellpadding='0' cellspacing='0' width='448px'>");
	document.writeln("				<tr><td colspan='7'><img src='images/spacer.gif' border='0' width='448px' height='15px'></td></tr>");
	document.writeln("				<tr><td><a href='about.htm'><img src='images/nav/about.png' border='0'></a></td>");
	document.writeln("					<td><img src='images/spacer.gif' border='0' width='25px' height='25px'></td>");
	document.writeln("					<td><a href='prod_11.htm'><img src='images/nav/prod.png' border='0'></a></td>");
	document.writeln("					<td><img src='images/spacer.gif' border='0' width='35px' height='25px'></td>");
	document.writeln("					<td><a href='news_events.htm'><img src='images/nav/news.png' border='0'></a></td>");
	document.writeln("					<td><img src='images/spacer.gif' border='0' width='48px' height='25px'></td>");
	document.writeln("					<td><a href='contact.cgi'><img src='images/nav/cont.png' border='0'></a></td></tr>");
	document.writeln("				<tr><td colspan='7'><img src='images/spacer.gif' border='0' width='448px' height='16px'></td></tr>");
	document.writeln("			</table></td>");
	document.writeln("		<td><img src='images/spacer.gif' border='0' width='67px' height='56px'></td>");
	document.writeln("		<td><a href='index.htm'><img src='images/nav/logo.png' border='0'></a></td>");
	document.writeln("		<td><img src='images/spacer.gif' border='0' width='53px' height='56px'></td></tr>");
	document.writeln("</table>");
}

function prodtabs(nav, snav)
{
	document.writeln("<table border='0' cellpadding='0' cellspacing='0' width='760px'>");
	document.writeln("	<tr><td><table border='0' cellpadding='0' cellspacing='0' width='760px'><tr>");
	
	sublinks = new Array(0, 6, 2, 0, 2);
	for (i=1; i<=4; i++)
	{	if (i==nav)
		{	document.writeln("<td><img src='images/prodtabs/"+i+"_on.gif' border='0'></a></td>");
		} else {
			  document.write("<td><a href='prod_"+i+"1.htm'><img border='0' onmouseover=\"this.src='images/prodtabs/"+i+"_on.gif'\" ");
			document.writeln("onmouseout=\"this.src='images/prodtabs/"+i+"_off.gif'\" src='images/prodtabs/"+i+"_off.gif'></a></td>");
		}
	}
	document.writeln("			</tr></table></td></tr>");
	document.writeln("</table>");

	if (sublinks[nav] > 1)
	{	document.writeln("	<tr><td><table border='0' cellpadding='0' cellspacing='0' width='760px'><tr>");
		for (i=1; i<=sublinks[nav]; i++)
		{	if (i==snav)
			{	document.writeln("<td><img src='images/prodtabs/sub"+nav+i+"_on.gif' border='0'></a></td>");
			} else {
				  document.write("<td><a href='prod_"+nav+i+".htm'><img border='0' onmouseover=\"this.src='images/prodtabs/sub"+nav+i+"_on.gif'\" ");
				document.writeln("onmouseout=\"this.src='images/prodtabs/sub"+nav+i+"_off.gif'\" src='images/prodtabs/sub"+nav+i+"_off.gif'></a></td>");
			}
		}
		document.writeln("			</tr></table></td></tr>");
	}
}

function prodtabs_old(nav, snav)
{
	document.writeln("<table border='0' cellpadding='0' cellspacing='0' width='760px'>");
	document.writeln("	<tr><td><table border='0' cellpadding='0' cellspacing='0' width='760px'><tr>");
	
	navlinks = new Array("", "prod_11.htm", "prod_21.htm", "prod_31.htm", "prod_41.htm");
	toppers = new Array("", "prod_11.htm", "prod_12.htm", "prod_13.htm", "prod_14.htm", "prod_15.htm");
	access = new Array("", "prod_41.htm", "prod_42.htm");
	
	for (i=1; i<=4; i++)
	{	if (i==nav)
		{	document.writeln("<td><img src='images/prodtabs/"+i+"_on.gif' border='0'></a></td>");
		} else {
			  document.write("<td><a href='"+navlinks[i]+"'><img border='0' onmouseover=\"this.src='images/prodtabs/"+i+"_on.gif'\" ");
			document.writeln("onmouseout=\"this.src='images/prodtabs/"+i+"_off.gif'\" src='images/prodtabs/"+i+"_off.gif'></a></td>");
		}
	}
	document.writeln("			</tr></table></td></tr>");
	document.writeln("</table>");
	
	if (nav == 1)
	{	document.writeln("	<tr><td><table border='0' cellpadding='0' cellspacing='0' width='760px'><tr>");
		for (i=1; i<=5; i++)
		{	if (i==snav)
			{	document.writeln("<td><img src='images/prodtabs/sub1"+i+"_on.gif' border='0'></a></td>");
			} else {
				  document.write("<td><a href='"+toppers[i]+"'><img border='0' onmouseover=\"this.src='images/prodtabs/sub1"+i+"_on.gif'\" ");
				document.writeln("onmouseout=\"this.src='images/prodtabs/sub1"+i+"_off.gif'\" src='images/prodtabs/sub1"+i+"_off.gif'></a></td>");
			}
		}
		document.writeln("			</tr></table></td></tr>");
	}
	if (nav == 4)
	{	document.writeln("	<tr><td><table border='0' cellpadding='0' cellspacing='0' width='760px'><tr>");
		for (i=1; i<=2; i++)
		{	if (i==snav)
			{	document.writeln("<td><img src='images/prodtabs/sub4"+i+"_on.gif' border='0'></a></td>");
			} else {
				  document.write("<td><a href='"+access[i]+"'><img border='0' onmouseover=\"this.src='images/prodtabs/sub4"+i+"_on.gif'\" ");
				document.writeln("onmouseout=\"this.src='images/prodtabs/sub4"+i+"_off.gif'\" src='images/prodtabs/sub4"+i+"_off.gif'></a></td>");
			}
		}
		document.writeln("			</tr></table></td></tr>");
	}
}

// // // // // // // // // // // // // // // // // // // // // // // // // // // // // // 
// // // // // // // // // // // // // // // // // // // // // // // // // // // // // // 
// // // // // // // // // // // // // // // // // // // // // // // // // // // // // // 

function set_popup ()
{
	var myPopup = document.getElementById('popup');
	var myImage = document.getElementById('prodbottom');
	
	myPopup.style.left = (findPosX(myImage) + (myImage.offsetWidth - myPopup.offsetWidth)) + 'px';
	myPopup.style.top = (findPosY(myImage)) + 'px';
}

function disp_calendar (field)
{	if (document.layers)
		document.layers["date_calendar"].visibility='show';
	else
		document.getElementById("date_calendar").style.visibility='visible';
	
	var myElement = document.getElementById("date_calendar");
	var myInput = document.getElementById(field);
	myElement.style.left = (findPosX(myInput)+1) + 'px';
	myElement.style.top = ( findPosY(myInput) + myInput.offsetHeight + 5 ) + 'px';
	
	var CurrDate = new Date();
	document.getElementById("ndcalmonth").selectedIndex = CurrDate.getMonth();
	document.getElementById("ndcalyear").value = CurrDate.getFullYear();

	document.getElementById("ndcalfield").value = field;
	search_calendar_init(field);
}


function findPosX(obj)
{	var curleft = 0;
	if ( typeof obj == 'string' ) { var obj = document.getElementById(obj); }
	if (obj.offsetParent)
	{	while (obj.offsetParent)
		{	curleft += obj.offsetLeft;
			obj = obj.offsetParent;
		}
	} else if(obj.x) {
		curleft += obj.x
	}
	return curleft;
}

function findPosY(obj)
{	var curtop = 0;
	if ( typeof obj == 'string' ) { var obj = document.getElementById(obj); }
	if (obj.offsetParent)
	{	while (obj.offsetParent)
		{	curtop += obj.offsetTop;
			obj = obj.offsetParent;
		}
	} else if(obj.y) {
		curtop += obj.y
	}
	return curtop;
}


