
// this effectively replaces fscommand, flash will call this function like an event handler
function flashEvent(event, args) {
  // just to test that it works...
  if (event=="Map mousemove") {
    window.status = args;
  } else {
    window.status = event + " : " + args;
  }
}

// use this to access the flash movie so you can call it's external functions
function flashMovie(movieName) {
  if (navigator.appName.indexOf("Microsoft") != -1) {
    return window[movieName];
  } else {
    return document[movieName];
  }
}
