/// <summary>
        /// This is a javascript application.
        /// </summary>
        /// <param name="page">HTML document rendered by the web server which can now be enhanced.</param>
        public Application(IApp page)
        {
            var f = new Form();

            var fweb = new WebBrowser().AttachTo(f);
            fweb.Dock = DockStyle.Fill;
            var fiframe = (IHTMLIFrame)fweb.GetHTMLTargetContainer();
            f.Show();


            fiframe.onload += delegate
            {
                f.Text = "onload";

                fiframe.contentWindow.onbeforeunload += delegate
                {
                    f.Text = "onbeforeunload";
                };
            };


            //sprite.wmode();

            sprite.AttachSpriteToDocument().With(
                   embed =>
                   {
                       embed.style.SetLocation(0, 0);
                       embed.style.SetSize(Native.window.Width, Native.window.Height);

                       Native.window.onresize +=
                           delegate
                           {
                               embed.style.SetSize(Native.window.Width, Native.window.Height);
                           };
                   }
               );

            #region con
            var con = new ConsoleForm();

            con.InitializeConsoleFormWriter();

            con.Show();

            con.Left = Native.window.Width - con.Width;
            con.Top = 0;

            Native.window.onresize +=
                  delegate
                  {
                      con.Left = Native.window.Width - con.Width;
                      con.Top = 0;
                  };


            con.Opacity = 0.6;
            #endregion


            sprite.InitializeConsoleFormWriter(
                       Console.Write,
                       Console.WriteLine
            );

            fiframe.id = "foo7";
            fiframe.name = "foo7";
            sprite.SetIFrameName(fiframe.name);

            con.HandleFormClosing = false;
            con.PopupInsteadOfClosing();
            "Operation «Heat Zeeker»".ToDocumentTitle();
        }