// Common footer used by all pages.

function MM_validateForm() { //v4.0
	var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
	for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
		if (val) { nm=val.name; if ((val=val.value)!="") {
			if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
				if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
			} else if (test!='R') { num = parseFloat(val);
				if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
				if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
					min=test.substring(8,p); max=test.substring(p+1);
					if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
				} } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
	} if (errors) alert('The following error(s) occurred:\n'+errors);
	document.MM_returnValue = (errors == '');
}

function topMenu() {
	var s = '<div id="page_header">';
	s += '<h1><br /></h1>';
	s += '</div>';
  	s += '<div id="menu_bar">';
	s += '<div id="navcontainer">';
	s += '<ul id="navlist">';
	s += '<li><a href="index.html">Home</a></li>';
	s += '<li><a href="services.html">Our Services</a></li>';
	s += '<li><a href="rentals.html">Rental Properties</a></li>';
	s += '<li><a href="contact_us.html">Contact US</a></li>';
	s += '</ul>';
	s += '</div>';
	s += '</div>';

	return s;
}

function linksMenu() {
	var s = '<h3>Links</h3>';
	s += '<div id="linkcontainer">';
	s += '<ul id="linklist">';
	s += '<li><a href="#">Our Staff</a></li>';
	s += '<li><a href="contact_us.html">Contact US</a></li>';

	s += '</ul>';
	s += '</div>';

	return s;
}

var id         = 0;
var header     = 1;
var header2    = 2;
var rent       = 3;
var desc       = 4;
var area       = 5;
var desc1      = 6;
var desc2      = 7;
var num_images = 8;

function rentalsMenu(menu) {

	var s = '';
	
	if (menu == 'side') {
		s = '<h3>Rental Properties</h3>';
		for (i = 0; i < getProperties(0,'count'); i++) {
			var props = getProperties(i,'seq');
			s += '<p><a href="property.html?id=' + props[id] + '"><img border="1" src="img/rentals/thumbs/' + props[id] + '_1.jpg" alt="Click to see this property." /></a></p>';
		}
	}
	if (menu == 'main') {
		for (i = 0; i < getProperties(0,'count'); i++) {
			var props = getProperties(i,'seq');
			s += '<h4>' + props[header] + '<br />' + props[header2] + '</h4>';
			s += '<p><em>' + props[3] + '</em>\n';
			s += props[4] + '</p>\n';
			s += '<p>' + props[5] + '</p>\n';
			s += '<p>\n';
			for (k = 1; k <= 3; k++) {
				s += '<a href="property.html?id=' + props[0] + '"><img height="94" src="img/rentals/thumbs/'  + props[0] + '_' + k + '.jpg" alt=""></a>\n';
			}
			s += '</p><hr />\n\n';
		}
	}
	return s;
}

function propertyPage() {
	var href= urlquery=location.href;
	var urlquery = href.split("?");
	var num = urlquery[1].split("=");
	var s = num[1];

	var props = getProperties(num[1],'value');
	var s = props[header];
	
	var s = '<h3>' + props[header] + '<br />' + props[header2] + '</h3>';
	s += '<h4>'+ props[desc] + '<br />' + props[area] + '</h4>';
	s += '<p>' + props[desc1] + '</p><p>' + props[desc2] + '</p>\n\n';
	var images = [];
	for (i = 1; i <= props[num_images]; i++) {
		images.push(props[id] + '_' + i + '.jpg');
	}
	s += showGallery(props[header],images);
	s += showSummary(props[rent],props[desc]);

	return s;
}

function i2propertyPage() {

	var href= urlquery=location.href;
//	href="http://www.lakechapalarentals.com?property=49";
	var urlquery = href.split("?");
	var num = urlquery[1].split("=");

	var props = getProperties(49,'value');

	return s;
}

function gen_data (index) {
	var desc = 1;
}

function showDescription(title, lines) { // Not used currently.
	var s = '<h3>' + title + '</h3>';
	for (i=0; i < lines.lenght; i++) {
		s += '<p>';
		if (! i) {
			s += '<img class="thumbnail_right" src="img/logo_small.jpg" alt="Chapala Property" />';
		}
		s += lines[i] + '</p>';
	}
	return s;
}


function showPicture(description, picture) {
	var s = '<a href="img/rentals/photos/' + picture + '" class="highslide" onclick="return hs.expand(this, {captionId: \'caption\'})"><img src="img/rentals/thumbs/' + picture + '" title="Click to enlarge" width="125" height="94" alt="' + description + '" /></a>';
	s += "\n";
	return s;
}

function showGallery(description, pictures) {
	var s = '<p class="helptext">You can click on any of the photos below for an enlarged picture.  The arrow keys on your keyboard may be used to advance from picture to picture when the picture has been enlarged.  You can also with your mouse drag pictures on your screen and zoom more than one picture at a time.</p>';
	s += '<p class="center">';
	for (i = 0; i < pictures.length; i++) {
		s += showPicture(description, pictures[i]);
	}
	s += '</p>';

	return s;
}

function showSummary(rent, rooms) {
	var s = '<table width="100%">';
	s += '<tbody>';
	s += '<tr><th colspan="2">Property Summary</th></tr>';
	s += '<tr><td>Rent</td><td>' + rent + '</td></tr>';
	s += '<tr class="odd"><td>Rooms</td><td>' + rooms + '</td></tr>';
	s += '</tbody>';
	s += '</table>';
	s += '</p>';
	s += '<p>';
	s += 'For more information on this or any of our other properties, please contact Russ or Cathleen or our office if you have any questions.';
	s += '</p>';
	s += '<p>By email: <a href="mailto:info@lakechapalarentals.com">info@LakeChapalaRentals.com</a>';
	s += '</p>';
	s += '<p>';
	s += 'Toll-free US &amp; Canada: (866) 488-4589<br />Cell in Mexico: 33 10 45 44 05<br />International: int + 1 (425) 609-8136';
	s += '</p>';

	return s;
}

function footer() {
	var s = '<div id="page_footer">';
	s += '<p>';
	s += '&copy; 2010 LakeChapalaRentals.com<br/>';
	s += '<a href="http://validator.w3.org/check?uri=referer" target="new">Valid XHTML 1.0 Transitional</a>';
	s += '</p>';
	s += '</div>';

	return s;
}

function getProperties(index,type) {
	var s;
	var props = [
		[51, 
		'MACDONALD PROPERTY',
		'Beautiful home in the village of Ajijic ',
		800,
		'Furnished 1 Bedroom 1 Bath in Ajijic Mexico',
		'Lot: 0 m2 (0 Sq. Ft.) Const. 0 m2 (0 Sq. Ft.)',
		'Here it is. A beautiful home from the past that has been updated for your comfort. This one bedroom one bath home also has two one bedroom Casitas on the property.',
		'The heated pool and water filtration system has been added as well. This property is in the hearth of the village of Ajijic. That makes it walking distance to everything from shoping to restaurants although there is on street parking if you did have a car. Come sit and enjoy the Cantara tiled terrace or just enjoy a dip in the pool. Small pet and children are ok. For the smokers ok but you must smoke outside.',
		8,
		],
		[50, 
		'SMITH PROPERTY',
		'Beautiful home in La Floresta ',
		1400,
		'Furnished 2 Bedroom 2 Bath in La Floresta Mexico',
		'Lot: 0 m2 (0 Sq. Ft.) Const. 0 m2 (0 Sq. Ft.)',
		'This two bedroom two bathroom house is wonderful and also has a den area. The pool is solar heated and very refreshing. It is walking distance to restaurants, shoping, Ajijic village, San Antonio village and much more.',
		'Come kick back and enjoy the private heated swimming pool which is sourounded by beautiful gardens. There is parking behind the wall for your security. Smoking is ok outside only. Small pets and children are ok.',
		8,
		],
		[49, 
		'BARON CASITA',
		'Cute casita in San Antonio', 
		600,
		'Furnished 2 Bedroom 1 Bath in San Antonio Mexico',
		'Lot: 0 m2 (0 Sq. Ft.) Const. 0 m2 (0 Sq. Ft.)',
		'This private & cute casita is on Lake Chapala in San Antonio. It is a very funcional home with full kitchen, two bedrooms and a three quarter bath.',
		'It has a view of the lake from both bedrooms as well as the covered terrace and a comfortable living room. It also has a full laundry with full size washer and dryer. If you want a quiet place to enjoy the sunshine but close to shops, restaurants and the San Antonio Plaza this is a must see. The gardener comes with the property. Telephone, internet and satellite television are all available.',
		7,
		],
		[48, 
		'EVEREST PROPERTY',
		'Beautiful home in La Floresta ',
		1800,
		'Furnished 2 Bedroom 2 Bath in La Floresta, Mexico',
		'Lot: 0 m2 (0 Sq. Ft.) Const. 0 m2 (0 Sq. Ft.)',
		'This is a beautiful home in lower La Floresta. It is a must see with two bedrooms and a bath and three quarter in the main house and a bedroom and full bath in the Casita.',
		'The grounds are wonderful and the solar heated pool and jucuzzi are ready for your use. The home is very quiet and open with plenty of light. The covered terrace is just off of the dining room and the kitchen sitting area. The Casita has a living room, bedroom and full bath. The living room has a fireplace which can be enjoyed from the living room or while soaking in the jetted tub! A garage for two vehicles is available. The gardener comes with the house and is paid for by the owner. This home is also available to rent by the week. Call for price information for weekly rentals.',
		8,
		],
		[47,
		'PULIDO PROPERTY',
		'Wonderful house in Mirasol ',
		800,
		'Furnished 2 Bedroom 2 Bath in Mirasol, Mexico',
		'Lot: 0 m2 (0 Sq. Ft.) Const. 0 m2 (0 Sq. Ft.)',
		'Here is a wonderfully furnished home in Mirasol for your enjoyment. It is updated and has a back yard that is behind a wall.',
	   	'This two bedroom, two bath home is close to shoping, restaurants and other villages. Mirasol has gated security which is manned from 8:00 p.m. to 8:00 a.m. each night. This property comes with the gardener. It also has Sky satellite available. Sorry but no smokers and no kids please. Small pets may be ok.',
		8,
		],
		[46, 
		'HUBER PROPERTY',
		'Wonderful house in El Parque',
		900,
		'Furnished 2 Bedroom 2 Bath in San Antonio, Mexico',
		'Lot: 0 m2 (0 Sq. Ft.) Const. 0 m2 (0 Sq. Ft.)',
		'If you are looking for a house that is centrally located and walking distance to everything then this house in the gated community of El Parque is for you.',
		'This two bedroom, two bath property is well appointed and ready for use. It is fully furnished and has a queen size bed in the master bedroom and a double bed in the second bedroom. The master bedroom has a full bath and the second bedroom has a three quarter bath. There is a water filtration system with this house. Star Choice is the television satellite service there. The driveway has room for two cars to park. The common area has a wonderful pool with a child pool conntected to it. There is a jacuzzi there as well. The club house is for your use as well as a barbecue are. The gardener comes with the house.',
		7,
		],
		[45,
		'KAREN PROPERTY',
		'Lovely Mexican style home in Guadalajara ',
		1200,
		'Furnished 3 Bedroom 3.5 Bath in Guadalajara',
		'Lot: 0 m2 (0 Sq. Ft.) Const. 0 m2 (0 Sq. Ft.)',
		'If you are looking in Guadalajara for a Mexican style home, this one is for you. The home is located in the Prados Tepeyac area and very close to shoping at the La Gran Plaza.',
	   	'It is on one level with a Mirador which includes the laundry room. The master suite also includes a tub as well as a shower. The living room sports a wood burning fire place for your comfort. The indoor courtyard includes a water fall fountain. The water pressure system, water & cable are included. Plenty of gated off street parking for up to four to five vehicle is available. There is also a security system connected to the electic fence on the property wall.',
		8,
		],
		[43,
		'CURIEL PROPERTY',
		'Bright and open house in Rancho Del Oro ',
		1150,
		'Furnished 2 Bedroom 2.5 Bath in Ajijic, Mexico',
		'Lot: 0 m2 (0 Sq. Ft.) Const. 0 m2 (0 Sq. Ft.)',
		'This is a beautiful house in Rancho Del Oro with a bright and open floor plan. It is fully furnished and ready to go.',
		'You have a view of the lake and mountains to the south from both bedrooms as well as the terrace off of both bedrooms. From down stairs you can see the terrace and yard which is enclosed inside of the wall. This house is on the hill above Rancho Del Oro and has very easy access. It is only minutes from Ajijic Village, shoping, restaurants and more. This property is furnished with Sky satellite television. Smokers, pets & children are ok.',
		8,
		],
		[42,
		'DURBAN PROPERTY',
		'Beautiful home in El Dorado ',
		1200,
		'Furnished 2 Bedroom 2 Bath in San Antonio, Mexico',
		'Lot: 0 m2 (0 Sq. Ft.) Const. 0 m2 (0 Sq. Ft.)',
		'This house is one you will definetly want to enjoy. This 2 bedroom, 2 bath home is fully furnished from top to bottom.',
		'It also has a den with day bed. It is in the gated community of El Dorado and is walking distance from shoping, restaurants, walking path and more. You also have full use of the 85\' infinity swimming pool and jacuzzi, plus the weight room and club house complete with a full kitchen and Star Choice television. The house is open and bright and has a wonderful view of the lake and mountains from the roof top mirador as well as the terrace off of the living room. This home has star choice satellite television, local telephone and internet. Sorry, no pets, smokers or children are allowed. Please email or call for additional information.',
		8,
		],
		[41, 
		'COLE PROPERTY',
		'Quaint house in the village of Ajijic',
	    700,
		'Furnished 2 Bedroom 2 Bath in Ajijic, Mexico',
		'Lot: 0 m2 (0 Sq. Ft.) Const. 0 m2 (0 Sq. Ft.)',
		'If you are looking for a quaint house in the village of Ajijic, this is it. This wonderful 2 bedroom house is in the village and walking distance to everything.',
	   	'Shoping, restaurants, buses, the village square and more. It has a stone paved terrace which is partially covered for your enjoyment. There is also a deck from the master bedroom on the second floor. This house has a filtered water system for your convience. Sorry smoking is allowed outside only, small pets are ok and only two children at a time please. The rental price for this property is $700.00 USD (high season) and $550.00 USD (low season). For weekly rental rates please contact us either by phone or email.',
		8,
		],
		[40,
		'IVERSON PROPERTY',
		'Beautiful home in El Dorado ',
		900,
		'Furnished 2 Bedroom 2 Bath in San Antonio, Mexico',
		'Lot: 0 m2 (0 Sq. Ft.) Const. 0 m2 (0 Sq. Ft.)',
		'This is a wonderful house in the gated community of El Dorado complete with 24 hour security. It is on a quiet street with a wonderful view of the lake and mountains from the roof top Mirador.',
		'This two bedroom two bath also has a den with a pull out couch. It is a quick two minute walk to the 85\' infinity pool and jacuzzi which are there for your enjoyment. Enjoy the view of the lake and mountains as you enjoy the pool. There is also a wonderful club house complete with pool tables, music, television and the lake view. The weight room is beautiful and has the same lake and mountain view for your enjoyment as you work out.',
		8,
		],
		[36,
		'EDWARDS PROPERTY',
		'Cute home in Lower La Floresta',
		1100,
		'Furnished 2 Bedroom 2 Bath in Ajijic',
		'Lot: 0 m2 (0 Sq. Ft.) Const. 0 m2 (0 Sq. Ft.)',
		'This is a very cute house in Lower La Floresta. It is walking distance to everything. Shopping, restaurants, bus line and the village of Ajijic and San Antonio.',
		'The peaceful area is quiet and the back garden area is wonderful with the flowers and the sunken Jacuzzie pool. It is on a corner lot which gives you privacy and a wonderful view of the mountains and other gardens from the roof top Mirador area. The gardener comes with the property. Sorry, no pets, no children but smokers may smoke outside.',
		8,
		],
		[35,
		'VERGARA PROPERTY',
		'Beautiful Home in Lower Chula Vista',
		2000,
		'Furnished 4 Bedroom 3 Bath in Chula Vista',
		'Lot: 0 m2 (0 Sq. Ft.) Const. 0 m2 (0 Sq. Ft.)',
		'If you are looking for a beautiful home in Lower Chula Vista with a view, here it is. This home is very roomy, light and very well furnished.',
		'It is walking distance to the village of San Antonio, shoping,restaurants and the bus line. It has an on sight grounds keeper and house keeper. The pool is not heated, but it does get warmth from the sun each and every day. If you like to entertain, this home is for you. With the oversize rooms and the pool deck you won\'t miss a beat. The enclosed sun porch on the South terrace is off of the living room. It is wonderful for enjoying the view while you eat your breakfast. This home comes with the house keeper once a week and the gardener. This house is two stories but the living quarters are on the top floor. The apartment below is not for use.',
		8,
		],
		[34,
		'LOWE PROPERTY',
		'Beautiful Home in Villa Pacifica',
		800,
		'Furnished 2 Bedroom 2 Bath in San Antonio, Mexico',
		'Lot: 0 m2 (0 Sq. Ft.) Const. 0 m2 (0 Sq. Ft.)',
		'This is a beautiful home in Villa Pacifica. It is across the street from the Chula Vista Golf Course. It is in a new gated community and is ready for your enjoyment.',
		'This is a lovely two bedroom, two bath home with a covered terrace. It has a club house area as well as a pool for your enjoyment. The view from the roof top Mirador is of the lake and mountains to the South and the mountains to the North. It has Star Choice satellite. There is off street parking for one vehicle. It includes the gardener & satellite. Sorry no pets or children but smoking outside is ok.',
		8,
		],
		[33,
		'VANEVERY PROPERTY',
		'Beautiful Home in El Dorado ',
		1100,
		'Furnished 2 Bedroom 2 Bath in San Antonio, Mexico',
		'Lot: 0 m2 (0 Sq. Ft.) Const. 0 m2 (0 Sq. Ft.)',
		'If you are looking for a beautiful home in a gated community, this one is for you. It is beautifully furnished and appointed. This two bedroom and den home is within the gated community of El Dorado.',
		'It has a wonderfully appointed kitchen with Stainless Steel appliances. A dining room which opens to the outside fountain and the living room has a gas fireplace for those cool evenings or mornings. If you want a winter rental, this is it. This home has local telephone, internet, maid service & satellite television. You can also enjoy the common areas which includes two tennis courts, weight room, club house, pool and more. Sorry, but no smokers, no pets and no children.',
		7,
		],
		[31,
		'SCHUSTER PROPERTY',
		'Wonderful home in El Dorado',
		1200,
		'Furnished 3 Bedroom 2 Bath in San Antonio, Mexico',
		'Lot: 0 m2 (0 Sq. Ft.) Const. 0 m2 (0 Sq. Ft.)',
		'Here is a home you should see. It is in the gated community of El Dorado. Fully furnished and ready to go. Get ready to enjoy the community pool, club house and gym or you can stay home and enjoy the beautiful covered terrace.',
		'The master bedroom has it\'s own bathroom with huge walk in closet. The 3rd bedroom has a built in desk and closet space. This home on a quiet street with plenty of room. The living room has a wood burning fireplace and the kitchen is spacious and easy to use. The home has internet, local phone and Star Choice satellite available. Sorry no smokers but pets and kids are ok.',
		8,
		],
		[27,
		'CASA PEDRO PROPERTY',
		'Home in Gated Community of El Dorado ',
		1200,
		'Furnished 2 Bedroom 2 Bath in San Antonio, Mexico',
		'Lot: 0 m2 (0 Sq. Ft.) Const. 0 m2 (0 Sq. Ft.)',
		'This house is in the gated community of El Dorado. The house has two bedrooms, two bathrooms and a den for your computer or to just relax in.',
		'It is a three minute walk to the common areas which include the tennis courts, heated community pool, club house, weight room and more. The house is fully furnished with the latest in contemporary Mexican style furniture. From the roof top Mirador you can see the mountain to the North & South and the lake to the South as well. This house includes the gardener & Star choice satellite television. Sorry, no smokers, no children but small dogs are ok.',
		8,
		],
		[22,
		'FERRIE PROPERTY',
		'A must see Tuscan style home in a gated community ',
		3500,
		'Furnished 2 Bedroom 3 Bath in San Antonio, Mexico',
		'Lot: 0 m2 (0 Sq. Ft.) Const. 0 m2 (0 Sq. Ft.)',
		'This Tuscan style home in Mirasol is one you must not miss! The home was built with pride and spared no expense. This beautiful 2 bedroom home is spacious, bright and very quiet.',
		'The upstairs bathroom comes with a double shower. From the second bedroom you can look down onto the beautiful tiered gardens & pool. The elegant kitchen is a chefs dream. The antique furniture will take your breath away. It has a beautiful and large tiered outdoor terrace with a soaking pool. Many trees to give you shade or just set in the sun and enjoy. It also has a one car garage. This community has 24 hours security for your comfort. The house comes with a gardener & maid. The television is with Dish Network. Sorry, no smoking and no kids. Small dogs are ok.',
		8,
		],
		[21,
		'KELLY PROPERTY',
		'Condo in Birds of Paradise ',
		1100,
		'Furnished 2 Bedroom 2 Bath in San Antonio, Mexico',
		'Lot: 0 m2 (0 Sq. Ft.) Const. 0 m2 (0 Sq. Ft.)',
		'This condominium is located in the lovely gated community of Birds of Paradise. It is on the second floor and very private. It has a beautiful community pool, laundry and club house.',
		'This unit is walking distance to shoping, restaurants, walking trails & the villages of San Antonio & Ajijic. Included are the gardener,gas & Star Choice satellite. Parking is also inside of the gate. Sorry, no smoking, no pets but teenage kids are ok. High season rent is $1100.00 and in low season the rent is $750.00.',
		7,
		],
		[18,
		'SPRATT PROPERTY',
		'Beautiful home in El Dorado ',
		1100,
		'Furnished 2 Bedroom 2 Bath in San Antonio, Mexico',
		'Lot: 0 m2 (0 Sq. Ft.) Const. 0 m2 (0 Sq. Ft.)',
		'Beatuifully furnished home in the gated community of El Dorado. This home has been re-painted inside to give it the warm feeling & the sense of the area you want.',
		'It is fully furnished from top to bottom. A furnished terrace downstairs and a roof top Mirador upstairs with views of Lake Chapala to the South & the mountains to the North. This development has a heated community pool, weight room, two tennis courts & club house for your enjoyment. You are minutes away from shopping, hiking, walking trails and Ajijic & San Antonio village. Includes gardener & Star Choice satellite television. No smokers, no children please. Pets are ok.',
		7,
		],
		[17,
		'EL DORADO CASA # 23 PROPERTY',
		'Beautiful home in El Dorado ',
		1400,
		'Furnished 2 Bedroom 2 Bath in San Antonio, Mexico',
		'Lot: 0 m2 (0 Sq. Ft.) Const. 0 m2 (0 Sq. Ft.)',
		'If you have been looking for a home in a gated community this beautiful home in El Dorado with two bedrooms & a den is a must see. It is located in the Chapala area near San Antonio & Ajijic Mexico.',
		'The house is situated on a quiet street away from the hussle of the development yet only steps away from the club house, weight room, tennis courts, heated community pool & more! Not to mention the view from the pool! Enjoy the quiet terrace surrounded by lush gardens & oh yes check out the Mirador on the roof as well. It if totally furnished first class from top to bottom. It is within walking distance to San Antonio, Ajijic, shoping, hicking and much more. Check the calendar for reservation dates. Price includes gardener & Star Choice satellite television. Non smokers, small dogs & kids ok.',
		8,
		],
		[14,
		'WATTS PROPERTY',
		'Lovely home in La Floresta ',
		1200,
		'Furnished 2 Bedroom 3 Bath in Ajijic, Mexico',
		'Lot: 0 m2 (0 Sq. Ft.) Const. 0 m2 (0 Sq. Ft.)',
		'You must see this lovely, light and bright home in Lower La Floresta. You can rent it by the week or the month. Private residence in a quiet and established neighborhood.',
		'Bright and open rooms with a cooks kitchen. Private yard & gardens with an enclosed carport. Walking distance to shoping, the lake & the village. Call or email for WEEKLY rates. This property includes a maid twice a month & gardener. The television is with Star Choice satellite systems.',
		8,
		],
		[12,
		'CASA DE VASQUEZ PROPERTY',
		'Home with private pool & Casita',
		1400,
		'Furnished 3 Bedroom 5 Bath in Ajijic - Mexico',
		'Lot: 0 m2 (0 Sq. Ft.) Const. 0 m2 (0 Sq. Ft.)',
		'You must see this beautiful home with 4 bathrooms, 2 bedrooms and a 1 bedroom, 1 bath Casita. A Large open and bright house with two terraces, solar heated pool, cozy kitchen and eating space.',
		'This home comes with a gardener that is paid for by the owner. The Dish satellite television, gas, electricity, internet & phone are extra and paid for by the tenant. No smokers & no children please. Pets are negotiable.',
		8,
		],
		[11,
		'BARON # 1 PROPERTY',
		'Home in Gated Community on Lake Chapala ',
		1100,
		'Furnished 2 Bedroom 2 Bath in San Antonio, Mexico',
		'Lot: 0 m2 (0 Sq. Ft.) Const. 0 m2 (0 Sq. Ft.)',
		'This home is one of four homes in this gated community. Very private and peaceful. This new home is appointed toward luxury living and only minutes from the village of San Antonio and on Lake Chapala.',
		'Private courtyard and terrace. Includes the gardener and water. Kids & pets are ok. Rental prices for five months or more are negotionable. PLEASE CALL OR EMAIL FOR AVAILABILITY.',
		7,
		],
		[10,
		'BARON # 3 PROPERTY',
		'Home in Gated Community on Lake Chapala ',
		1100,
		'Furnished 2 Bedroom 2 Bath in San Antonio, Mexico',
		'Lot: 0 m2 (0 Sq. Ft.) Const. 0 m2 (0 Sq. Ft.)',
		'This home is one of four homes in this gated community. Very private and peaceful. This new home is appointed toward luxury living and only minutes from the village of San Antonio and on Lake Chapala.',
		'Private courtyard and terrace. Includes the gardener and water. Kids & pets are ok. Rental prices for five months or more are negotionable. PLEASE CALL OR EMAIL FOR AVAILABILITY.',
		7,
		],
		['09',
		'BARON # 4 PROPERTY',
		'Home in Gated Community on Lake Chapala ',
		'1100',
		'Furnished 2 Bedroom 2 Bath in San Antonio, Mexico',
		'Lot: 0 m2 (0 Sq. Ft.) Const. 0 m2 (0 Sq. Ft.)',
		'This home is one of four homes in this gated community. Very private and peaceful. This new home is appointed toward luxury living and only minutes from the village of San Antonio and on Lake Chapala.',
		'Private courtyard and terrace. Includes the gardener and water. Kids & pets are ok. Rental prices for five months or more are negotionable. PLEASE CALL OR EMAIL FOR AVAILABILITY.',
		7,
		],
	];

	if (type == 'count') {
		s = props.length;
	} else if (type == 'seq') {
		s = props[index];
	} else if (type == 'value') {
		for (i = 0; i < props.length; i++) {
			if (props[i][0] == index) {
				s = props[i];
				break;
			}
		}
	}

	return s;
}

