Index: WEB-INF/lps/templates/app-console.xslt
===================================================================
--- WEB-INF/lps/templates/app-console.xslt	(revision 1050)
+++ WEB-INF/lps/templates/app-console.xslt	(working copy)
@@ -62,9 +62,7 @@
   -->
   <xsl:param name="containerheight">
   <xsl:choose>
-    <xsl:when test="/*/info/@debug = 'true' and /canvas/@runtime = 'dhtml'">
-      auto
-    </xsl:when>
+    <xsl:when test="/*/info/@debug = 'true' and /canvas/@runtime = 'dhtml'">auto</xsl:when>
     <xsl:otherwise>
       <xsl:value-of select="$canvasheight"/>
     </xsl:otherwise>
Index: demos/et/app-source.html
===================================================================
--- demos/et/app-source.html	(revision 1050)
+++ demos/et/app-source.html	(working copy)
@@ -6,17 +6,30 @@
 <title>LZPIX Source</title>
 
 <style type="text/css">
-    html, body { margin: 0; padding: 0; height: 100%; }
+	/* http://www.quirksmode.org/css/100percheight.html */
+	html, body { height: 100%; }
+	
+	html, body, iframe
+	{
+		margin: 0;
+		padding: 0;
+		border: 0 none;
+		overflow: hidden;
+	}
+	
+	iframe
+	{
+		width: 100%;
+		height: 100%;
+		overflow: scroll;
+	}
 </style>
-
-<script language="JavaScript1.1" src="/lps-et/lps/includes/vbembed.js" type="text/javascript">
-</script>
-
 </head>
 
 <body>
-    <iframe width="100%" height="100%" src="/lps-et/lps/utils/viewer/viewer.jsp?file=/demos/et/app.lzx&lzt=source" scrolling='yes' frameborder='0' vspace='0' hspace='0' marginwidth='0' marginheight='0'>
+    <iframe src="../../lps/utils/viewer/viewer.jsp?file=demos/et/app.lzx&amp;lzt=source">
     </iframe>
+</body>
 </html>
 <!--
 * X_LZ_COPYRIGHT_BEGIN ****************************************************
Index: demos/et/app-dhtml.html
===================================================================
--- demos/et/app-dhtml.html	(revision 1050)
+++ demos/et/app-dhtml.html	(working copy)
@@ -1,10 +1,42 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+        "http://www.w3.org/TR/html4/loose.dtd">
 <html>
-   <head>
-      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-      <link rel="SHORTCUT ICON" href="http://www.laszlosystems.com/favicon.ico">
-      <link rel="stylesheet" href="/lps-legals/lps/includes/console.css" type="text/css">
-      <title>LZPIX</title>
-      <script language="JavaScript1.1" src="/lps-legals/lps/includes/vbembed.js" type="text/javascript"></script>
+<head>
+  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+  <link rel="SHORTCUT ICON" href="http://www.laszlosystems.com/favicon.ico">
+  <title>LZPIX</title> <style type='text/css'>
+    /* http://www.quirksmode.org/css/100percheight.html */
+    html, body { height: 100%; }
+    html, body, iframe
+    {
+      margin: 0;
+      padding: 0;
+      border: 0 none;
+      overflow: hidden;
+    }
+    
+    body
+    {
+      height: 600px;
+      width: 800px;
+    }
+    
+    img { border: 0 none; }
+    
+    #pagecontainer
+    {
+      position: absolute;
+      left: 50%;
+      width: 420px;
+      margin-left: -210px;
+      margin-top: 20px;
+      background-color: white;
+      color: black;
+      font-family: "Trebuchet MS", "Verdana", "Helvetica", serif;
+      font-size: 16px;
+    }
+    
+</style>
       <script type="text/javascript">
         var isNetscape = navigator.userAgent.indexOf('Netscape') != -1; // currently only used for IE spoofing NS8
         var isSafari = navigator.appVersion.indexOf('Safari') != -1;
@@ -19,7 +51,7 @@
            var re = new RegExp("Firefox/(\\d\\.\\d)");
            var marray = re.exec(navigator.userAgent);
            FirefoxVersion = new Number(marray[1]);
-       }
+        }
 
         function getQueryVariable(variable, defval) {
           var query = window.location.search.substring(1);
@@ -37,34 +69,46 @@
         var isSupportedBrowser = isForced || (isFirefox && FirefoxVersion >= 1.5);
         
         function writeApp () {
-            document.open("text/html", "replace"); // use replace so we don't add to history
             var noconnectval = getQueryVariable("noconnect", "false");
             var noconnect = "&amp;noconnect=" + noconnectval;
-            var lztval = getQueryVariable("lzt", "dhtml-demo");
+            var lztval = getQueryVariable("lzt", "dhtml");
             var lzt = "&amp;lzt=" + lztval;
-            document.write("<html><head><title>LZPIX</title><style type='text/css'>html, body { margin: 0; padding: 0; height: 100%; } body { background-color: #cfcfcf; } img {border: 0}</style></head>");
-            document.write("<body style='margin: 0'><div style='background-color: #cfcfcf'>");
-            document.write("<iframe src='app.lzx?lzr=dhtml" + lzt + noconnect + "' width='800' height='600' scrolling='no' frameborder='0' vspace='0' hspace='0' marginwidth='0' marginheight='0'></iframe>");
-            document.write("</div></body></html>");
-            document.close();
+            document.getElementById('pagecontainer').style.display = 'none';
+            document.getElementById('appcontainer').innerHTML =
+            "<iframe src='app.lzx?lzr=dhtml" + lzt + noconnect + "' style='width: 800px; height: 600px' />"
         }
         
-      </script>
-   </head>
-   <body style="margin: 0">
-    <div style="background-color: #cfcfcf">
-      <script>
+      </script> 
+</head>
+<body>
+<div id="appcontainer"></div>
+<div id="pagecontainer" style="display: none">
+  <div id="header">
+    <a href="http://www.openlaszlo.org/"><img src="http://openlaszlo.org/themes/manji/images/ol_logo_small.gif" alt="" ></a> 
+  </div>
+  <div id="content">
+    <p>
+      Hi. Our DHTML runtime is only a few months old, so it&rsquo;s a little unsure of itself on most browsers besides Firefox&nbsp;1.5. Be kind to the little tot, it&rsquo;s growing up fast. 
+    </p>
+    <p>
+      But please, give it a try anyway! 
+    </p>
+    <p>
+      <a href="javascript:writeApp();">Launch LZPIX/DHTML</a> 
+    </p>
+  </div>
+</div>
+<script type="text/javascript">
         if (isSupportedBrowser) {
             writeApp();
         } else {
-            document.write('<html> <head> <title>LZPIX</title> <style> body { bgcolor: white; fgcolor: black; font-family: "Trebuchet MS", Verdana, Helvetica, serif; font-size: 16px; } img { border: 0px; } #pagecontainer { position: absolute; left: 50%; width: 420px; margin-left: -210px; margin-top: 20px; } </style> </head> <body> <div id="pagecontainer"> <div id="header"> <a href="http://www.openlaszlo.org/"><img src="http://openlaszlo.org/themes/manji/images/ol_logo_small.gif" alt=""/></a> </div> <div id="content"> <p> Hi. Our DHTML runtime is only a few weeks old, so it&#39;s a little unsure of itself on most browsers besides Firefox&nbsp;1.5.  Be kind to the little tot, he&#39;s growing up fast.  </p> <p> But please, give it a try anyway! </p> <p> <a href="javascript:writeApp();">Launch LZPIX/DHTML</a> </p> </div> </div> </body> </html> ');
+            document.getElementById('pagecontainer').style.display = 'block';
         }
-      </script>
-      <noscript>
-            Please enable JavaScript in order to use this application.
-      </noscript>
-    </div>
-   </body>
+      </script> 
+<noscript>
+  Please enable JavaScript in order to use this application. 
+</noscript>
+</body>
 </html>
 <!--
 * X_LZ_COPYRIGHT_BEGIN ****************************************************
Index: demos/et/index.html
===================================================================
--- demos/et/index.html	(revision 1050)
+++ demos/et/index.html	(working copy)
@@ -1,7 +1,10 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+        "http://www.w3.org/TR/html4/loose.dtd">
 <html>
 <head>
+<meta http-equiv="content-type" content="text/html; charset=utf-8">
 <title>OpenLaszlo LZpiX Demo</title>
-<script>
+<script type="text/javascript">
 function openApp(app) {
     window.open(app, "_blank", "width=800,height=600");
 }
@@ -13,10 +16,10 @@
 <body>
 
 <h1>LZPIX</h1>
-<p><img src="assets/branding/lil_cam.png" alt="LzPix" /></p>
+<p><img src="assets/branding/lil_cam.png" alt="LzPix"></p>
 Launch the <a href="javascript:openApp('app-flash.html')">Flash</a> version of the app<br>
 Launch the <a href="javascript:openApp('app-dhtml.html')">DHTML</a> version of the app<br>
-View <a href="app-source.html">source code<a/><br>
+View <a href="app-source.html">source code</a><br>
 <br>
 Canned data: 
 <a href="javascript:openApp('app-flash.html?noconnect=true')">Flash</a>, 
