
function ScrollPhoto(PhotoId)
{
	if(PhotoId > CarCount - 1 || PhotoId < 0) return;
	if(CarCount <= CellCount) PhotoId = 0; 
	else if(PhotoId > CarCount - CellCount) PhotoId = CarCount - CellCount;
	FirstPhotoId = PhotoId;
	
	for(var i=0; i<PhotoId; i++) document.getElementById("car"+i).style.display = "none";
	for(var i=PhotoId; i<=PhotoId+CellCount; i++) document.getElementById("car"+i).style.display = "";
	for(var i=PhotoId+CellCount; i<CarCount; i++) document.getElementById("car"+i).style.display = "none";
	
}

