// -----------------------------------------------------------------------
// TINAMI Comike Map System Ver 2006.10.25
// (c) 2006 TINAMI. All rights reserved.
// scope.js: スコープの制御
// -----------------------------------------------------------------------
var Scope = Class.create();
Scope.prototype = {
  initialize: function (parent_id)
  {
    this.parent_id = parent_id;
    this.created = false;
  },

  _create: function()
  {
    this.vertical = document.createElement("img");
    this.vertical.setAttribute("src", "images/focus_l.png");
    this.vertical.setAttribute("id", "focus-vertical");
    this.vertical.setAttribute("class", "focus-vertical");
    $(this.parent_id).appendChild(this.vertical);

    this.horizontal = document.createElement("img");
    this.horizontal.setAttribute("src", "images/focus_h.png");
    this.horizontal.setAttribute("id", "focus-horizontal");
    this.horizontal.setAttribute("class", "focus-horizontal");
    $(this.parent_id).appendChild(this.horizontal);
  },

  show: function()
  {
    if (!this.created) {
      this._create();
      this.created = true;
    }
    this.vertical.style.display = "inline";
    this.horizontal.style.display = "inline";
  },

  hide: function()
  {
    if (this.created) {
      this.vertical.style.display = "none";
      this.horizontal.style.display = "none";
    }
  }
};


