See bgWhiteSpt, bgBlackSpt. toggleIsDown(backgroundIndex) is used instead of the actual background color. see e.g. getEchoColor(); Jmol variable backgroundColor