	var indI = 1;
	images = new Array();
	images[1] = "photos_barra_022/living_room_1.jpg";
	images[2] = "photos_barra_022/living_room_2.jpg";
	images[3] = "photos_barra_022/facade.jpg";
	images[4] = "photos_barra_022/dining_area.jpg";
	images[5] = "photos_barra_022/kitchen_1.jpg";
	images[6] = "photos_barra_022/kitchen_2.jpg";
	images[7] = "photos_barra_022/bathroom_1.jpg";
	images[8] = "photos_barra_022/bathroom_2.jpg";
	images[9] = "photos_barra_022/bedroom_1.jpg";
	images[10] = "photos_barra_022/bedroom_2.jpg";	
	images[11] = "photos_barra_022/veranda_1.jpg";
	images[12] = "photos_barra_022/veranda_2.jpg";	
	images[13] = "photos_barra_022/veranda_view.jpg";

	descript = new Array();
	descript[1] = "Living Room";
	descript[2] = "Living Room";
	descript[3] = "Façade";
	descript[4] = "Dining Area";
	descript[5] = "Kitchen";
	descript[6] = "Kitchen";
	descript[7] = "Bathroom";
	descript[8] = "Bathroom";
	descript[9] = "Bedroom";
	descript[10] = "Bedroom";
	descript[11] = "Veranda";
	descript[12] = "Veranda";
	descript[12] = "Veranda 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 != 13) 
  {
		indI++;
		document.getElementById("img1").src = images[indI];
		document.getElementById("desc").value = descript[indI];
		document.getElementById("previous").value = "Previous";
  }
	if (indI == 13)
  {
		document.getElementById("next").value = "    ";
  }
}