/*
 * VMMM Function Library
 * Functions supporting the Virtual Museum which are common across displays
 *
 * INTERFACE
 * Since document objects and script names are display-specific (e.g. kaolinite: parent.kaolinite_ky
 * refers to the key frame, and kaolinite_stk is the "Stick" button script), there must be a means of
 * communicating those names to the library. Here we commit the Global Variable Ugliness of 
 * requiring these to be set before invoking this script:
 *
 * display == display name ("kaolinite")
 * key == key frame object (parent.kaolinite_ky)
 * vis == visualization frame object (parent.kaolinite_jmol)
 */
function play(script) {
  vis.document.jmol.script(script);
  key.polyResetFlag();
}

function check(ID) {
  key.document.getElementById(ID).checked='CHECKED';
}      


