/*
 * lightBoxSize(width, height)
 *
 * Takes width and height (in percentages) of lightbox as parameters and centers
 * it on screen.
 */
function lightBoxSize(width, height) {
  var top = (100 - height) / 2;
  var left = (100 - width) / 2;
  $("#lightbox").attr("style", "width: " + width + "%; height: " + height + "%; top: " + top + "%; left: " + left + "%;");
}

/*
 * closeLightBox()
 *
 * Removes the lightbox from the screen
 */
function closeLightBox() {
  $("#lightbox").remove();
  $("#lightbox_backdrop").remove();
}
