//I'm trying to remember what went on here, I think this bit is executed only once at startup...

document.write("<map name='redmap'>");
  for (l=0; l<512; l++) {
    ul= "0" + "," + l + ",";
    lr= 75 + "," + (l+4);
    lneg = 255- Math.round(l/2);
    document.write ("<area shape='rect' coords='", ul,  lr, "' title='",  lneg, "' href='javascript:void(0)' onClick=\"DoLock('red')\"onMouseOver= \"main('red', '",  lneg, "'); return true\">\n");
  }
document.write ("<\/map>");

document.write("<map name='greenmap'>");
  for (l=0; l<512; l+=2) {
  ul= "0" + "," + l + ",";
    lr= "75," + (l+4);
    lneg = 255- Math.round(l/2);
    document.write ("<area shape='rect' coords='", ul,  lr, "' title='",  lneg, "' href='javascript:void(0)' onClick=\"DoLock('green')\"onMouseOver= \"main('green', '",  lneg, "'); return true\">\n");
  }
document.write ("<\/map>");

document.write("<map name='bluemap'>");
  for (l=0; l<512; l++) {
    ul= "0" + "," + l + ",";
    lr= "75," + (l+5);
    lneg = 255- Math.round(l/2);
    document.write ("<area shape='rect' coords='", ul,  lr, "' title='",  lneg, "' href='javascript:void(0)' onClick=\"DoLock('blue')\" onMouseOver= \"main('blue', '",  lneg, "'); return true\">\n");
  }
document.write ("<\/map>");