<script language="JavaScript">

var num=1
var last=8
var show_pre="Slide"
var show_node="images/Dilboy_slides_/"
img1 = new Image ()
img1.src = "images/Dilboy_slides_/Slide"+num+".PNG"
img2 = new Image ()
img2.src = show_node+show_pre+"2.PNG"
img3 = new Image ()
img3.src = show_node+show_pre+"3.PNG"
img4 = new Image ()
img4.src = show_node+show_pre+"4.PNG"
img5 = new Image ()
img5.src = show_node+show_pre+"5.PNG"
img6 = new Image ()
img6.src = show_node+show_pre+"6.PNG"
img7 = new Image ()
img7.src = show_node+show_pre+"7.PNG"
img8 = new Image ()
img8.src = show_node+show_pre+"8.PNG"
img9 = new Image ()
img9.src = show_node+show_pre+"9.PNG"
img10 = new Image ()
img10.src = show_node+show_pre+"10.PNG"
img11 = new Image ()
img11.src = show_node+show_pre+"11.PNG"
img12 = new Image ()
img12.src = show_node+show_pre+"12.PNG"
img13 = new Image ()
img13.src = show_node+show_pre+"13.PNG"
img14 = new Image ()
img14.src = show_node+show_pre+"14.PNG"
img15 = new Image ()
img15.src = show_node+show_pre+"15.PNG"
img16 = new Image ()
img16.src = show_node+show_pre+"16.PNG"
img17 = new Image ()
img17.src = show_node+show_pre+"17.PNG"
img18 = new Image ()
img18.src = show_node+show_pre+"18.PNG"
img19 = new Image ()
img19.src = show_node+show_pre+"19.PNG"
img20 = new Image ()
img20.src = show_node+show_pre+"20.PNG"


function slideshowUp()
{
    num+=1
    if (num==21)
	{
	    num=1;
	}
    change_slide();
}

function slideshowBack()
{
    num-=1
	if (num==0)
	    {
		num=last
		    }
    change_slide();
}

function change_slide()
{
    document.mypic.src=eval("img"+num+".src");
    show_text="text/"+show_pre+"slide"+num+".xml";
    xmlDoc=loadXMLDoc(show_text);
    document.getElementById("mytext").innerHTML="&nbsp";
    document.getElementById("underpicture").innerHTML="&nbsp";
    main_node=xmlDoc.documentElement.nodeName;
    if (main_node!=show_node)
	{
	    alert("ERROR: filename = "+show_text+" node name ="+main_node+" expected ="+show_node);
	    main_text="&nbsp";
	    under_text="&nbsp";
	}
    else
	{
	    main_text=xmlDoc.getElementsByTagName("text")[0].childNodes[0].nodeValue; 
	    under_text=xmlDoc.getElementsByTagName("under")[0].childNodes[0].nodeValue; 
	}
    document.getElementById("mytext").innerHTML=main_text;
    document.getElementById("underpicture").innerHTML=under_text;

}

</script>

<!-- The Image Codes are Below -->

