/* [nodename, id, name, navigationtext, href, isnavigation, childs[], templatename] */

if (typeof(decodeURIComponent) == 'undefined') {
  decodeURIComponent = function(s) {
    return unescape(s);
  }
}

function jdecode(s) {
    s = s.replace(/\+/g, "%20")
    return decodeURIComponent(s);
}

var POS_NODENAME=0;
var POS_ID=1;
var POS_NAME=2;
var POS_NAVIGATIONTEXT=3;
var POS_HREF=4;
var POS_ISNAVIGATION=5;
var POS_CHILDS=6;
var POS_TEMPLATENAME=7;
var POS_TARGET=8;
var theSitetree=[ 
	['PAGE','6801',jdecode('Home'),jdecode(''), jdecode('%2F6801.html'), 'true',[],'',''],
	['PAGE','41301',jdecode('+Resort+Information+'),jdecode(''), jdecode('%2F41301.html'), 'true',[],'',''],
	['PAGE','23301',jdecode('Rental+Rates'),jdecode(''), jdecode('%2F23301%2Findex.html'), 'true',[ 
		['PAGE','240001',jdecode('Example+of+Trade+Savings+'),jdecode(''), jdecode('%2F23301%2F240001.html'), 'true',[],'',''],
		['PAGE','240401',jdecode('Booking+Process+'),jdecode(''), jdecode('%2F23301%2F240401.html'), 'true',[],'',''],
		['PAGE','241101',jdecode('Cancellation+Information+'),jdecode(''), jdecode('%2F23301%2F241101.html'), 'true',[],'','']
	],'',''],
	['PAGE','126501',jdecode('Lifestyle+Crown+Villas+'),jdecode(''), jdecode('%2F126501%2Findex.html'), 'true',[ 
		['PAGE','217101',jdecode('Villa+1a+Photos+'),jdecode(''), jdecode('%2F126501%2F217101.html'), 'true',[],'',''],
		['PAGE','217201',jdecode('Villa+3+Photos+'),jdecode(''), jdecode('%2F126501%2F217201.html'), 'true',[],'',''],
		['PAGE','217301',jdecode('Villa+8+Photos+'),jdecode(''), jdecode('%2F126501%2F217301.html'), 'true',[],'',''],
		['PAGE','217401',jdecode('Villa+11+Photos+'),jdecode(''), jdecode('%2F126501%2F217401.html'), 'true',[],'',''],
		['PAGE','216101',jdecode('Villa+16+Photos+'),jdecode(''), jdecode('%2F126501%2F216101.html'), 'true',[],'',''],
		['PAGE','217422',jdecode('Villa+17+Photos+'),jdecode(''), jdecode('%2F126501%2F217422.html'), 'true',[],'',''],
		['PAGE','234201',jdecode('Villa+22+Photos'),jdecode(''), jdecode('%2F126501%2F234201.html'), 'true',[],'',''],
		['PAGE','217501',jdecode('Villa+23+photos+'),jdecode(''), jdecode('%2F126501%2F217501.html'), 'true',[],'',''],
		['PAGE','217522',jdecode('Villa+35+Photos+'),jdecode(''), jdecode('%2F126501%2F217522.html'), 'true',[],'',''],
		['PAGE','234222',jdecode('Villa+41+Photos'),jdecode(''), jdecode('%2F126501%2F234222.html'), 'true',[],'',''],
		['PAGE','211701',jdecode('Villa+47+b+Photos+'),jdecode(''), jdecode('%2F126501%2F211701.html'), 'true',[],'',''],
		['PAGE','217543',jdecode('Villa+49+Photos+'),jdecode(''), jdecode('%2F126501%2F217543.html'), 'true',[],'',''],
		['PAGE','217564',jdecode('Villa+50+Photos+'),jdecode(''), jdecode('%2F126501%2F217564.html'), 'true',[],'',''],
		['PAGE','217585',jdecode('Villa+55+Photos+'),jdecode(''), jdecode('%2F126501%2F217585.html'), 'true',[],'',''],
		['PAGE','237101',jdecode('Villa+65+Photos+'),jdecode(''), jdecode('%2F126501%2F237101.html'), 'true',[],'',''],
		['PAGE','217606',jdecode('Villa+67+Photos+'),jdecode(''), jdecode('%2F126501%2F217606.html'), 'true',[],'','']
	],'',''],
	['PAGE','177601',jdecode('Lifestyle+Presidential+Suites'),jdecode(''), jdecode('%2F177601%2Findex.html'), 'true',[ 
		['PAGE','241801',jdecode('Presidential+Suites+Photo'),jdecode(''), jdecode('%2F177601%2F241801.html'), 'true',[],'','']
	],'',''],
	['PAGE','273901',jdecode('New+Royal+Suites'),jdecode(''), jdecode('%2F273901.html'), 'true',[],'',''],
	['PAGE','125101',jdecode('Lifestyle+Crown+Residence+Suites+'),jdecode(''), jdecode('%2F125101.html'), 'true',[],'',''],
	['PAGE','125001',jdecode('Lifestyle+Tropical+Beach+Resort+and+Spa+'),jdecode(''), jdecode('%2F125001.html'), 'true',[],'',''],
	['PAGE','273101',jdecode('Cofresi+Palm+Beach+%26+Spa+Resort'),jdecode(''), jdecode('%2F273101.html'), 'true',[],'',''],
	['PAGE','193201',jdecode('Be+Live+Grand+Marien+Puerto+Plata+'),jdecode(''), jdecode('%2F193201.html'), 'true',[],'',''],
	['PAGE','202401',jdecode('Be+Live+Grand++Punta+Cana+'),jdecode(''), jdecode('%2F202401.html'), 'true',[],'',''],
	['PAGE','12001',jdecode('Accommodations'),jdecode(''), jdecode('%2F12001.html'), 'true',[],'',''],
	['PAGE','119701',jdecode('Restaurants+and+Bars+'),jdecode(''), jdecode('%2F119701.html'), 'true',[],'',''],
	['PAGE','123601',jdecode('Metamorphosis+SPA'),jdecode(''), jdecode('%2F123601%2Findex.html'), 'true',[ 
		['PAGE','246201',jdecode('Metamorphosis+Spa+Info+'),jdecode(''), jdecode('%2F123601%2F246201.html'), 'true',[],'',''],
		['PAGE','244501',jdecode('Kin+Ha+Spa+info+'),jdecode(''), jdecode('%2F123601%2F244501.html'), 'true',[],'','']
	],'',''],
	['PAGE','136101',jdecode('Kids+Club'),jdecode(''), jdecode('%2F136101.html'), 'true',[],'',''],
	['PAGE','32201',jdecode('VIP+WORLD'),jdecode(''), jdecode('%2F32201.html'), 'true',[],'',''],
	['PAGE','101901',jdecode('Availability'),jdecode(''), jdecode('%2F101901.html'), 'true',[],'',''],
	['PAGE','81301',jdecode('+LINKS+'),jdecode(''), jdecode('%2F81301.html'), 'true',[],'',''],
	['PAGE','91401',jdecode('Videos+'),jdecode(''), jdecode('%2F91401.html'), 'true',[],'',''],
	['PAGE','90301',jdecode('Photo+Albums'),jdecode(''), jdecode('%2F90301.html'), 'true',[],'',''],
	['PAGE','162901',jdecode('Misc.+Resort+Photos+'),jdecode(''), jdecode('%2F162901.html'), 'true',[],'',''],
	['PAGE','93001',jdecode('Excursion+Shop'),jdecode(''), jdecode('%2F93001.html'), 'true',[],'',''],
	['PAGE','142301',jdecode('Recent+Guest+Trip+Photos+'),jdecode(''), jdecode('%2F142301.html'), 'true',[],'',''],
	['PAGE','160001',jdecode('Trip+Photos+Monster+Truck+'),jdecode(''), jdecode('%2F160001.html'), 'true',[],'',''],
	['PAGE','165001',jdecode('Excursion++Pamplets+Page+1+'),jdecode(''), jdecode('%2F165001.html'), 'true',[],'',''],
	['PAGE','165601',jdecode('Excursion+Pamplets+Page+2+'),jdecode(''), jdecode('%2F165601.html'), 'true',[],'',''],
	['PAGE','166101',jdecode('Excursion+Pamplets+Page+3+'),jdecode(''), jdecode('%2F166101.html'), 'true',[],'',''],
	['PAGE','19101',jdecode('Frequently+Asked+Questions+'),jdecode(''), jdecode('%2F19101.html'), 'true',[],'',''],
	['PAGE','157001',jdecode('+Flight+Information'),jdecode(''), jdecode('%2F157001.html'), 'true',[],'',''],
	['PAGE','132201',jdecode('LHVC++News+and++Projects+'),jdecode(''), jdecode('%2F132201.html'), 'true',[],'',''],
	['PAGE','97801',jdecode('Guest+Feed+Back'),jdecode(''), jdecode('%2F97801.html'), 'true',[],'',''],
	['PAGE','172301',jdecode('Why+Puerto+Plata+'),jdecode(''), jdecode('%2F172301.html'), 'true',[],'',''],
	['PAGE','181501',jdecode('+Resort+Maps+'),jdecode(''), jdecode('%2F181501.html'), 'true',[],'',''],
	['PAGE','200901',jdecode('Contact+Us+'),jdecode(''), jdecode('%2F200901.html'), 'true',[],'',''],
	['PAGE','271201',jdecode('RCI+Guest+Info+'),jdecode(''), jdecode('%2F271201.html'), 'true',[],'','']];
var siteelementCount=57;
theSitetree.topTemplateName='Capri';
theSitetree.paletteFamily='385CA9';
theSitetree.keyvisualId='7223';
theSitetree.keyvisualName='kv_7223.jpg';
theSitetree.fontsetId='16409';
theSitetree.graphicsetId='12134';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'endurance',
  product: 'WSCSYSSSSLY0XRN4'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Capri',
				paletteFamily: 	'385CA9',
				keyvisualId: 	'7223',
				keyvisualName: 	'kv_7223.jpg',
				fontsetId: 		'16409',
				graphicsetId: 	'12134',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6801',
internalId:  '',
customField: '20120101-132510'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '6801',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12001',
internalId:  '',
customField: '20100319-121505'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19101',
internalId:  '',
customField: '20110412-095321'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23301',
internalId:  '',
customField: '20120101-134935'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32201',
internalId:  '',
customField: '20100319-113856'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41301',
internalId:  '',
customField: '20100513-102218'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '81301',
internalId:  '',
customField: '20101022-010546'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '125101',
internalId:  '',
customField: '20100319-114410'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '90301',
internalId:  '',
customField: '20090805-131641'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91401',
internalId:  '',
customField: '20090726-211851'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '93001',
internalId:  '',
customField: '20090808-020343'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '123601',
internalId:  '',
customField: '20090713-000333'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '97801',
internalId:  '',
customField: '20100419-103202'
};
webappMappings['7005']=webappMappings['7005-1428']={
webappId:    '7005',
documentId:  '97801',
internalId:  '1428',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-88aa2a69c75a474217a6fa3513fd38f8']={
webappId:    '7060',
documentId:  '162901',
internalId:  '88aa2a69c75a474217a6fa3513fd38f8',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '101901',
internalId:  '',
customField: '20100530-150639'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '273101',
internalId:  '',
customField: '20111102-131815'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '193201',
internalId:  '',
customField: '20110905-220329'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '119701',
internalId:  '',
customField: '20100602-000125'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '125001',
internalId:  '',
customField: '20090712-234820'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '126501',
internalId:  '',
customField: '20100419-094236'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '132201',
internalId:  '',
customField: '20100418-163816'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '136101',
internalId:  '',
customField: '20111103-235628'
};
webappMappings['7060']=webappMappings['7060-ae402012862365a77e4bb76b231641e3']={
webappId:    '7060',
documentId:  '142301',
internalId:  'ae402012862365a77e4bb76b231641e3',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '142301',
internalId:  '',
customField: '20090805-004405'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '157001',
internalId:  '',
customField: '20090805-124816'
};
webappMappings['7060']=webappMappings['7060-999d0e7756161ecb2fe225d965f670f0']={
webappId:    '7060',
documentId:  '160001',
internalId:  '999d0e7756161ecb2fe225d965f670f0',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '160001',
internalId:  '',
customField: '20100319-113946'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '162901',
internalId:  '',
customField: '20090809-142212'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '165001',
internalId:  '',
customField: '20090808-014907'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '165601',
internalId:  '',
customField: '20090808-015022'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '166101',
internalId:  '',
customField: '20090808-015638'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '172301',
internalId:  '',
customField: '20090903-012350'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '177601',
internalId:  '',
customField: '20100423-010043'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '181501',
internalId:  '',
customField: '20100306-223058'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '200901',
internalId:  '',
customField: '20111104-001708'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '202401',
internalId:  '',
customField: '20110905-220610'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '271201',
internalId:  '',
customField: '20110818-220754'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '211701',
internalId:  '',
customField: '20100419-102147'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '216101',
internalId:  '',
customField: '20100419-154158'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '217101',
internalId:  '',
customField: '20100420-005644'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '217201',
internalId:  '',
customField: '20100420-005618'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '217401',
internalId:  '',
customField: '20100420-012311'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '217422',
internalId:  '',
customField: '20100420-012722'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '217501',
internalId:  '',
customField: '20100420-013318'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '217301',
internalId:  '',
customField: '20100420-121327'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '217522',
internalId:  '',
customField: '20100420-121652'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '217543',
internalId:  '',
customField: '20100420-123933'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '217564',
internalId:  '',
customField: '20100420-124505'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '217585',
internalId:  '',
customField: '20100420-125805'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '217606',
internalId:  '',
customField: '20100420-131326'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '234201',
internalId:  '',
customField: '20100421-014113'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '234222',
internalId:  '',
customField: '20100421-021321'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '237101',
internalId:  '',
customField: '20100422-014728'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '240001',
internalId:  '',
customField: '20110101-003448'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '240401',
internalId:  '',
customField: '20110324-234248'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '241101',
internalId:  '',
customField: '20100423-000333'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '241801',
internalId:  '',
customField: '20100423-005527'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '244501',
internalId:  '',
customField: '20100530-145223'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '246201',
internalId:  '',
customField: '20100530-150316'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '273901',
internalId:  '',
customField: '20111018-002712'
};
var webAppHostname = 'cgiwsc.enhancedsitebuilder.com:80';
var canonHostname = 'cmworker03.yourhostingaccount.com';
var accountId     = 'AENDU0IN2LOR';
var companyName   = 'Lifestyle+Holidays+Vacation+Club+Resorts+';
var htmlTitle	  = 'LHVC+%2C+LHVC+%40+Hacienda+Resorts+%2C+Lifestyle+Holidays+Vacation+Club%2CConfresi+Palm+Beach+%26+Spa+resort%2C++lhvcresorts%2Clhvsresorts%2C+Paradise+Island+%2CGrand+Oasis+Marien+Dream+Suites+++%2C+Lifestyle+Hocienda+Presidential+Suites+%2C+Lifestyle+Holidays+Vacation+Club++H';
var metaKeywords  = 'lhvcresorts.com%2C+lhvcresort.com%2C+DR1.com%2Cdebbies+dominican%2C+LHVC+%40+Hacienda+Resorts+Lifestyle+Crown+Villas+%2C+Lifestyle+Holidays+Crown+Villas%2C+Presidential+Suites%2C+Paradise+Island+%2C+Lifestyle+Spa+Suites+%2C+LifestyleTropical+Beach+Resort+And+Spa%2C++Lifestyle+Crown+Residence+Suites%2C+Lifestyle+Holidays+Vacation+Club%2C+5+star%2CSamana%2CSosua+Bay+Hotel%2CThe+Grand+Oasis+Punta+Cana%2C+The+Grand+Oasis+Marien+Puerto+Plata+Victorian%2C+Trip+Advisor%2C+VBRO%2C+Red+Week%2C++House%2Clifestyleholidaysvc%2C+Lifestyle+Holidays+Vacation+Club+Hacienda+Resorts+Puerto+Plata+Dominican+Republic%2C+Lifestyles+Holiday%2Cexotic+caribbean+beach+VIlla+VIP+Vrbo+%2CRCI+Resort+6993%2C+salemytimeshare+vacationrentals%2CReviews%2CInformation%2CReports%2CNext+level+of+vacation+great+for+women+men+kids+dominican++vacation%2C+erotic+dominican+honeymoom+destination+VIP+services+private+pool+3+4+5+6+bedroom+villas%2C+Lifestyle+Crown+Residence+Suites%2C+Lifestyle+Hacienda+Resorts+Located+Playa+Cofresi+Puerto+Plata%2C+Dominican+Republic%2Cpenthouse+suite%2Cgreat+beach+view%2C+24+hour+security%2C+wholesale+vacation+packages%2Cno+complaints%2C+my+next+villa%2Cdiscount+vacation+packages%2C+and+family+vacation+packages%2CSosua+Bay+Resort+%2C+Victorian+House+at+Sosua+Bay+%2C+Samana+%2C+Ocean+World+Casino+Excursions%2C+27+Water+Falls+cascades%2C+Monster+Truck+Safari%2COutback+Safari%2CRomantic+caribbean+%2C+Horsebach+riding+%2C+Golf+in+the+DR+%2C+getaway%2CReviews%2CReports%2CVC%2CUK%2CInfo%2C+Monster+Truck%2C+Dove+Missions%2CExpedia+Excursions+in+the+DR+Dominican+Republic++Tripadvisor+%2C+Christmas+2010+%2C+Grand+Oasis+Marien+Dream+Suites%2C+zipline+tour%2C+North+Coast+Dive+Center+LHVC+%2C+Villas%2C+Presidential+Suites%2C+Spa+Suite%2C++Grand+Oasis+Marien%2C+Playa+Dorado%2C+Golf+%2C+DR1%2C+Debbies+Dominican%2C+Island+%2C+Cascades+VIP+Vacations%2C+Your+Vacation+Dreams%2C+Luxury+hotels+dominican+republic+%2C+five+star+resorts+in+the+dominican+republic+%2C+luxury+hotels+in+dominican+republic+%2C+top+hotels+in+the+dominican+republic+%2C+4+star+resorts+dominican+republic+%2C+4+star+resorts+in+dominican+republic+%2C+5+*+hotels+in+dominican+republic%2C+dominican+republic+4+star+resorts+%2C+dominican+republic+5+star+resort+%2C+dominican+republic+top+hotels+%2C+five+star+dominican+republic+resorts+%2C+suites+in+dominican+republic+%2C+4+star+resort+in+dominican+republic+%2C+best+hotels+dominican+republic+%2C+dominican+republic+best+hotels+%2C+dominican+republic+luxury+vacations+%2C+5+star+hotels+in+dominican+republic+%2C+dominican+republic+luxury+resorts+%2C+dominican+republic+luxury+vacations+%2C+5+star+hotels+in+dominican+republic+%2C+dominican+republic+luxury+resorts+%2C+dominican+republic+5+star+all+inclusive+resorts+%2C+best+hotels+in+dominican+republic+%2C+luxury+hotel+in+dominican+republic+%2C+dominican+republic+5+star+hotels+%2C+five+star+hotels+in+dominican+republic+%2C+the+best+hotel+in+the+dominican+republic+%2C+topless+beach+Dominican+republic+%2C+cabarete+resorts+%2C+best+resorts+in+cabarete+%2C+top+10+hotels+dominican+republic+%2C+resorts+in+cabarete+dominican+republic+%2C+nude+dominican+republic+%2C+resorts+in+cabarete+dominican+republic+%2C+wife+dominican+republic+%2C+luxury+dominican+republic+resorts+%2C++%2C+dominican+ladies+%2C+dominican+girls+%2C+4+star+hotels+in+dominican+republic+%2C+all+inclusive+resort+in+cabarete+%2C+resort+in+cabarete+%2C+cabarete+dominican+republic+resorts+%2C+top+dominican+republic+resorts+%2C+dominican+republic+exclusive+hotel+%2C+luxury+vacations+dominican+republic+%2C+party+resort+Dominican+republic';
var metaContents  = '+LHVC+%40+Hacienda+Resorts+are+several+resorts+all+in+one+there+is+LHVC+%40+Lifestyle+Crown+Villas+%2C+LHVC+%40+Lifestyle+Tropical+Beach+Resort++Spa+%2C+LHVC+%40+Lifestyle+Crown+Residence+Suites+all+are+located+on+the+beautiful+north+coast+of+the+Dominican+Republic+right+next+to+Ocean+World+Adventure+Park+Marina++CasinoTorre+1%2C+Columbus+PlazaPlaya+CofresiPuerto+Plata%2C+Dominican+Republic+Offers+fantastic+all-inclusive+VIP+vacation+values++near+Ocean+World+Adventure+Park++Casin.+Also+offers+LHVC+%40+Sosua+Bay+Resort+in+Sasua+Bay+include+Victorian+House+and+Sosua+Bay+Hotel.+You+can+have+a+exotic+caribbean++beach+villa+vacation+rental+for+a+reasonable+price%2C+Villas++have+private+swimming+pool+3%2C+4%2C+5%2C+6+bedroom+Villas+available+as+well+as+Penthouses%2C+1+and+2+bedroom+apt.+suites%2C+Jr+suites++are+also+available.+%2C++googlef586e2f9fec7582a.html';
theSitetree.getById = function(id, ar) {
	if (typeof(ar) == 'undefined'){
		ar = this;
	}
	for (var i=0; i < ar.length; i++) {
		if (ar[i][POS_ID] == id){
			return ar[i];
		}
		if (ar[i][POS_CHILDS].length > 0) {
			var result=this.getById(id, ar[i][POS_CHILDS]);
			if (result != null){
				return result;
			}
		}
	}
	return null;
};

theSitetree.getParentById = function(id, ar) {
	if (typeof(ar) == 'undefined'){
		ar = this;
	}
	for (var i=0; i < ar.length; i++) {
		for (var j = 0; j < ar[i][POS_CHILDS].length; j++) {
			if (ar[i][POS_CHILDS][j][POS_ID] == id) {
				// child found
				return ar[i];
			}
			var result=this.getParentById(id, ar[i][POS_CHILDS]);
			if (result != null){
				return result;
			}
		}
	}
	return null;
};

theSitetree.getName = function(id) {
	var elem = this.getById(id);
	if (elem != null){
		return elem[POS_NAME];
	}
	return null;
};

theSitetree.getNavigationText = function(id) {
	var elem = this.getById(id);
	if (elem != null){
		return elem[POS_NAVIGATIONTEXT];
	}
	return null;
};

theSitetree.getHREF = function(id) {
	var elem = this.getById(id);
	if (elem != null){
		return elem[POS_HREF];
	}
	return null;
};

theSitetree.getIsNavigation = function(id) {
	var elem = this.getById(id);
	if (elem != null){
		return elem[POS_ISNAVIGATION];
	}
	return null;
};

theSitetree.getTemplateName = function(id, lastTemplateName, ar) {
	if (typeof(lastTemplateName) == 'undefined'){
		lastTemplateName = this.topTemplateName;
	}
	if (typeof(ar) == 'undefined'){
		ar = this;
	}
	for (var i=0; i < ar.length; i++) {
		var actTemplateName = ar[i][POS_TEMPLATENAME];
		if (actTemplateName == ''){
			actTemplateName = lastTemplateName;
		}
		if (ar[i][POS_ID] == id) {
			return actTemplateName;
		}
		if (ar[i][POS_CHILDS].length > 0) {
			var result=this.getTemplateName(id, actTemplateName, ar[i][POS_CHILDS]);
			if (result != null){
				return result;
			}
		}
	}
	return null;
};

theSitetree.getByXx = function(lookup, xx, ar) {
    if (typeof(ar) == 'undefined'){
    	ar = this;
    }
    for (var i=0; i < ar.length; i++) {
        if (ar[i][xx] == lookup){
        	return ar[i];
        }
        if (ar[i][POS_CHILDS].length > 0) {
        	var result=this.getByXx(lookup, xx, ar[i][POS_CHILDS]);
            if (result != null){
                return result;
               }
        }
    }
    return null;
};

function gotoPage(lookup) {
	if(__path_prefix__ == "/servlet/CMServeRES" && typeof (changePage) == 'function'){
		changePage(lookup);
		return;
	}
	var page = theSitetree.getHREF(lookup);
	if (!page) {
		var testFor = [ POS_NAME, POS_NAVIGATIONTEXT ];
		for (var i=0 ; i < testFor.length ; i++) {
			var p = theSitetree.getByXx(lookup, testFor[i]);
			if (p != null) {
				page = p[POS_HREF];
				break;
			}
		}
	}
	document.location.href = (new URL(__path_prefix__ + page, true, true)).toString();
};

