if(items.length ==0){document.writeln("Channel not published");}else{
if( itemcount > items.length-1){itemcount=items.length-1;}
document.writeln("<head>");
document.writeln("<title></title>");
document.writeln("</head>");
document.writeln("");
document.writeln("<body topmargin=\"0\" leftmargin=\"0\">");
document.writeln("<div align=\"center\">");
document.writeln("  <center>");
document.writeln("  <table border=\"0\" cellpadding=\"5\" cellspacing=\"0\" width=\"100%\" height=\"41\">");
document.writeln("    <tr>");
document.writeln("");
for (var i=0; i < itemcount; i++){
item=fetch_item(i);
document.writeln("      <td width=\"37%\" rowspan=\"3\" height=\"31\">");
document.writeln("      <p align=\"center\">");
document.writeln("      <a href=\""+item.link+"\"> <img src=\""+item.image+"\" alt=\"click to enlarge\" width=\"250\" border=\"1\"><br>");
document.writeln("      </a><font size=\"1\" face=\"Verdana\" color=\"#808000\">click to view this photo gallery</font>");
document.writeln("      </p>");
document.writeln("      </td> <br> &nbsp");
}
document.writeln("");
document.writeln("  </tr>");
document.writeln("    <tr>");
document.writeln("      <td height=\"1\">");
document.writeln("        <b><a href=\""+item.link+"\"><font size=\"3\" face=\"Arial Black\" color=\"#808080\">Latest");
document.writeln("        Photo Gallery</font></a></b>");
document.writeln("</td>");
document.writeln("    </tr>");
document.writeln("    <tr>");
document.writeln("      <td valign=\"top\" height=\"80\">");
document.writeln("<font color=\"#006600\" face=\"Verdana\" size=\"2\">"+item.title+"</font>");
document.writeln("      </td>");
document.writeln("    </tr>");
document.writeln("  </table>");
document.writeln("  </center>");
document.writeln("</div>");
document.writeln("</body>");
}