// JavaScript Document
OK = (document.images) ? true : false;

if(OK) { 
 oldname = new Array;
 oldsrc = new Array;
 oldname = "a0";
 oldindex = 0;
 oldsrc = "images/logo_brbc.jpg";

 button = new Array(15);
 
 button[0] = new Image();
 button[0].src = "images/logo_brbc.jpg";
 button[1] = new Image();
 button[1].src = "images/but2educ.jpg";
 button[2] = new Image();
 button[2].src = "images/but2news.jpg";
 button[3] = new Image();
 button[3].src = "images/but2emer.jpg";
 button[4] = new Image();
 button[4].src = "images/but2cont.jpg";
 button[5] = new Image();
 button[5].src = "images/but2coun.gif";
 button[6] = new Image();
 button[6].src = "images/but2about.gif";
 button[7] = new Image();
 button[7].src = "images/but2map.gif";
 button[8] = new Image();
 button[8].src = "images/but21publ.gif";
 button[9] = new Image();
 button[9].src = "images/but2key.gif";
 button[10] = new Image();
 button[10].src = "images/but2kids.gif";
 button[11] = new Image();
 button[11].src = "images/but2member.gif";
 button[12] = new Image();
 button[12].src = "images/but2make.gif";
 button[13] = new Image();
 button[13].src = "images/but2funding.gif";
 button[14] = new Image();
 button[14].src = "images/but2links.gif";
}

function on(index) {
  if(OK){
  off();
  oldname='a' + index;
  oldsrc=document[oldname].src;
  document[oldname].src=button[index].src;  
}
}

function off() {
  if(OK){
  document[oldname].src = oldsrc;  
}
}