function getCSSProperty(element, property) {
  if (element.currentStyle) {
    property = property.replace(/-[a-z]/g, function(match) {
      return match.substr(1).toUpperCase();
    });
  
    return element.currentStyle[property];
  }
  else
    return window.getComputedStyle(element, "").getPropertyValue(property);
};

function popup(element, event) {
  ImageOverlay.show(element.getAttribute('href'));

  return event.returnValue = false;
};

