Event.observe(
              window,
              'load',
              function ()
              {
                // このウィンドウにフォーカス。
                window.focus();

                // トグルを設定。
                var _toggle_button = document.getElementsByClassName('toggle_button');
                for (var j = 0; j < _toggle_button.length; j++)
                  {
                    _toggle_button[j].onclick = function()
                    {
                      if($(this.id + '_toggle_box'))
                        {
                          Element.toggle(this.id + '_toggle_box');
                        }
                    };
                  }
              }
              );

function doALERT(_alert)
{
  var __alert;

  if (
      'string' == typeof(_alert)
      || 'undefined' == typeof(_alert)
      ) { __alert[0] = _alert; }
  else { __alert = $A(_alert).toArray(); }

  if (__alert[0])
    {
      console.log(__alert.inspect());
    }
}

function getPosition(element)
{
  var _offset = Position.cumulativeOffset(element);

  return {x: _offset[0], y: _offset[1]};
}
