<!--
var out_txt = '';

out_txt += '<table class="tda" align="center" border="0" cellpadding="0" cellspacing="0">';
out_txt += ' <tr><td valign="top" align="left"><font id="Text05">&nbsp;</font></td></tr>';

if (sec_nbr < 9) {
out_txt += ' <tr>';
out_txt += '  <td valign="top" align="left" width="100%">';
out_txt += '   <table class="tda" align="left" border="0" cellpadding="0" cellspacing="0">';
out_txt += '    <tr>';
out_txt += '     <td align="left" width="500"><div id="Text01b">'+sec_title+' '+sec_nbr+':&nbsp;<font id="Text01a">\"'+sec_name+'\"</font></div></td>';
out_txt += '     <td align="right" rowspan="8" valign="top" align="left">&nbsp;&nbsp;&nbsp;&nbsp;</td>';
out_txt += '     <td align="right" rowspan="8" valign="bottom" align="left" width="220">';
out_txt += '      <table align="left" border="0" cellpadding="0" cellspacing="0">';
out_txt += '       <tr>';
out_txt += '        <td rowspan="1" align="right" valign="bottom" width="160" height="160"><img class="map" width="160" height="160" src="'+sec_map+'"></td>';
out_txt += '       </tr>';
out_txt += '       <tr>';
out_txt += '        <td colspan="1" valign="top" align="right"><p id="Text05">source: &copy; Tour d\' Afrique Ltd.</p></td>';
out_txt += '       </tr>';
out_txt += '      </table>';
out_txt += '     </td>';
out_txt += '    </tr>';
out_txt += '    <tr>';
out_txt += '     <td>&nbsp;</td>';
out_txt += '    </tr>';
out_txt += '    <tr>';
out_txt += '     <td>';
out_txt += '       <table align="left" border="0" cellpadding="0" cellspacing="0">';
out_txt += '        <tr>';
out_txt += '         <td><font id="Text02">'+sec_start_ctry+'&nbsp;</font></td>';
out_txt += '         <td><img valign="bottom" width="50" height="27" src="'+sec_flag1+'"></td>';
out_txt += '         <td><font id="Text02">&nbsp;&nbsp;'+to+'&nbsp;&nbsp;'+sec_end_ctry+'&nbsp;</font></td>';
out_txt += '         <td><img width="50" height="27" src="'+sec_flag2+'"></td>';
out_txt += '        </tr>';
out_txt += '       </table>';
out_txt += '     </td>';
out_txt += '    </tr>';
out_txt += '    <tr><td align="left" width="100%"><hr></td></tr>';
out_txt += '    <tr>';
out_txt += '     <td valign="top" align="left" width="100%">';
out_txt += '      <div id="Text03">';
out_txt += '       <table align="left" border="0" cellpadding="0" cellspacing="0" width="100%">';
out_txt += '        <tr>';
out_txt += '         <td width="100"><font id="Text03">Start:</font><td>';
out_txt += '         <td width="150"><font id="Text03a">'+sec_start_date+'</font><td>';
out_txt += '         <td width="120"><font id="Text03a">'+sec_start_city+'</font><td>';
out_txt += '         <td><font id="Text03b">('+sec_start_ctry+')</font><td>';
out_txt += '        </tr>';
out_txt += '        <tr>';
out_txt += '         <td><font id="Text03">Finish:</font><td>';
out_txt += '         <td><font id="Text03a">'+sec_end_date+'</font><td>';
out_txt += '         <td><font id="Text03a">'+sec_end_city+'</font><td>';
out_txt += '         <td><font id="Text03b">('+sec_end_ctry+')</font><td>';
out_txt += '        </tr>';
out_txt += '        <tr>';
out_txt += '         <td><font id="Text03">Distance:</font><td>';
out_txt += '         <td><font id="Text03a">'+sec_dist+'</font><td>';
out_txt += '         <td><font id="Text03a"></font><td>';
out_txt += '         <td><font id="Text03b"></font><td>';
out_txt += '        </tr>';
out_txt += '        <tr>';
out_txt += '         <td><font id="Text03">Duration:</font><td>';
out_txt += '         <td><font id="Text03a">'+sec_duration+'</font><td>';
out_txt += '         <td><font id="Text03a"></font><td>';
out_txt += '         <td><font id="Text03b"></font><td>';
out_txt += '        </tr>';
out_txt += '       </table>';
out_txt += '      </div>';
out_txt += '     </td>';
out_txt += '    </tr>';
out_txt += '    <tr><td align="left" width="100%"><hr></td></tr>';
out_txt += '   </table>';
out_txt += '  </td>';
out_txt += ' </tr>';
out_txt += ' <tr>';
out_txt += '  <td valign="top" align="justify" width="100%"><p>&nbsp;</p><font id="Text04">'+photo_txt_1+'</font></td>';
out_txt += ' </tr>';
} else {
out_txt += ' <tr>';
out_txt += '  <td align="center"><div id="Text01">'+sec_name+'</div></td>';
out_txt += ' </tr>';
out_txt += ' <tr>';
out_txt += '  <td valign="top" align="justify" width="100%"><p>&nbsp;</p><font id="Text04">'+photo_txt_1+'</font></td>';
out_txt += ' </tr>';
out_txt += ' <tr>';
out_txt += '  <td valign="top" align="justify" width="100%"><p>&nbsp;</p><font id="Text04"></p></font></td>';
out_txt += ' </tr>';
}

if (my_locale=="de") toggle_viewer="Wechsle Anzeige"; else toggle_viewer="Toggle Viewer";
if (my_locale=="de") nbr_photos=(photos.length-1) + " Fotos"; else nbr_photos=(photos.length-1) + " photos";
if (my_viewer=="frog")
 out_txt += '  <tr><td valign="top" align="right">'+nbr_photos+'&nbsp;&nbsp;&nbsp;&nbsp;<a class="selector" href="'+self.location.pathname+'?locale='+my_locale+';viewer=smart" style="border:1px  solid;border-color:#FC9 #630 #330 #F96; padding:5px 5px;  color:#FFFFFF; background:#DD6666; text-decoration:none; margin:5px; margin-right:10px;"><font id="Text06">'+toggle_viewer+'</font></a>';
else 
 out_txt += '  <tr><td valign="top" align="right">'+nbr_photos+'&nbsp;&nbsp;&nbsp;&nbsp;<a class="selector" href="'+self.location.pathname+'?locale='+my_locale+';viewer=frog" style="border:1px  solid;border-color:#FC9 #630 #330 #F96; padding:5px 5px;  color:#FFFFFF; background:#DD6666; text-decoration:none; margin:5px; margin-right:10px;"><font id="Text06">'+toggle_viewer+'</font></a>';

if (my_viewer=="frog")  {
out_txt += ' <tr>';
out_txt += '  <td valign="top" align="justify" width="100%"><p>&nbsp;</p></td>';
out_txt += ' </tr>';
out_txt += ' <tr>';
out_txt += '  <td valign="top" align="justify" width="100%">';
out_txt += '   <div id="FrogJS">';

// for (i=photos.length-2; i>=0; i--)
for (i=0; i< photos.length-1; i++)
{
out_txt += '    <a href="photos/sections/'+nav_sec_item+'/small/'+(i+1)+'.jpg" title="'
out_txt += '(' + (i+1) + ' / ' + (photos.length-1)
out_txt += ')&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'
out_txt += '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'
out_txt += photos[i][0]+'" rel="'+photos[i][2]+'" target="_blank">';
out_txt += '     <img class="joe" src="photos/sections/'+nav_sec_item+'/thumbs/'+(i+1)+'.jpg" ';
out_txt += '      alt="';
out_txt += '<table align=\'left\' border=\'0\' cellpadding=\'0\' cellspacing=\'0\' width=\'100%\'>';
out_txt += '<tr><td colspan=\'2\' class=\'FrogJSCaption1\'><font id=\'FrogJSCaption1\'></font></td></tr>';

if ((photos[i][3] != null) && (photos[i][3] != "")) {
 out_txt += '<tr><td class=\'FrogJSCaptionIL\'><font id=\'FrogJSCaptionIL\'>'+photo_date+': '+photos[i][3]+'</font></td>';
 if ((photos[i][5] != null) && (photos[i][5] != "") && (photos[i][6] != null) && (photos[i][6] != "")) {
  out_txt += '<td id=\'FrogJSCaptionIR\'><font id=\'FrogJSCaptionIR\'>'+gps_dat+': '+photos[i][5]+' / '+photos[i][6]+'</font></td></tr>';
 }
 else {
  out_txt += '<td id=\'FrogJSCaptionIR\'><font id=\'FrogJSCaptionIR\'>&nbsp;</font></td></tr>';
 }
}
if ((photos[i][4] != null) && (photos[i][4] != "")) {
 out_txt += '<tr><td colspan=\'2\' class=\'FrogJSCaption1\'><font id=\'FrogJSCaption1\'>'/*+photo_loc+': '*/+ photos[i][4]+'</font></td></tr>';
}
//out_txt += '<tr><td colspan=\'2\' class=\'FrogJSCaptionIL\'><font id=\'FrogJSCaptionIL\'>'+photos[i][1]+'</font></td></tr>';
out_txt += '</table>';
out_txt += '">';
out_txt += '</a>';
}
out_txt += '   </div>';
out_txt += '  </td>';
out_txt += ' </tr>';


} // end if (false)
else 
{
out_txt += '<tr><td valign="top" align="left"><font id="Text05">&nbsp;</font></td></tr>';
out_txt +=' <script type="text/javascript" language="JavaScript" src="js/dhtml/simpleviewer/swfobject.js"></script>';
out_txt += ' <tr>';
out_txt += '  <td valign="center" align="center" width="100%">';
out_txt += '  <div id="flashcontent">SimpleViewer requires JavaScript and the Flash Player. <a href="http://www.macromedia.com/go/getflashplayer/">Get Flash.</a></div>';
out_txt += '  	  	<script type="text/javascript">';
out_txt += '  	  		var fo = new SWFObject("js/dhtml/simpleviewer/viewer.swf", "viewer", "100%", "100%", "7", "#663300");';
out_txt += '  	  		fo.addVariable("xmlDataPath", "photos/sections/'+nav_sec_item+'/gallery.xml");';
out_txt += '  	  		fo.addVariable("captionUnderThumbs", "false");';
out_txt += '  	  		fo.write("flashcontent");';
out_txt += '  	  	</script>';
out_txt += '  </td>';
out_txt += ' </tr>';

if (false) {
txt1='' ;
for (i=0; i<photos.length-1; i++)
{
 txt1+= '&lt;image&gt;<br>';
 txt1+= '&nbsp;&lt;filename&gt;'+(i+1)+'.jpg&lt;/filename&gt;<br>';
 txt1+= '&nbsp;&lt;caption&gt;('+(i+1)+' / '+(photos.length-1)+'):&nbsp;&nbsp;'+photos[i][4]+'&lt;/caption&gt;<br>';
 txt1+= '&lt;/image&gt;<br>';
}
 out_txt += ' <tr>';
 out_txt += '  <td valign="top" align="justify" width="100%"><p>&nbsp;'+txt1+'</p></td>';
 out_txt += ' </tr>';
}
}
out_txt += '</table>';
