var current = 0;
function imageArray()
{
this.length = imageArray.arguments.length;
for (var i = 0; i < this.length; i++)
{
this[i] = imageArray.arguments[i];
}
}
var imgz = new imageArray("Slides/Fantasy.JPG","Slides/Golden.JPG","Slides/Green.JPG","Slides/Kiwi.JPG","Slides/Lady.JPG","Slides/Parfait.JPG","Slides/Peach1.JPG","Slides/Peach2.JPG","Slides/Red.JPG","Slides/Summer.JPG","Slides/Surprise.JPG","Slides/Pastel.JPG");
document.write('<img name="myImages" border="1" src="'+imgz[0]+'">');
function getPosition(val)
{
var goodnum = current+val;
if (goodnum < 0)
alert("This is the first slide!");
else
if (goodnum > imgz.length-1)
alert("You are at the last slide!");
else
document.myImages.src = imgz[goodnum];
current = goodnum;
}
