function preparePhoto(id){
	$('offerPhotoID').src = photos[actual-1];
	max = photos.length;
	$('currentPhoto').innerHTML = actual;
	$('allPhotos').innerHTML = max;
	return false;
}


function nextPhoto(id){
	actual--;	
	if(actual<1) actual = max;
	return preparePhoto(id);
}

function prevPhoto(id){
	actual++;
	if(actual>max) actual = 1;
	return preparePhoto(id);
}

