/* [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 theSitetree=[ 
	['PAGE','701',jdecode('Home'),jdecode(''),'/701.html','true',[],''],
	['PAGE','878',jdecode('Las+Palomas+Resort'),jdecode(''),'/878/index.html','true',[ 
		['PAGE','920',jdecode('Las+Palomas+Amentities'),jdecode(''),'/878/920.html','true',[],''],
		['PAGE','30801',jdecode('Driving+Directions'),jdecode(''),'/878/30801.html','true',[],'']
	],''],
	['PAGE','899',jdecode('Las+Palomas+Rentals'),jdecode(''),'/899/index.html','true',[ 
		['PAGE','34573',jdecode('Cortez+905-1bed'),jdecode(''),'/899/34573.html','true',[],''],
		['PAGE','26901',jdecode('Cortez+905+Pictures'),jdecode(''),'/899/26901.html','true',[],''],
		['PAGE','34490',jdecode('Cortez+1202-1bed'),jdecode(''),'/899/34490.html','true',[],''],
		['PAGE','34499',jdecode('Cortez+1202+Pictures'),jdecode(''),'/899/34499.html','true',[],'']
	],''],
	['PAGE','34508',jdecode('Bella+Sirena+Resort'),jdecode(''),'/34508/index.html','true',[ 
		['PAGE','34517',jdecode('Directions+to+Bella+Sirena'),jdecode(''),'/34508/34517.html','true',[],''],
		['PAGE','34535',jdecode('Beach+House+Villa+at+Bella+Sirena'),jdecode(''),'/34508/34535.html','true',[],''],
		['PAGE','34544',jdecode('Bella+Sirena+Villa+Pictures'),jdecode(''),'/34508/34544.html','true',[],'']
	],''],
	['PAGE','752',jdecode('Arizona+Vacation+Properties'),jdecode(''),'/752/index.html','true',[ 
		['PAGE','773',jdecode('5+Bedroom+Resort+House'),jdecode(''),'/752/773.html','true',[],''],
		['PAGE','794',jdecode('2+Bedroom+Condo'),jdecode(''),'/752/794.html','true',[],''],
		['PAGE','815',jdecode('1+Bedroom+Condo'),jdecode(''),'/752/815.html','true',[],''],
		['PAGE','836',jdecode('Val+Vista+Lake+Amentities'),jdecode(''),'/752/836.html','true',[],''],
		['PAGE','857',jdecode('Val+Vista+Lake+Special+Events'),jdecode(''),'/752/857.html','true',[],'']
	],''],
	['PAGE','34425',jdecode('Longterm+Rental+Properties'),jdecode(''),'/34425/index.html','true',[ 
		['PAGE','34434',jdecode('Seton+%28Gilbert+Rental%29'),jdecode(''),'/34425/34434.html','true',[],''],
		['PAGE','34443',jdecode('Longspur+%28Gilbert+Rental%29'),jdecode(''),'/34425/34443.html','true',[],''],
		['PAGE','34452',jdecode('Silver+Creek+%28San+Tan+Valley%29'),jdecode(''),'/34425/34452.html','true',[],''],
		['PAGE','34461',jdecode('Mineral+%28San+Tan+Valley%29'),jdecode(''),'/34425/34461.html','true',[],'']
	],''],
	['PAGE','941',jdecode('Rental+Rates'),jdecode(''),'/941.html','true',[],''],
	['PAGE','962',jdecode('Last+Minute+specials'),jdecode(''),'/962.html','true',[],''],
	['PAGE','983',jdecode('FAQs'),jdecode(''),'/983.html','true',[],''],
	['PAGE','1004',jdecode('Testimonials'),jdecode(''),'/1004.html','true',[],''],
	['PAGE','1025',jdecode('Contact+us'),jdecode(''),'/1025.html','true',[],'']];
var siteelementCount=29;
theSitetree.topTemplateName='Easylife';
theSitetree.paletteFamily='AD1D1D';
theSitetree.keyvisualId='5821';
theSitetree.keyvisualName='kv_5821.jpg';
theSitetree.fontsetId='11097';
theSitetree.graphicsetId='11868';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Easylife',
				paletteFamily: 	'AD1D1D',
				keyvisualId: 	'5821',
				keyvisualName: 	'kv_5821.jpg',
				fontsetId: 		'11097',
				graphicsetId: 	'11868',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				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:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '701',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '701',
internalId:  '',
customField: '20100207-120403'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '878',
internalId:  '',
customField: '20100207-120432'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '941',
internalId:  '',
customField: '20100207-121205'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '962',
internalId:  '',
customField: '20100207-121312'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1025',
internalId:  '',
customField: '20100207-121218'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '752',
internalId:  '',
customField: '20100207-120813'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '773',
internalId:  '',
customField: '20100207-120914'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '794',
internalId:  '',
customField: '20100207-121001'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '815',
internalId:  '',
customField: '20100207-121053'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '836',
internalId:  '',
customField: '20100207-121113'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '857',
internalId:  '',
customField: '20100207-121132'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '899',
internalId:  '',
customField: '20100207-120600'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26901',
internalId:  '',
customField: '20091104-235045'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '920',
internalId:  '',
customField: '20100207-120512'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30801',
internalId:  '',
customField: '20100119-234725'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '983',
internalId:  '',
customField: '20100207-121255'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1004',
internalId:  '',
customField: '20100207-121237'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34425',
internalId:  '',
customField: '20100212-110629'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34434',
internalId:  '',
customField: '20091022-115049'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34443',
internalId:  '',
customField: '20091022-115049'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34452',
internalId:  '',
customField: '20100212-121451'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34461',
internalId:  '',
customField: '20100212-122420'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34490',
internalId:  '',
customField: '20100120-000016'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34499',
internalId:  '',
customField: '20091123-140448'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34508',
internalId:  '',
customField: '20100120-001509'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34517',
internalId:  '',
customField: '20100120-004624'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34535',
internalId:  '',
customField: '20100120-002128'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34544',
internalId:  '',
customField: '20100308-165650'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34573',
internalId:  '',
customField: '20100119-235456'
};
var canonHostname = 'wsc-worker04.chi.us.siteprotect.com';
var accountId     = 'AHW050INE62Z';
var companyName   = 'HAMMAN+VACATIONS%2C+LLC-+your+number+one+source+for+vacation+rental+properties';
var htmlTitle	  = 'Hamman+Vacations+LLC+specializes+in+vacation+rentals+and+Real+estate+throughout+the+nation.+Quality+Units+at+the+best+Prices';
var metaKeywords  = 'Arizona+Vacation+Rentals%3A+Arizona+Vacation+Rentals+by+Owner%2C+Vacation+Rental%2C+Val+Vista+Lake+Rentals%2C+Gilbert+Arizona+Rentals%2C+Mesa+Arizona+Rentals%2C+Arizona+Rental+Properties%2C+Phoenix+Rental+Properties%2C+Val+Vista+Lakes+Properties%2C+Vacation+Condos%2C+arizona+vacation+rental+homes';
var metaContents  = 'Arizona+vacation+rentals+near+White+Mountain%2C+Scottsdale%2C+Phoenix%2C+Gilbert%2C+Mesa%2CTuscon+and+others.+Arizona+vacation+rental+properties+by+owner+with+easy+access+to+the+Grand+Canyon+and+deserts.';
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();
};
