// 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]+'"  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/research/','/home/research/','Our research','Research homepage home page',0,],
		['/home/research/theme1/','/home/research/theme1/','Climate, ocean circulation and sea level','Climate, ocean circulation and sea level'],
		['/home/research/theme3/','/home/research/theme3/','Shelf and coastal processes','Shelf and coastal processes'],
		['/home/research/theme6/','/home/research/theme6/','Science for sustainable marine resources','Science for sustainable marine resources'],
		['/home/research/theme8/','/home/research/theme8/','Technology development','Technology development'],
		['/home/research/theme9/','/home/research/theme9/','Next generation ocean prediction systems','Next generation ocean prediction systems'],
	    ['/home/research/theme10/','/home/research/theme10/','Integration of sustained observations in the marine environment','Integration of sustained observations in the marine environment'],
	    ['/home/research/archive/','/home/research/archive/','research archive','Archive of POL research'],
		['/home/research/publist.php?name=.&init=.','/home/research/publist.php?name=.&init=.','Publications list','List of POL publications']];


//document.writeln('<table border="0" cellpadding="2" cellspacing="0" align="center"><tr><td><div>');
nvbr(Lnks);
//document.writeln('</div></td></tr></table>');

