<!-- HEAD -->
<!-- Script - "Next-Previous Image Gallery 2" -->
<!-- Script Source - http://www.sleuthz.com/ -->
<!--

// Create an Array of Image Locations
var myImg= new Array()
	myImg[0]= "../imgs/gallery/1.jpg";
	myImg[1]= "../imgs/gallery/2.jpg";
	myImg[2]= "../imgs/gallery/3.jpg";
	myImg[3]= "../imgs/gallery/4.jpg";
	myImg[4]= "../imgs/gallery/5.jpg";

// Create an Array of Captions CONDOS
var myCap= new Array()
	myCap[0]= "<p><strong>Type/Style:</strong> Condo, private home.<br/><br/><strong>Year built:</strong> 2002.<br/><br/><strong>Interior Features:</strong> Foyer, living and dining room, family room, 3 bedrooms (secondary bedrooms split from master bedroom), 2 full bathrooms. Wooden floors. Central   heating. 2 car garages. 2 Elevators.<br/><br/><strong>Exterior Features:</strong> Waterfront property with balconies overlooking the beach in Montevideo!</p>";
	myCap[1]= "<p><strong>Type/style:</strong> Condo, private home or office – High Rise.<br/><br/><strong>Year built:</strong> 1998.<br/><br/><strong>Interior Features:</strong> 2, 3 or 4 bedrooms with full bathrooms. Wooden floors and carpets. Central heating/air conditioning. 2 car garages. 3 Elevators.<br/><br/><strong>Exterior Features:</strong> Magnificent view to the bay of the Yacht Club Uruguayo. Community exercise area, pool and 2 tennis courts.</p>";
	myCap[2]= "<p><strong>Type/style:</strong> Condo, private home or office – Low Rise.<br/><br/><strong>Year built:</strong> 1995.<br/><br/><strong>Interior Features:</strong> Foyer, 2 or 3 bedrooms, 2 full baths. Ceramic tyle flooring, Central Heating/air conditioning, 2 elevators. Garage and attached parking places.<br/><br/><strong>Exterior Features:</strong> Balconies with magnificent waterfront views</p>";
	myCap[3]= "<p><strong>Type/Style:</strong> Condo – High Rise.<br/><br/><strong>Year built:</strong> 2005.<br/><br/><strong>Interior features:</strong> 3, 4 bedrooms with 3 full bathrooms. Secondary bedrooms split with master bedroom. Walk-in-closets. Wooden floors and carpets. Central heating/air conditioning. 4 elevators, 3 car garages.<br/><br/><strong>Exterior Features:</strong> Balconies with beautiful waterfront views overlooking fashionable  Pocitos beach in Montevideo!</p>";
	myCap[4]= "<p><strong>Type/Style:</strong> Condo – Low rise – Art Deco.<br/><br/><strong>Year built:</strong> Remodeled in 2005. Originally built in 1958.<br/><br/><strong>Interior Features:</strong> 3, 4 bedrooms, 3 full bathrooms, 2 car garages. Central heating/air conditioning.<br/><br/><strong>Exterior Features:</strong> Balconies with waterfront views. Simple lines!</p>";
	
// Create an Array of Image Locations B
var myImgB = new Array()
	myImgB[0]= "../imgs/gallery/6.jpg";
	myImgB[1]= "../imgs/gallery/7.jpg";
	myImgB[2]= "../imgs/gallery/8.jpg";
	myImgB[3]= "../imgs/gallery/9.jpg";
	myImgB[4]= "../imgs/gallery/10.jpg";

// Create an Array of Captions B HOUSING
var myCapB = new Array()
	myCapB[0]= "<p><strong>Type/Style:</strong> Single Family.<br/><br/><strong>Year built:</strong> 2006<br/><br/><strong>Interior Features:</strong> Living and dining rooms, family room, 4 bedrooms, 4 bathrooms. Central heating/ air conditioning. Attached parking place (3-4). Ceramic tile flooring and carpets. 2.685 sq.ft.<br/><br/><strong>Exterior Features:</strong> Roofing: Shingle. Garden view. Very good natural light!<br/><br/><strong>Lot of:</strong> 12.885 sq.ft.</p>";
	myCapB[1]= "<p><strong>Type/Style:</strong> Single Family Property – Streamline Moderne.<br/><br/><strong>Year built:</strong> 2006.<br/><br/><strong>Interior Features:</strong> Living, dining and family room. 4 bedrooms with 3 full bathrooms. 2 fireplaces. Wooden floors. Wood beamed ceilings. Central heating/ air conditioning. 3.435 sq.ft.<br/><br/><strong>Exterior Feature:</strong> Garden and natural pond view. All fenced and with a swimming pool. Pure nature!<br/><br/><strong>Lot of:</strong> 10.740 sq.ft.</p>";
	myCapB[2]= "<p><strong>Type/Style:</strong> Single Family Property<br/><br/><strong>Year built:</strong> 2006.<br/><br/><strong>Interior Features:</strong> Living, dining and family room, with 4 bedrooms and 4 bathrooms. Central heating/air conditioning. Ceramic tile flooring and carpets. 2 car garages. 2.470 sq.ft.<br/><br/><strong>Exterior Features:</strong> Roofing: Shingle. Beautiful garden view surrounded by similar houses! Be the first to occupy!<br/><br/><strong>Lot of:</strong> 11.800 sq.ft.</p>";
	myCapB[3]= "<p><strong>Type/Style:</strong> Single Family Property.<br/><br/><strong>Year built:</strong> 1995.<br/><br/><strong>Interior Features:</strong> Living and dining rooms, family room. 2 fireplaces. 4 bedrooms. 3 full bathrooms. 2 – 3 car garage. Central heating. 4.100 sq.ft.<br/><br/><strong>Exterior Features:</strong> Fenced, big patio, swimming pool!<br/><br/><strong>Lot of:</strong> 12,885 sq.ft.</p>";
	myCapB[4]= "<p><strong>Style/Type:</strong> Single Family Property – Streamline Modern.<br/><br/><strong>Year built:</strong> 2006.<br/><br/><strong>Interior Features:</strong> Living and dining room and family room (3) fireplaces. 4 bedrooms and 4 full bathrooms. 3 car garage with a big open car parking place (5). Central heating and central air conditioning system. 5.250 sq, ft.<br/><br/><strong>Exterior Features:</strong> Pool. Neatly fenced, excellent garden and lake view!<br/><br/><strong>Lot of:</strong> 12.885 sq. ft.</p>";

// Create Number of Images Variable
var n = myImg.length;

// Create Number Variable
var i = 0;

// Create Image Number Variable
var m = 1;

// Create Number of Images Variable B
var h = myImgB.length;

// Create Number Variable B
var j = 0;

// Create Image Number Variable B
var w = 1;


// Create Function to Load Image
function loadImg(){
// Gives "imgSrc" a Source with Number Variable
	document.imgSrc.src = myImg[i];
// Gives "caption" DIV a content
	document.getElementById("caption").innerHTML = myCap[i];
// Gives "imgNum" DIV the image number
	document.getElementById("imgNum").innerHTML = m + "/" + n;
// Gives "imgSrcB" a Source with Number Variable
	document.imgSrcB.src = myImgB[j];
// Gives "captionB" DIV a content
	document.getElementById("captionB").innerHTML = myCapB[j];
// Gives "imgNumB" DIV the image number
	document.getElementById("imgNumB").innerHTML = w + "/" + h;
}

// Create Link Function to Switch Image Backward
function prev(){
// Create If/Else Statement to Stop at Certain Image
// If the Number Variable is Less Than 1
	if(i<1){
// Create Another Next Number Variable which Equals to Number Variable
		var l = i;
// Create Current Number Variable which Equals to Image Number Variable
		var c = m;
// Otherwise
	}else{
// Next Number Variable Equals to Number Variable - 1
		var l = i-=1;
// Current Number Variable Equals to Image Number Variable - 1
		var c = m-=1;
	}
// Gives "imgSrc" a Source with an Alternative "l" Variable
	document.imgSrc.src = myImg[l];
// Gives "caption" DIV a content
	document.getElementById("caption").innerHTML = myCap[i];
// Gives "imgNum" DIV the image number
	document.getElementById("imgNum").innerHTML = c + "/" + n;
}

// Create Link Function to Switch Image Forward
function next(){
// Create If/Else Statement to Stop at Certain Image
// If the Number Variable is More Than [Minus 1 of the Number of Arrays]
	if(i>n-2){
// Create Next Number Variable which Equals to Number Variable
		var l = i;
// Create Current Number Variable which Equals to Image Number Variable
		var c = m;
// Otherwise
	}else{
// Next Number Variable Equals to Number Variable + 1
		var l = i+=1;
// Current Number Variable Equals to Image Number Variable + 1
		var c = m+=1;
	}
// Gives "imgSrc" a Source with Next Number Variable
	document.imgSrc.src = myImg[l];
// Gives "caption" DIV a content
	document.getElementById("caption").innerHTML = myCap[i];
// Gives "imgNum" DIV the image number
	document.getElementById("imgNum").innerHTML = m + "/" + n;
}

// Create Link Function to Switch Image Backward
function prevB(){
// Create If/Else Statement to Stop at Certain Image
// If the Number Variable is Less Than 1
	if(j<1){
// Create Another Next Number Variable which Equals to Number Variable
		var y = j;
// Create Current Number Variable which Equals to Image Number Variable
		var k = w;
// Otherwise
	}else{
// Next Number Variable Equals to Number Variable - 1
		var y = j-=1;
// Current Number Variable Equals to Image Number Variable - 1
		var k = w-=1;
	}
// Gives "imgSrc" a Source with an Alternative "l" Variable
	document.imgSrcB.src = myImgB[y];
// Gives "caption" DIV a content
	document.getElementById("captionB").innerHTML = myCapB[j];
// Gives "imgNum" DIV the image number
	document.getElementById("imgNumB").innerHTML = k + "/" + h;
}

// Create Link Function to Switch Image Forward
function nextB(){
// Create If/Else Statement to Stop at Certain Image
// If the Number Variable is More Than [Minus 1 of the Number of Arrays]
	if(j>h-2){
// Create Next Number Variable which Equals to Number Variable
		var y = j;
// Create Current Number Variable which Equals to Image Number Variable
		var k = w;
// Otherwise
	}else{
// Next Number Variable Equals to Number Variable + 1
		var y = j+=1;
// Current Number Variable Equals to Image Number Variable + 1
		var k = w+=1;
	}
// Gives "imgSrc" a Source with Next Number Variable
	document.imgSrcB.src = myImgB[y];
// Gives "caption" DIV a content
	document.getElementById("captionB").innerHTML = myCapB[j];
// Gives "imgNum" DIV the image number
	document.getElementById("imgNumB").innerHTML = w + "/" + h;
}

// Load function after page loads
window.onload = loadImg;

//-->
<!-- End -->

