
// pressNavigation.js. Smaller navigation links for Press 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;&#149;&nbsp;&nbsp;';

var arrLinks = new Array();
arrLinks.push( new addContextLink( 'press/press.htm', 'Press List' ) );
arrLinks.push( new addContextLink( 'press/worldismine.htm', 'The World Is Mine' ) );
arrLinks.push( new addContextLink( 'press/microworlds2.htm', 'Microworld[s] #2' ) );
arrLinks.push( new addContextLink( 'press/buntport.htm', 'Buntport' ) );
arrLinks.push( new addContextLink( 'press/trunks.htm', 'tRUNks' ) );
arrLinks.push( new addContextLink( 'press/thirdtuesday.htm', 'Third Tuesday' ) );

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" );
