<!--
// enter the displayed name of the menu item in arrTitles, before the last bracket,
// preceeded by a comma and within single quotations marks, for example ,'latest news'
// If you wish to ues a ' in your title, (eg 'Neil's daily thoughts')
// you have to 'escape' the javaScript reserve character ' with a \, ie 'Neil\'s thoughts'

arrTitles = new Array ('home','products','services','latest news','about us','contact us');

// enter the link to the section homepage here. 
// note that the section homepage MUST be called index.html for this to work
// As above, precede the entry by a comma and place within single quotations marks,
// and give an absolute path, eg ,'/solns/info/'

arrLinks = new Array ('/time/','/time/products/','/time/services/','/time/news/','/time/about/','/time/contact/');

var size = arrTitles.length;
var size2 = arrLinks.length;
var here = document.location.href

// if you get this error message, the number of menu items doesn't equal the number of sections

if (size != size2){
 document.write ('sorry, there has been an error: number of menu items does not equal number of links');
}
else{

// write out the start of the menu table

	document.writeln('<table width=770 border=0 cellspacing=0 cellpadding=0>');
	document.writeln('	<tr>');
	document.writeln('		<td><img src=/images/b.gif width=22 height=1 alt="" border=0></td>');
	document.writeln('		<td><img src=/images/m1/crv_tp_l.gif width=3 height=15 alt="" border=0></td>');
	document.writeln('		<td background=/images/m1/tab_no_bg.jpg><img src=/images/b.gif width=10 height=1 alt="" border=0></td>');

// the homepage is done separately to avoid double-highlighting
  if (here.indexOf(arrLinks[0] + 'index.html')!=-1){
		document.writeln('		<td><img src=/images/m1/tab_y_l.gif width=8 height=15 alt="" border=0></td>');
		document.writeln('		<td background=/images/m1/tab_y_bg.jpg nowrap><p class=m1><a href=' + arrLinks[0] + 'index.html class=m1h>' + arrTitles[0] +'</a></p></td>');
		document.writeln('		<td><img src=/images/m1/tab_y_r.gif width=8 height=15 alt="" border=0></td>');
  }
  else{
		document.writeln('		<td><img src=/images/m1/tab_x_l.gif width=8 height=15 alt="" border=0></td>');
		document.writeln('		<td background=/images/m1/tab_x_bg.jpg nowrap><p class=m1><a href=' + arrLinks[0] + 'index.html class=m1>' + arrTitles[0] + '</a></p></td>');
		document.writeln('		<td><img src=/images/m1/tab_x_r.gif width=8 height=15 alt="" border=0></td>');
  }
// loop through the rest of both arrays, writing out the menu items. 
 for (var i=1; i < size; i++){
// does it need the highlight?
  if (here.indexOf(arrLinks[i])!=-1){
		document.writeln('		<td><img src=/images/m1/tab_y_l.gif width=8 height=15 alt="" border=0></td>');
		document.writeln('		<td background=/images/m1/tab_y_bg.jpg nowrap><p class=m1><a href=' + arrLinks[i] + 'index.html class=m1h>' + arrTitles[i] +'</a></p></td>');
		document.writeln('		<td><img src=/images/m1/tab_y_r.gif width=8 height=15 alt="" border=0></td>');
  }
  else{
		document.writeln('		<td><img src=/images/m1/tab_x_l.gif width=8 height=15 alt="" border=0></td>');
		document.writeln('		<td background=/images/m1/tab_x_bg.jpg nowrap><p class=m1><a href=' + arrLinks[i] + 'index.html class=m1>' + arrTitles[i] + '</a></p></td>');
		document.writeln('		<td><img src=/images/m1/tab_x_r.gif width=8 height=15 alt="" border=0></td>');
  }
 }

// now write out the end of the menu table
	document.writeln('		<td width=99% background=/images/m1/tab_no_bg.jpg><img src=/images/b.gif width=1 height=1 alt="" border=0></td>');
	document.writeln('		<td><img src=/images/m1/crv_tp_r.gif width=3 height=15 alt="" border=0></td>');
	document.writeln('		<td><img src=/images/b.gif width=42 height=1 alt="" border=0></td>');
	document.writeln('	</tr>');
	document.writeln('</table>');
// that's your js sorted out 
}
//-->