/*
This file contains the Javascript library for the Visokio Omniscope outside browser.
*/


// Public API:

// Instructs the enclosing Omniscope window to open the link specified, which may be absolute or relative to the browser's page.
function visokioSignal(link) {
  _currentSignal = link;
  _signalCount++;
  document.title = "_signal"+_signalCount;
  return false;
}


// Internal to API:

var _currentSignal;
var _signalCount = 0;

function _grabSignal(signal) {
  if (signal != _signalCount) return null;
  _signalCount = 0;
  return _currentSignal;
}

