var link_array = new Array();
link_array = [

["[Bikes & The Law]", "#","_self",
[
["Highway Traffic Act","laws.htm","_self"],
["Required Equipment","equipment.htm","_self"],
["Signs & Pavement Markings","pavement.htm","_self"],
["Bicycle Collisions","accident.htm","_self"]]],

["[Rules of the Road]","#","_self",[["Rules for Cyclists","bike_rules.htm","_self"],
["Rules for Motorists","car_rules.htm","_self"],
["Rules of the Pathway","pathway.htm","_self"]]],
["[Education]","#","blank",
[
["Our Mission","goals.htm","_self"],
["Cycling Benefits","benefits.htm","_self"],
["Bicycle Commuting","commuting.htm","_self"],
["Safe Riding Skills","skills.htm","_self"],
["Safety for Kids","kids_stuff.htm","_self"]]],

["[Windsor Bicycling Committee]","#","_self",
[
["Our Mandate ","wbc.htm","_self"],
["How Safe is Cycling? ","safe.htm","_self"],
["Does Size Matter?","size.htm","_self"],
["Events","events.htm","_self"]]],

["[Media]","#","_self",
[
["Cycle Windsor Video ","ads/cw.avi","_blank"],
["Cycle Windsor Radio ","ads/cycle_windsor.wav","_blank"],
["Cycle Windsor Brochure","ads/cycle_windsor.pdf","_blank"]]]
];

var ie4=document.all&&navigator.userAgent.indexOf("Opera")==-1;
var ns6=document.getElementById&&navigator.userAgent.indexOf("Opera")==-1;
var ns4=document.layers;

function changes(id)
{
  var txt ="<center>";
  id = id-1
  for(i=0;i<link_array[id][3].length;i++)
  { 
    txt += "<a href='"+link_array[id][3][i][1]+"' target='"+link_array[id][3][i][2]+"'>"
    txt += link_array[id][3][i][0];
    txt += "</a>&nbsp;&nbsp;&nbsp;&nbsp;"
  }
  txt += "</center>"

 if(ie4||ns6)
  {
   dsub_obj.innerHTML = txt;
  }
  if(ns4)
  {
   dsub_obj=document.dsub;
   dsub_obj.document.write(txt);
   dsub_obj.document.close();
 }
}

if(ns4) document.write("<layer><center>")
else document.write("<div class=header>")
for(i=0;i<link_array.length;i++)
{
 document.write("<a href='"+link_array[i][1]+"' target='"+link_array[i][2]+"' onmouseover=changes("+(i+1)+")>")
 document.write(link_array[i][0]);
 document.write("</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;")
}
if(ns4) document.write("</center></layer><br><layer id=dsub name=dsub class=subheader></layer>")
else document.write("</div><div id=dsub name=dsub class=subheader></div>")
var dsub_obj
 if(ns4)
 {
  dsub_obj=document.dsub;
 }
  if(ie4)
 {

  dsub_obj=document.all.dsub;
 }
 if(ns6)
 {
  dsub_obj=document.getElementById("dsub");
 }
changes(1);
