

var xmlDoc=null;
if (window.ActiveXObject)
{// code for IE
xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
}
else if (document.implementation.createDocument)
{// code for Firefox, Mozilla, Opera, etc.
xmlDoc=document.implementation.createDocument("","",null);
}
else
{
alert('Your browser cannot handle this script');
}
if (xmlDoc!=null)
{
xmlDoc.async=false;
xmlDoc.load("slideshow/slides.xml");

document.write("<table border='1' cellpadding='5' class='flashtext'>");

var imgNode=xmlDoc.getElementsByTagName("img");
for (var i=0;i<imgNode.length;i++){ 
document.write("<tr>");
document.write("<td>");
document.write("slide " + [i + 1]);
document.write("</td>");

document.write("<td>");
document.write("<a href='"+ imgNode[i].attributes.getNamedItem("link").value +"'>"+imgNode[i].attributes.getNamedItem("caption").value +"</a>");
document.write("</td>");
document.write("</tr>");
}
document.write("</table>");
}

		