// Copyright (C)1997 Chris Skinner. All Rights Reserved.
// This code is COPYRIGHTED. This code is an example of
// programming and development for profit and may not be
// used without contacting the author.
function fetch() {
  this.length=fetch.arguments.length;
  for(var c=0; c < this.length; c++) {
    this[c+1]=new Image();
    this[c+1].src=fetch.arguments[c];
  }
}
if (document.images) var need=new fetch("./menu/l1_0.gif","./menu/l2_0.gif","./menu/l3_0.gif","./menu/l3_1.gif","./menu/l4_0.gif","./menu/l4_1.gif");
function turn(i,j) {
  if (document.images) {
    var src=document.images[i].src;
    var a=src.lastIndexOf(j);
    if (a != -1) {
      if (j == 0) var newsrc=src.substring(0,a)+"1.gif";
      else var newsrc=src.substring(0,a)+"0.gif";
      document.images[i].src=newsrc;
    }
  }
}
function toggle(i,j) {
  if (document.images) {
    var src=document.images[i].src;
    var a=src.lastIndexOf('.')-1;
    var newsrc=src.substring(0,a)+j+".gif";
    document.images[i].src=newsrc;
  }
}