// 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/oetg/','/home/oetg/index.html','Home','Ocean Engineering & Technology home page',0,],
        ['/home/oetg/history.html','/home/oetg/history.html','History','History of the Ocean Engineering & Technology Group'],
		['/home/oetg/facilities.html','/home/oetg/facilities.html','Facilities','Facilities of the Ocean Engineering &amp; Technology group',0,],
		//['/home/oetg/cobs.html','/home/oetg/cobs.html','COBS','Coastal Observatory and Ocean Engineering &amp; Technology Group'],
		//['/home/oetg/deep_ocean.html','/home/oetg/deep_ocean.html','Deep Ocean','Deep Ocean'],
        ['/home/oetg/mechanical.html','/home/oetg/mechanical.html','Mechanical','Mechanical',0,],
        ['/home/oetg/rslg.html','/home/oetg/rslg.html','Remote Sea level Group','Remote Sea Level Group',0,]];



//document.writeln('<table border="0" cellpadding="2" cellspacing="0" align="center"><tr><td><div>');
nvbr(Lnks);
//document.writeln('</div></td></tr></table>');

