text: ﻿var OverlayView = function(id, container_class, html, default_handler) {};
  var OverlayViewPrototype = function()
  {
    this.type = "overlay";
  
    this.show = function()
    {
      if (!this.is_active)
      {
        var cell = window.topCell.get_cell(this.parent_view_id);
        if (cell)
          this.is_active = cell.show_overlay(this);
      }
    };
  
    this.hide = function()
    {
      if (this.is_active)
      {
        this.is_active = false;
        var cell = window.topCell.get_cell(this.parent_view_id);
        if (cell)
          cell.hide_overlay(this.id);
      }
    };
  
    this.init = function(id, container_class, html, default_handler)
    {
      window.cls.MessageMixin.apply(this);
      ViewBase.init.call(this, id, "", container_class, html, default_handler);
    };
  };
  
  OverlayViewPrototype.prototype = ViewBase;
  OverlayView.prototype = new OverlayViewPrototype();
  