	var indI = 1;
	images = new Array();
	images[1] = "photos_009/living_room_2.JPG";
	images[2] = "photos_009/living_room.JPG";
	images[3] = "photos_009/living_room_1.JPG";
	images[4] = "photos_009/bedroom_1.JPG";
	images[5] = "photos_009/bedroom_1a.JPG";
	images[6] = "photos_009/bedroom_1aview.JPG";
	images[7] = "photos_009/bedroom_1bview.JPG";
	images[8] = "photos_009/bedroom_2.JPG";
	images[9] = "photos_009/bedroom_2a.JPG";
	images[10] = "photos_009/bedroom_2aview.JPG";	
	images[11] = "photos_009/bedroom_2bview.JPG";
	images[12] = "photos_009/kitchen.JPG";
	images[13] = "photos_009/kitchen_1.JPG";
	images[14] = "photos_009/bathroom.JPG";
	images[15] = "photos_009/social_bathroom.JPG";	
	images[16] = "photos_009/varanda.JPG";
	images[17] = "photos_009/varanda_view.JPG";
	images[18] = "photos_009/varanda_view_1.JPG";

	descript = new Array();
	descript[1] = "Living Room";
	descript[2] = "Living Room";
	descript[3] = "Living Room";
	descript[4] = "No.1 Bedroom";
	descript[5] = "No.1 Bedroom";
	descript[6] = "No.1 Bedroom View";
	descript[7] = "No.1 Bedroom View";
	descript[8] = "No.2 Bedroom";
	descript[9] = "No.2 Bedroom";
	descript[10] = "No.2 Bedroom View";
	descript[11] = "No.2 Bedroom View";
	descript[12] = "Kitchen";
	descript[13] = "Kitchen";
	descript[14] = "Bathroom";
	descript[15] = "Social Bathroom";
	descript[16] = "Varanda";
	descript[17] = "Varanda View";
	descript[18] = "Varanda 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 != 18) 
  {
		indI++;
		document.getElementById("img1").src = images[indI];
		document.getElementById("desc").value = descript[indI];
		document.getElementById("previous").value = "Previous";
  }
	if (indI == 18)
  {
		document.getElementById("next").value = "    ";
  }
}