Components.utils.import("resource://gre/modules/Services.jsm");

function Startup()
{
  var windowElt = document.documentElement;
  /*if (!windowElt.hasAttribute("width") &&
      !windowElt.hasAttribute("height"))
    window.sizeToContent();*/
  document.getElementById("iframe").addEventListener(
    "pageshow",
    onIframeLoaded,
    false);
  document.getElementById("iframe").setAttribute("src",
    "chrome://bluegriffon/content/credits.xhtml");

//@line 17 "/build/bluegriffon/src/mozilla-central-f14898695ee0/bluegriffon/base/content/bluegriffon/dialogs/aboutDialog.js"
  CenterDialogOnOpener();
//@line 19 "/build/bluegriffon/src/mozilla-central-f14898695ee0/bluegriffon/base/content/bluegriffon/dialogs/aboutDialog.js"
}

function onIframeLoaded()
{
  ApplyWysiwygThemeChange(document, Services.prefs.getCharPref("bluegriffon.wysiwyg.theme"));
  document.getElementById("iframe").contentWindow.
    setCallback(onUrlClicked);
}

function onUrlClicked(url)
{
  loadExternalURL(url);
}
