<!-- Hide this script from old browsers --
function generatePhotoPage( ACTIVEPIC, PHOTOS, TITLE, LANGUAGE )
{
  document.open();
  document.writeln("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//UTF-8\">");
  document.writeln("<html xmlns=\"http://www.w3.org/1999/xhtml\">");
  document.writeln("  <head>");
  document.writeln("    <title>" + TITLE + "</title>");
  document.writeln("    <meta name=\"description\" content=\"" + TITLE + "\">");
  document.writeln("    <meta name=\"Generator\" content=\"notepad\">");
  document.writeln("    <meta http-equiv=\"Content-Type\" content=\"image/jpg; charset=UTF-8\">");
  document.writeln("    <meta http-equiv=\"Content-Script-Type\" content=\"text/javascript\">");
  document.writeln("  </head>");
  document.writeln("  <script type=\"text/javascript\">");
  document.writeln("    var NUMPICS   = " + PHOTOS.length + ";");
  document.writeln("    var ACTIVEPIC = " + ACTIVEPIC + ";");
  document.writeln("    window.onload = rolloverInit;");
  document.writeln("    function rolloverInit() {");
  document.writeln("      var dispImgObj = document.images[NUMPICS];");
  document.writeln("      for (var i=0; i<NUMPICS; i++) {");
  document.writeln("        var imgObj = document.images[i];");
  document.writeln("        imgObj.icon      = imgObj.src;");
  document.writeln("        imgObj.fullPic   = imgObj.src.replace(\"_s.jpg\",\".jpg\");");
  document.writeln("        preloadedImg     = new Image();");
  document.writeln("        preloadedImg.src = imgObj.fullPic");
  document.writeln("        setupRollover(imgObj,dispImgObj,i);");
  document.writeln("      }");
  document.writeln("    }");
  document.writeln("    function setupRollover(thisImage,dispImgObj,activePic) {");
  document.writeln("      thisImage.onmouseover = function() {dispImgObj.src = thisImage.fullPic; ACTIVEPIC=activePic}");
  document.writeln("    }");
  document.writeln("  </script>");
  document.writeln("  <script type=\"text/javascript\" src=\"../generateTextPage.js\"></script>");
  document.writeln("  <body background=\"http://www.dilatonsworld.net/models/background.jpg\">");
  document.writeln("    <p align=\"center\">");
  for (var i=0; i<PHOTOS.length; i++) {
    document.writeln("      <img src=\"" + PHOTOS[i] + "\" id=\"pic" + i + "\" height=\"100\" />");
  }
  document.writeln("    </p>");
  document.writeln("    <table width=\"100%\" border=\"0\">");
  document.writeln("      <tr valign=\"bottom\" >");
  document.writeln("        <td align=\"center\">");
  document.write(  "          <img src=\"" + PHOTOS[ACTIVEPIC].replace('_s.jpg','.jpg') + "\" id=\"dispImg\" border=\"0\" ");
  document.writeln("onclick=\"javascript:ACTIVEPIC+=1; if (ACTIVEPIC==NUMPICS) ACTIVEPIC=0; src=document.images[ACTIVEPIC].fullPic;\" />");
  document.writeln("        </td>");
  document.writeln("      </tr>");
  document.writeln("    </table>");


  document.writeln("    <p><table width=\"100%\" border=\"0\"><tr>");
  document.writeln("      <td align=\"left\" width=\"80\">");
  document.writeln("        <a href=\"javascript:generateTextPage('" + LANGUAGE + "');\">");
  document.writeln("          <img src=\"../back.gif\" alt=\"Back\" alt=\"Return to the previous page\" border=\"0\" />");
  document.writeln("        </a>");
  document.writeln("      </td>");
  document.writeln("      <td align=\"center\" width=\"80\">");
  document.writeln("        <a href=\"http://www.dilatonsworld.net/models/\" target=\"_top\">");
  document.writeln("          <img src=\"../home.gif\" alt=\"Home\" border=\"0\" />");
  document.writeln("        </a>");
  document.writeln("      </td>");
  document.writeln("      <td align=\"right\">");
  document.writeln("        <address>&copy 2012 dilatonsworld.net</address>");
  document.writeln("      </td>");
  document.writeln("    </tr></table></p>");
  document.writeln("  </body>");
  document.writeln("</html>");
  document.close();
}
// -- End Hiding Here -->

