' );
document.close();
}
function getRef( id )
{
var ref;
if (document.getElementById) // this is the way the standards work
ref = document.getElementById(id);
else if (document.all) // this is the way old msie versions work
ref = document.all[id];
else if (document.layers) // this is the way nn4 works
ref = document.layers[id];
return ref;
}
function changeImage( image )
{
imageref = getRef( 'photoalbum_image' );
imageref.src = photoalbum_basefolder + photoalbum_images[image][0];
imageref.title = photoalbum_images[image][1];
captionref = getRef( 'photoalbum_caption' );
captionref.innerHTML = photoalbum_images[image][1];
photoalbum_current = image;
}
function nextImage()
{
nImage = photoalbum_current + 1;
if (nImage >= photoalbum_images.length)
nImage = 0;
changeImage( nImage );
}
function previousImage()
{
pImage = photoalbum_current - 1;
if (pImage < 0)
pImage = photoalbum_images.length - 1;
changeImage( pImage );
}