	var indI = 1;
	images = new Array();
	images[1] = "photos_pelor/view_from_street.jpg";
	images[2] = "photos_pelor/view_from_street_1.jpg";
	images[3] = "photos_pelor/view_from_gallery.jpg";
	images[4] = "photos_pelor/view_to_convent.jpg";
	images[5] = "photos_pelor/view_to_convent_1.jpg";	
	images[6] = "photos_pelor/view_to_square.jpg";
	images[7] = "photos_pelor/view_to_square_1.jpg";
	images[8] = "photos_pelor/gallery.jpg";
	images[9] = "photos_pelor/gallery_1.jpg";
	images[10] = "photos_pelor/reception_area.jpg";
	images[11] = "photos_pelor/staircase_to_1st_floor.jpg";
	images[12] = "photos_pelor/staircase_to_2nd_floor.jpg";
	images[13] = "photos_pelor/view_from_bedroom.jpg";
	images[14] = "photos_pelor/view_from_bedroom_1.jpg";
	images[15] = "photos_pelor/bay_view.jpg";
	images[16] = "photos_pelor/bay_view_1.jpg";
	images[17] = "photos_pelor/bay_view_2.jpg";

	descript = new Array();
	descript[1] = "View from Street";
	descript[2] = "View from Street";
	descript[3] = "View from Gallery";
	descript[4] = "View to Convent";
	descript[5] = "View to Convent";
	descript[6] = "View to Square";
	descript[7] = "View to Square";
	descript[8] = "Gallery";
	descript[9] = "Gallery";
	descript[10] = "Reception Area";
	descript[11] = "Staircase to 1st Floor";
	descript[12] = "Staircase to 2nd Floor";
	descript[13] = "View from Bedroom";
	descript[14] = "View from Bedroom";
	descript[15] = "Bay View";
	descript[16] = "Bay View";
	descript[17] = "Bay View";


function gallery()
{
	if (indI == 1)
  {
		document.getElementById("desc").value = descript[1];
		document.getElementById("previous").value="       ";
  }
}
function previmg()
{
	if (indI != 1) 
  {
		indI--;
		document.getElementById("img1").src = images[indI];
		document.getElementById("desc").value = descript[indI];
		document.getElementById("next").value = "Next";
  }
	if (indI == 1) 
  {
		document.getElementById("previous").value = "        ";
  }
}

function nextimg()
{
	if (indI != 17) 
  {
		indI++;
		document.getElementById("img1").src = images[indI];
		document.getElementById("desc").value = descript[indI];
		document.getElementById("previous").value = "Previous";
  }
	if (indI == 17)
  {
		document.getElementById("next").value = "    ";
  }
}