function PopUpController() {
  this.smokedglass=null;
}

PopUpController.prototype.useSmokedGlass=function(useglass) {
  this.smokedglass=new SmokedGlass();
}

PopUpController.prototype.setVisible=function(id, visible) {
  if (this.smokedglass!=null) {
    this.smokedglass.setVisible(visible);
  }

  var popup=Elem.getById(id);
  log(popup);
  if (visible) {
    popup.style.display='block';
  } else {
    popup.style.display='none';
  }
}