function sp( as_file, as_text )
 {
  var n_pos;
  var s_file, s_file1, s_file2;

/*
  var n_h, n_w;
*/

  /* Thumbs: .../th/...jpg, Large: .../lg/...jpg => '/th/' gegen '/lg/' tauschen */

  if( as_file.substr( 0, 4 ) == "file" ) {
    n_pos = as_file.lastIndexOf( "/th/" );
    s_file1 = as_file.substr( 0, n_pos );
    s_file2 = s_file1.concat( "/lg/" );
    s_file = s_file2.concat( as_file.substr( n_pos + 4 ) );
  } else {
    s_file = as_file;
  }

// alert( s_file );


  /* html für Anzeige Foto in document schreiben */
       document.open();
       layout1();
       document.writeln( "<br><table border=\"0\" width=\"810\" cellspacing=\"0\" cellpadding=\"0\" >" );
       document.writeln( "<tr><td width=\"810\" height=\"30\" valign=\"middle\" align=\"center\"><h2 align=\"center\">" + as_text + "</h2></td>" );
       document.writeln( "<tr><td width=\"810\" valign=\"middle\" align=\"center\"><a href=\"JavaScript:history.back()\"><img border=\"0\" src=\"" + s_file + "\"></td>" );
       document.writeln( "<tr><td width=\"810\" height=\"30\"</td></tr><tr><td width=\"810\" height=\"30\" valign=\"middle\" align=\"center\"><a class=\"report\" href=\"JavaScript:history.back()\"><img border=\"0\" src=\"../img/btn_back.gif\" alt=\"zur zuletzt angezeigten Seite\"></a></td>" );
       document.writeln( "</table>" ); 
       layout2();
       layout3();

 } function layout1() {document.writeln( "<html>");document.writeln( "<head>");document.writeln( "<title>Mike's Fotoseiten und Reiseberichte</title>");document.writeln( "<link rel=\"stylesheet\" type=\"text/css\" href=\"../inc/format.css\">");document.writeln( "<style type=\"text/css\">body { background-image:url(../img/frame.gif); background-repeat:repeat-y; }</style>");document.writeln( "</head>");document.writeln( "<body topmargin=\"0\" leftmargin=\"0\">");document.writeln( "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"990\" height=\"650\">");document.writeln( "<tr>");document.writeln( "<td valign=\"top\" width=\"180\">");document.writeln( "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"180\">");document.writeln( "<tr>");document.writeln( "<td>");document.writeln( "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"180\">");document.writeln( "<tr>");document.writeln( "<td width=\"10\" height=\"30\">&nbsp;</td>");document.writeln( "<td width=\"160\" height=\"30\"></td>");document.writeln( "<td width=\"10\" height=\"30\">&nbsp;</td>");document.writeln( "</tr>");document.writeln( "<tr>");document.writeln( "<td width=\"10\" height=\"30\">&nbsp;</td>");document.writeln( "<td width=\"160\" height=\"30\"><a class=\"menu\" href=\"../index.htm\">Start</a></td>");document.writeln( "<td width=\"10\" height=\"30\">&nbsp;</td>");document.writeln( "</tr>");document.writeln( "<tr>");document.writeln( "<td width=\"10\" height=\"30\">&nbsp;</td>");document.writeln( "<td width=\"160\" height=\"30\"><a class=\"menu\" href=\"../htm/_report.htm\">Berichte & Galerien</a></td>");document.writeln( "<td width=\"10\" height=\"30\">&nbsp;</td>");document.writeln( "</tr>");document.writeln( "<tr>");document.writeln( "<td width=\"10\" height=\"30\">&nbsp;</td>");document.writeln( "<td width=\"160\" height=\"30\"><a class=\"menu\" href=\"../htm/_newsletter.htm\">Newsletter</a></td>");document.writeln( "<td width=\"10\" height=\"30\">&nbsp;</td>");document.writeln( "</tr>");document.writeln( "<tr>");document.writeln( "<td width=\"10\" height=\"30\">&nbsp;</td>");document.writeln( "<td width=\"160\" height=\"30\"><a class=\"menu\" href=\"http://pub20.bravenet.com/guestbook/show.php?usernum=1674612587&cpv=1\" target=\"_blank\">G&auml;stebuch</a></td>");document.writeln( "<td width=\"10\" height=\"30\">&nbsp;</td>");document.writeln( "</tr>");document.writeln( "<tr><td>&nbsp;</td>");document.writeln( "</tr>");document.writeln( "<tr>");document.writeln( "<td width=\"10\" height=\"30\">&nbsp;</td>");document.writeln( "<td width=\"160\" height=\"30\"><a class=\"menu\" href=\"../htm/_link.htm\">Links</a></td>");document.writeln( "<td width=\"10\" height=\"30\">&nbsp;</td>");document.writeln( "</tr>");document.writeln( "<tr>");document.writeln( "<td width=\"10\" height=\"30\">&nbsp;</td>");document.writeln( "<td width=\"160\" height=\"30\"><a class=\"menu\" href=\"../htm/_copyright.htm\">Copyright</a></td>");document.writeln( "<td width=\"10\" height=\"30\">&nbsp;</td>");document.writeln( "</tr>");document.writeln( "</table>");document.writeln( "</td>");document.writeln( "</tr>");document.writeln( "<tr>");document.writeln( "<td>");document.writeln( "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"180\">");document.writeln( "<tr>");document.writeln( "<td width=\"10\" height=\"80\"></td>");document.writeln( "<td width=\"160\" height=\"80\"></td>");document.writeln( "<td width=\"10\" height=\"80\"></td>");document.writeln( "</tr>");document.writeln( "<tr>");document.writeln( "<td width=\"10\" height=\"15\"></td>");document.writeln( "<td width=\"160\" height=\"15\">");document.writeln( "<p class=\"menu_klein\" align=\"center\">Fördermitglied von<BR>TARGET e.V.:</p>");document.writeln( "</td>");document.writeln( "<td width=\"10\" height=\"15\"></td>");document.writeln( "</tr>");document.writeln( "<tr>");document.writeln( "<td width=\"10\" height=\"15\"></td>");document.writeln( "<td width=\"160\" height=\"15\"></td>");document.writeln( "<td width=\"10\" height=\"15\"></td>");document.writeln( "</tr>");document.writeln( "<tr>");document.writeln( "<td width=\"5\" height=\"160\"></td>");document.writeln( "<td width=\"160\" height=\"160\"><a class=\"menu\" href=\"http://www.target-human-rights.de\" target=\"_blank\"><img src=\"target_e_v.jpg\" align=\"center\" border=\"0\" hspace=\"1\" alt=\"TARGET e.V.\" width=\"160\" height=\"160\" ></a></td>");document.writeln( "<td width=\"15\" height=\"160\"></td>");document.writeln( "</tr>");document.writeln( "");document.writeln( "<tr>");document.writeln( "<td width=\"10\" height=\"100\"></td>");document.writeln( "<td width=\"160\" height=\"100\"></td>");document.writeln( "<td width=\"10\" height=\"100\"></td>");document.writeln( "</tr>");document.writeln( "<tr>");document.writeln( "<td width=\"10\" height=\"59\"></td>");document.writeln( "<td width=\"160\" height=\"59\">");document.writeln( "<p class=\"menu_klein\">Optimiert f&uuml;r:<BR>Internet-Explorer 5.5");document.writeln( "<BR>Einstellungen:<BR>Aufl&ouml;sung: 1024x768<BR>Vollbild<BR>JavaScript 1.2</p>");document.writeln( "</td>");document.writeln( "<td width=\"10\" height=\"59\"></td>");document.writeln( "</tr>");document.writeln( "<tr>");document.writeln( "<td width=\"10\" height=\"60\"></td>");document.writeln( "<td width=\"160\" height=\"60\" align=\"left\">");document.writeln( "<br>");document.writeln( "</td>");document.writeln( "<td width=\"10\" height=\"60\"></td>");document.writeln( "</tr>");document.writeln( "</table>");document.writeln( "</td>");document.writeln( "</tr>");document.writeln( "</table>");document.writeln( "</td>");document.writeln( "<td valign=\"top\" width=\"810\">");} function layout2() {document.writeln( "");document.writeln( "</td><td width=\"10\"></td>");document.writeln( "<td valign=\"top\" width=\"170\">");} function layout3() {document.writeln( "</td>");document.writeln( "</table>");document.writeln( "</body>");}
