// inline.js - Generic library to show & hide inline boxes.
// Author: Alex Aalto
// Date: 2005/10/01
// Requirements: Written to work with client side Javascript 1.3 or better.

var hintBox = null;

function showBox() {
  if(hintBox==null) { hintBox = document.getElementById('promopopup'); }
  setVisibility(hintBox,'visible');
}

function closeBox() {
  setVisibility(hintBox,'hidden');
}

function setVisibility(obj, state) {
  obj.style.visibility = state;
}