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("EBV10.jpg","EBV11.jpg","EBVfullhouse.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;
}
