
// motfNavigation.js. Smaller navigation links for Magnets 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 mailTop.js, which is always called before this script
var publicPath = setPublicPath();
var linkSpacer = '&nbsp;&nbsp;&#149;&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( 'archive/index.htm', 'archive' ) );
arrLinks.push( new addContextLink( 'magnetsonthefridge/magnetsonthefridge.htm', 'motf' ) );
arrLinks.push( new addContextLink( 'magnetsonthefridge/motf1.htm', 'season 1' ) );
arrLinks.push( new addContextLink( 'magnetsonthefridge/motf2.htm', 'season 2' ) );
arrLinks.push( new addContextLink( 'magnetsonthefridge/motf3.htm', 'season 3' ) );
arrLinks.push( new addContextLink( 'magnetsonthefridge/motf4.htm', 'season 4' ) );
arrLinks.push( new addContextLink( 'magnetsonthefridge/motf5.htm', 'season 5' ) );
arrLinks.push( new addContextLink( 'magnetsonthefridge/magnuts.htm', 'magnuts' ) );


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" );
