// TOP BANNER NAVIGATION BAR
// NB FastLink used instead of sitemap

function nvbr(Lnks) {
  var isCurrent = false;
  for (var i = 0; i < Lnks.length; i++) {
    isCurrent = (Lnks[i][1] == null) ? (location.pathname == Lnks[i][0]) : (location.pathname == Lnks[i][0] || location.pathname == Lnks[i][1]);
    if (Lnks[i][4] == 1) document.write('&nbsp;');
//  if (isCurrent) {
    if ((isCurrent) || (Lnks[i][0] == null)) {
	  document.write('<a href="'+Lnks[i][0]+'"  title="'+Lnks[i][2]+'" onmouseover="window.status=\''+Lnks[i][3]);
      document.write('\'; return true" onMouseOut="window.status=\'\'; return true"><span class="redtext">'+Lnks[i][2]+'</span></a>');
      
    }
    else {
      document.write('<a href="'+Lnks[i][0]+'"  accesskey="'+Lnks[i][5]+'" title="'+Lnks[i][2]+'" onmouseover="window.status=\''+Lnks[i][3]);
      document.write('\'; return true" onMouseOut="window.status=\'\'; return true">'+Lnks[i][2]+'</a>');
    }
}
}

var Lnks = new Array();

// Change contents of arrays of Lnks 
// 0, 1 - links; 2 - title; 3 - status; 4, 5: code (0)=nothing, (1)='&nbsp;', (2)='|' 
// ----------------------------------------------------------------------------------
Lnks = [['/','/','Home','home page',0,1],
        ['/home/about.html','/home/about.html','About us','About POL',0,6],
		['/home/news/','/home/news/','News &amp; events','Latest POL news',0,2],
		['/home/history/','/home/history/','History','History of POL'],
		['/home/staff/','/home/staff/','People','People',0,7],
		['/home/studentships/','/home/studentships/index.html','Graduate studies','PhD research topics available at POL'],
		['/home/seminars/','/home/seminars/','Seminars','Seminars at POL'],
		['/home/lectures/','/home/lectures/','Proudman lectures','Proudman lecture series at POL'],
		['/home/education/','/home/education/','Education &amp; schools','Education information'],
		['/home/q_and_a/','/home/q_and_a/','Questions &amp; answers','Questions and Answers',0,5],
	    ['/home/insight/','/home/insight/','Insight into marine science','Insight into marine science'],
		['/home/scienceInsociety.html','/home/scienceInsociety.html','Science in society','Science in society'],
		['/home/library/','/home/library/','Oceanography library','Oceanography library'],
		['/home/vacancies/','/home/vacancies/','Vacancies','Current vacancies at POL'],
	    ['/home/location.html','/home/location.html','Find us','How to get to the Proudman Oceanographic Laboratory',0,8],
        ['/home/contact.htm','/home/contact.htm','Contact us','Contact us at POL',0,9]];



//document.writeln('<table border="0" cellpadding="2" cellspacing="0" align="center"><tr><td><div>');
nvbr(Lnks);
//document.writeln('</div></td></tr></table>');

