function photoalbumNextMouseOver_multi(id) {
	photoalbum_currentImage = eval("photoalbum_currentImage_" + id);
	photoalbumImgs = eval("photoalbumImgs_" + id);
	nextButton = "nextButton_" + id;
	//alert("photoalbum_currentImage = " + photoalbum_currentImage);
	//alert("photoalbumImgs.length = " + photoalbumImgs.length);
	if (photoalbum_currentImage < photoalbumImgs.length-1) {
		document.images[nextButton].src = "../images/photoalbum_next_over.gif";
	}
}

function photoalbumNextMouseOut_multi(id) {
	photoalbum_currentImage = eval("photoalbum_currentImage_" + id);
	photoalbumImgs = eval("photoalbumImgs_" + id);
	nextButton = "nextButton_" + id;
	if (photoalbum_currentImage < photoalbumImgs.length-1) {
		document.images[nextButton].src = "../images/photoalbum_next_off.gif";
	}
}

function photoalbumPreviousMouseOver_multi(id) {
	photoalbum_currentImage = eval("photoalbum_currentImage_" + id);
	photoalbumImgs = eval("photoalbumImgs_" + id);
	previousButton = "previousButton_" + id;
	if (photoalbum_currentImage > 1) {
		document.images[previousButton].src = "../images/photoalbum_previous_over.gif";
	}
}

function photoalbumPreviousMouseOut_multi(id) {
	photoalbum_currentImage = eval("photoalbum_currentImage_" + id);
	photoalbumImgs = eval("photoalbumImgs_" + id);
	previousButton = "previousButton_" + id;
	if (photoalbum_currentImage > 1) {
		document.images[previousButton].src = "../images/photoalbum_previous_off.gif";
	}
}


function photoalbumNext_multi(id) {
	photoalbum_currentImage = eval("photoalbum_currentImage_" + id);
	photoalbumImgs = eval("photoalbumImgs_" + id);
	photoalbumCaptions = eval("photoalbumCaptions_" + id);
	nextButton = "nextButton_" + id;
	if (photoalbum_currentImage < photoalbumImgs.length-1) {
		document.images['photoalbum_'+id+'_num_'+photoalbum_currentImage].src = "../images/photoalbum_number_" + photoalbum_currentImage + "_off.gif";
		photoalbum_currentImage++;
		eval("photoalbum_currentImage_" + id + "=" + photoalbum_currentImage);
		document.images['photoalbum_'+id+'_num_'+photoalbum_currentImage].src = "../images/photoalbum_number_" + photoalbum_currentImage + ".gif";
		document.images['photoalbumImage_'+id].src = photoalbumImgs[photoalbum_currentImage];
		document.forms['pa_form_'+id].caption.value = photoalbumCaptions[photoalbum_currentImage];
	}
	if (photoalbum_currentImage == photoalbumImgs.length-1) {
		document.images[nextButton].src = "../images/photoalbum_next_off.gif";	
	}
}

function photoalbumPrevious_multi(id) {
	photoalbum_currentImage = eval("photoalbum_currentImage_" + id);
	photoalbumImgs = eval("photoalbumImgs_" + id);
	photoalbumCaptions = eval("photoalbumCaptions_" + id);
	previousButton = "previousButton_" + id;
	if (photoalbum_currentImage > 1) {
		document.images['photoalbum_'+id+'_num_'+photoalbum_currentImage].src = "../images/photoalbum_number_" + photoalbum_currentImage + "_off.gif";
		photoalbum_currentImage--;
		eval("photoalbum_currentImage_" + id + "=" + photoalbum_currentImage);
		document.images['photoalbum_'+id+'_num_'+photoalbum_currentImage].src = "../images/photoalbum_number_" + photoalbum_currentImage + ".gif";
		document.images['photoalbumImage_'+id].src = photoalbumImgs[photoalbum_currentImage];
		document.forms['pa_form_'+id].caption.value = photoalbumCaptions[photoalbum_currentImage];
	}
	if (photoalbum_currentImage == 1) {
		document.images[previousButton].src = "../images/photoalbum_previous_off.gif";	
	}
}

function numberMouseOver_multi(id, i){
	photoalbum_currentImage = eval("photoalbum_currentImage_" + id);
	if (photoalbum_currentImage != i){
		document.images['photoalbum_'+id+'_num_'+i].src = "../images/photoalbum_number_" + i + "_over.gif";
	}
}

function numberMouseOut_multi(id, i){
	photoalbum_currentImage = eval("photoalbum_currentImage_" + id);
	if (photoalbum_currentImage != i){
		document.images['photoalbum_'+id+'_num_'+i].src = "../images/photoalbum_number_" + i + "_off.gif";
	}
}

function selectImage_multi(id,i){
	photoalbum_currentImage = eval("photoalbum_currentImage_" + id);
	photoalbumImgs = eval("photoalbumImgs_" + id);
	photoalbumCaptions = eval("photoalbumCaptions_" + id);
	if (photoalbum_currentImage != i){
		document.images['photoalbum_'+id+'_num_'+photoalbum_currentImage].src = "../images/photoalbum_number_" + photoalbum_currentImage + "_off.gif";
		document.images['photoalbum_'+id+'_num_'+i].src = "../images/photoalbum_number_" + i + ".gif";
		document.images['photoalbumImage_'+id].src = photoalbumImgs[i];
		document.forms['pa_form_'+id].caption.value = photoalbumCaptions[i];
		eval("photoalbum_currentImage_" + id + "=" + i);
	}
}