// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// ++    TOP NAV SECTION                                                                         ++  
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

// +++++++++++++++++++++++++++++++++++++++
// constructor function for top nav link
// +++++++++++++++++++++++++++++++++++++++
	function loTopLink(displayText, targetURL, statusText, targetWindow) {
		this.display = displayText;
		this.url = targetURL;
		this.statusline = statusText;
		if (targetWindow) {
			this.target = target;
		} else {
			this.target = '_top';
		}
	}


// +++++++++++++++++++++++++++++++++++++++
// Returns HTML code for top nav links
// +++++++++++++++++++++++++++++++++++++++
function showTopNavLinks(opt) {
	if (opt == 'nc') {
		var showComm = false;
	} else {
		var showComm = true;
	}
	var list = new Array();
	var count = 0;
	var lsTopLinks = '';
	
	count++
	list[count] = new loTopLink("Home", 
							"javascript:callBVPage('ATN.htm',lsBVData,'')", 
							"Home");

	count++
	list[count] = new loTopLink("Repeaters", 
							"repeaters.htm", 
							"Repeaters");

	count++
	list[count] = new loTopLink("Streaming Video", 
							"streaming.php", 
							"Streaming Video");

	count++
	list[count] = new loTopLink("Newsletters", 
							"newsletters.htm", 
							"Newsletters");

	count++
	list[count] = new loTopLink("EchoLink", 
							"echolink.php", 
							"Talk back to ATN-CA over EchoLink");
		
	count++
	list[count] = new loTopLink("Pictures", 
							"pictures.htm", 
							"Pictures");
		
	count++
	list[count] = new loLink("Library", 
							"library.htm", 
							"Library of ATV information");

	count++
	list[count] = new loTopLink("Guestbook",
							"http://pub30.bravenet.com/guestbook/show.php?usernum=2552157664&cpv=1",
							"Read or Sign our Guestbook");
		
//      Change back when atn-tv.org branched to http://www.wadeindustries.com/atv-tv.or
//	count++
//	list[count] = new loTopLink("ATV Links",
//							"http://atv-tv.org",
//							"The Amateur Television Directory");

	count++
	list[count] = new loTopLink("ATV Links",
							"http://www.atv-tv.org",
							"The Amateur Television Directory");

	
// properties for the list object are 'display', 'url', 'statusline' and 'target'
	for (i=1; i <= count; i++) {
		if (i == count) {
			lsVBar = '';
		} else {
			lsVBar = '<span STYLE="color: #FFFFFF; font-size: 9.1pt;"><b>|</b></span>&nbsp';
		}
		lsTopLinks += '<a href="' + list[i].url + '" class="Header" onMouseOver="return showStatus(\'' + list[i].statusline +'\')">' + list[i].display + '</a>&nbsp;' + lsVBar;
//		alert(i + '\n\n' + lsTopLinks);
//		lsTopLinks += '<tr><td><img alt="" border="0" height="3" align="absMiddle" src="atnlookandfeel/bullet_menu_white.gif" width="3"></td><td><a href="' +  list[i].url + '" target="' + list[i].target + '" onMouseOver="return showStatus(\'' + list[i].statusline + '\')"><span class="LeftNavLink">' + list[i].display + '</span></a></td></tr>\n';
	}		
	return lsTopLinks;
}
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
