var i =0;
function setI(start) {
	i = start;
	if (i + 15 > photos.length) {
	i = photos.length - 15;
	}
	if (i < 0)
	{
	i = 0;
	}
	setImage();
}

function setImage() {
var photo = new Array()
document.getElementById("a1").src = photos[i];
document.getElementById("a2").src = photos[i+1];
document.getElementById("a3").src = photos[i+2];
document.getElementById("a4").src = photos[i+3];
document.getElementById("a5").src = photos[i+4];
document.getElementById("b1").src = photos[i+5];
document.getElementById("b2").src = photos[i+6];
document.getElementById("b3").src = photos[i+7];
document.getElementById("b4").src = photos[i+8];
document.getElementById("b5").src = photos[i+9];
document.getElementById("c1").src = photos[i+10];
document.getElementById("c2").src = photos[i+11];
document.getElementById("c3").src = photos[i+12];
document.getElementById("c4").src = photos[i+13];
document.getElementById("c5").src = photos[i+14];
}

function getIdSrc(x)
{
   var pic = document.getElementById(x).src;
   loadPosterImage(pic);
}

function canManipulateImages() {
	if (document.images)
		return true;
	else
		return false;
}

function loadPosterImage(imageURL) {
	if (gImageCapableBrowser) {
		document.imagePoster.src = imageURL.replace(/thumbnails/,"photos");
		return false;
	}
	else {
		return true;
	}
}
gImageCapableBrowser = canManipulateImages();