// ページが iframe の外で表示された時に noframes の内容を表示する
function noFramesLoad(evt)
{
  var doc, body, isFrameSet, noFramesList, noFrames, i, parent, child, html;
  if ((doc = document) && (body = doc.body) &&
      String(body.nodeName).toUpperCase() == "BODY" &&
      (!window || window == window.parent) &&
      doc.getElementsByTagName && doc.createElement &&
      (noFramesList = snapElementsByTagName(body, "NOFRAMES")))
  {
    for (i = 0; i < noFramesList.length; ++i)
    {
      if ((noFrames = noFramesList[i]) &&
          (parent = noFrames.parentNode) &&
          parent.insertBefore && parent.removeChild &&
          (html = noFrames.innerHTML))
      {
        if (typeof window.ActiveXObject != "function")
          html = replaceEntityReferences(html);
        if ((child = doc.createElement("DIV")) &&
            parent.insertBefore(child, noFrames))
        {
          child.innerHTML = html;
          parent.removeChild(noFrames);
        }
      }
    }
  }
  return;
}

pushEventListener(this, "load", noFramesLoad, false);

