// JavaScript Document
function go(node) {
  if (document.pmvr) {
    eval( "document.pmvr.set('script','script.txt:"+node+"')" );
    }
  }
var prev;
function pmvrEventHook(action,arg) {
  if (action=="node") {
    if (prev) { prev.style.fontWeight='normal'; prev.style.color='#808080'; }
    var jj = document.getElementById(arg+"Label");
    if (jj) { prev=jj; jj.style.fontWeight='bold'; jj.style.color='black'; }
    }
  else if (action=="preload") {
    var jj = document.getElementById(arg+"Label");
    if ((jj)&&(""==jj.style.color)) { jj.style.color='blue'; }
    }
  else if (action=="outofmemory") {
    setDisplay('OutOfMemorySpan','inline')
    document.pmvr.set('fullscreen','no');
    }
  }
function setDisplay(id,mode) {
  var jj = document.getElementById(id);
  if (jj) { jj.style.display = mode; }
  }
function goFullScreen() {
  document.pmvr.set('fullscreen','yes');
  }
