/* [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','701',jdecode('Home'),jdecode(''), jdecode('%2F701.html'), 'true',[],'',''],
	['PAGE','878',jdecode('Las+Palomas+Resort'),jdecode(''), jdecode('%2F878%2Findex.html'), 'true',[ 
		['PAGE','920',jdecode('Las+Palomas+Amentities'),jdecode(''), jdecode('%2F878%2F920.html'), 'true',[],'',''],
		['PAGE','30801',jdecode('Driving+Directions'),jdecode(''), jdecode('%2F878%2F30801.html'), 'true',[],'','']
	],'',''],
	['PAGE','899',jdecode('Las+Palomas+Rentals'),jdecode(''), jdecode('%2F899%2Findex.html'), 'true',[ 
		['PAGE','34573',jdecode('Cortez+905-1bed'),jdecode(''), jdecode('%2F899%2F34573.html'), 'true',[],'',''],
		['PAGE','26901',jdecode('Cortez+905+Pictures'),jdecode(''), jdecode('%2F899%2F26901.html'), 'true',[],'',''],
		['PAGE','34490',jdecode('Cortez+1202-1bed'),jdecode(''), jdecode('%2F899%2F34490.html'), 'true',[],'',''],
		['PAGE','34499',jdecode('Cortez+1202+Pictures'),jdecode(''), jdecode('%2F899%2F34499.html'), 'true',[],'',''],
		['PAGE','35931',jdecode('Rates+%26+Availability'),jdecode(''), jdecode('%2F899%2F35931.html'), 'true',[],'','']
	],'',''],
	['PAGE','34508',jdecode('Bella+Sirena+Resort'),jdecode(''), jdecode('%2F34508%2Findex.html'), 'true',[ 
		['PAGE','34517',jdecode('Directions+to+Bella+Sirena'),jdecode(''), jdecode('%2F34508%2F34517.html'), 'true',[],'',''],
		['PAGE','34535',jdecode('Beach+House+Villa+at+Bella+Sirena'),jdecode(''), jdecode('%2F34508%2F34535.html'), 'true',[],'',''],
		['PAGE','34544',jdecode('Bella+Sirena+Villa+Pictures'),jdecode(''), jdecode('%2F34508%2F34544.html'), 'true',[],'',''],
		['PAGE','35940',jdecode('Rates+%26+Availability'),jdecode(''), jdecode('%2F34508%2F35940.html'), 'true',[],'','']
	],'',''],
	['PAGE','752',jdecode('Arizona+Vacation+Properties'),jdecode(''), jdecode('%2F752%2Findex.html'), 'true',[ 
		['PAGE','773',jdecode('5+Bedroom+Resort+House'),jdecode(''), jdecode('%2F752%2F773.html'), 'true',[],'',''],
		['PAGE','794',jdecode('2+Bedroom+Condo'),jdecode(''), jdecode('%2F752%2F794.html'), 'true',[],'',''],
		['PAGE','815',jdecode('1+Bedroom+Condo'),jdecode(''), jdecode('%2F752%2F815.html'), 'true',[],'',''],
		['PAGE','836',jdecode('Val+Vista+Lake+Amentities'),jdecode(''), jdecode('%2F752%2F836.html'), 'true',[],'',''],
		['PAGE','857',jdecode('Val+Vista+Lake+Special+Events'),jdecode(''), jdecode('%2F752%2F857.html'), 'true',[],'',''],
		['PAGE','35949',jdecode('Rates+%26+Availability'),jdecode(''), jdecode('%2F752%2F35949.html'), 'true',[],'','']
	],'',''],
	['PAGE','34425',jdecode('Longterm+Rental+Properties'),jdecode(''), jdecode('%2F34425%2Findex.html'), 'true',[ 
		['PAGE','34434',jdecode('Seton+%28Gilbert+Rental%29'),jdecode(''), jdecode('%2F34425%2F34434.html'), 'true',[],'',''],
		['PAGE','34443',jdecode('Longspur+%28Gilbert+Rental%29'),jdecode(''), jdecode('%2F34425%2F34443.html'), 'true',[],'',''],
		['PAGE','34452',jdecode('Silver+Creek+%28San+Tan+Valley%29'),jdecode(''), jdecode('%2F34425%2F34452.html'), 'true',[],'',''],
		['PAGE','34461',jdecode('Mineral+%28San+Tan+Valley%29'),jdecode(''), jdecode('%2F34425%2F34461.html'), 'true',[],'',''],
		['PAGE','36089',jdecode('Mira+%28San+Tan+Valley%29'),jdecode(''), jdecode('%2F34425%2F36089.html'), 'true',[],'',''],
		['PAGE','35958',jdecode('Rates+%26+Availability'),jdecode(''), jdecode('%2F34425%2F35958.html'), 'true',[],'','']
	],'',''],
	['PAGE','941',jdecode('Rental+Rates'),jdecode(''), jdecode('%2F941.html'), 'true',[],'',''],
	['PAGE','983',jdecode('FAQs'),jdecode(''), jdecode('%2F983.html'), 'true',[],'',''],
	['PAGE','1004',jdecode('Testimonials'),jdecode(''), jdecode('%2F1004.html'), 'true',[],'',''],
	['PAGE','1025',jdecode('Contact+us'),jdecode(''), jdecode('%2F1025.html'), 'true',[],'','']];
var siteelementCount=33;
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 localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'valueweb',
  product: 'WSCSYSSSSLYTCR7V'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Easylife',
				paletteFamily: 	'AD1D1D',
				keyvisualId: 	'5821',
				keyvisualName: 	'kv_5821.jpg',
				fontsetId: 		'11097',
				graphicsetId: 	'11868',
				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:     '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: '20110615-124237'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '878',
internalId:  '',
customField: '20110615-124315'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '941',
internalId:  '',
customField: '20110615-130324'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35940',
internalId:  '',
customField: '20110615-125317'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1025',
internalId:  '',
customField: '20110615-130437'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '752',
internalId:  '',
customField: '20110615-125356'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '773',
internalId:  '',
customField: '20110615-125522'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '794',
internalId:  '',
customField: '20110615-125609'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '815',
internalId:  '',
customField: '20110615-125713'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '836',
internalId:  '',
customField: '20110615-125818'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '857',
internalId:  '',
customField: '20110615-125903'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '899',
internalId:  '',
customField: '20110615-124428'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26901',
internalId:  '',
customField: '20110615-124647'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '920',
internalId:  '',
customField: '20110615-124348'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30801',
internalId:  '',
customField: '20100119-234725'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '983',
internalId:  '',
customField: '20110615-130349'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1004',
internalId:  '',
customField: '20110615-130412'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34425',
internalId:  '',
customField: '20110615-125946'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34434',
internalId:  '',
customField: '20110615-130020'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34443',
internalId:  '',
customField: '20110615-130048'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34452',
internalId:  '',
customField: '20110615-130119'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34461',
internalId:  '',
customField: '20110615-130145'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34490',
internalId:  '',
customField: '20110615-124722'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34499',
internalId:  '',
customField: '20110615-124752'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34508',
internalId:  '',
customField: '20110615-125021'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34517',
internalId:  '',
customField: '20110615-125044'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35931',
internalId:  '',
customField: '20110615-124956'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34535',
internalId:  '',
customField: '20110615-125116'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34544',
internalId:  '',
customField: '20101103-123930'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34573',
internalId:  '',
customField: '20110615-124607'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35949',
internalId:  '',
customField: '20100518-155227'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35958',
internalId:  '',
customField: '20100518-170021'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36089',
internalId:  '',
customField: '20110615-130209'
};
var webAppHostname = 'cgi-wsc.chi.us.siteprotect.com:80';
var canonHostname = 'wsc-worker03.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+home%2C+puerto+penasco%2C+rocky+point%2C+las+palomas%2C+bella+sirena%2C+resort%2C+hotel%2C+vacation%2C+mexico%2C+cheap%2C+rental%2C+inexpensive%2C+california%2C+surfing%2C+swimming';
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();
};

