
// supportNavigation.js. Smaller navigation links for Support pages.
//----------------------------------------------------------------------------------------
function addContextLink( theHREF, theLinkName )
// Set the array with the HREF and link name of the link
//----------------------------------------------------------------------------------------
{
	this.HREF = theHREF;
	this.linkName = theLinkName;

}

// function setPublicPath() is in mainTop.js, which is always called before this script
var publicPath = setPublicPath();
var linkSpacer = '&nbsp;&nbsp;&nbsp;&nbsp;&#149;&nbsp;&nbsp;&nbsp;&nbsp;';

var arrLinks = new Array();
// Put shows in the order you want them to be in the archive.htm file (date descending)
arrLinks.push( new addContextLink( 'donate/donate.htm', 'donate' ) );
//arrLinks.push( new addContextLink( 'subscribe/subscribe.php', 'subscribe' ) );
arrLinks.push( new addContextLink( 'volunteer/volunteer.htm', 'volunteer' ) );
arrLinks.push( new addContextLink( 'support/sponsorships.htm', 'sponsorships' ) );
arrLinks.push( new addContextLink( 'support/goodsearch.htm', 'goodsearch' ) );
// arrLinks.push( new addContextLink( 'about/advisors.htm', 'advisors' ) );
arrLinks.push( new addContextLink( 'about/trustees.htm', 'trustees' ) );

document.write( '<table border=0 cellspacing=0 cellpadding=0 align="left" width=100% >' + "\n" );
document.write( '<tr valign="top">' + "\n" );
document.write( '<td align="center" valign="middle"><p>' + "\n" );

var lastArr = arrLinks.length - 1;

for ( a=0; a < arrLinks.length; a++ ) {
	document.write( '<A class="sub" HREF="' + publicPath + arrLinks[a].HREF + '">' + arrLinks[a].linkName + '</A>');
	if ( a < lastArr ) {
		document.write( linkSpacer );
	}
}

document.write( '</p></td>' + "\n" );
document.write( '</tr>' + "\n" );
document.write( '<tr height="*"><td>&nbsp;</td></tr>' + "\n" );
document.write( '</table>' + "\n" );

