	var indI = 1;
	images = new Array();
	images[1] = "photos_cumuruxatiba/apartment_1.jpg";
	images[2] = "photos_cumuruxatiba/apartment_2.jpg";
	images[3] = "photos_cumuruxatiba/apartment_3.jpg";
	images[4] = "photos_cumuruxatiba/apartment_4.jpg";
	images[5] = "photos_cumuruxatiba/aerial_view.jpg";
	images[6] = "photos_cumuruxatiba/bathroom.jpg";
	images[7] = "photos_cumuruxatiba/bedroom.jpg";
	images[8] = "photos_cumuruxatiba/breakfast_area.jpg";
	images[9] = "photos_cumuruxatiba/front_view.jpg";
	images[10] = "photos_cumuruxatiba/garden_1.jpg";
	images[11] = "photos_cumuruxatiba/garden_2.jpg";
	images[12] = "photos_cumuruxatiba/leisure_area.jpg";	
	images[13] = "photos_cumuruxatiba/swimming_pool_1.jpg";
	images[14] = "photos_cumuruxatiba/swimming_pool_2.jpg";
	images[15] = "photos_cumuruxatiba/beach_1.jpg";
	images[16] = "photos_cumuruxatiba/beach_2.jpg";
	
	descript = new Array();
	descript[1] = "Apartment";
	descript[2] = "Apartment";
	descript[3] = "Apartment";
	descript[4] = "Apartment";
	descript[5] = "Aerial View";
	descript[6] = "Bathroom";
	descript[7] = "Bedroom";
	descript[8] = "Breakfast Area";
	descript[9] = "Front View";
	descript[10] = "Garden";
	descript[11] = "Garden";
	descript[12] = "Leisure Area";
	descript[13] = "Swimming Pool";
	descript[14] = "Swimming Pool";
	descript[15] = "Beach";
	descript[16] = "Beach";

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 != 16) 
  {
		indI++;
		document.getElementById("img1").src = images[indI];
		document.getElementById("desc").value = descript[indI];
		document.getElementById("previous").value = "Previous";
  }
	if (indI == 16)
  {
		document.getElementById("next").value = "    ";
  }
}