/* [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','1101',jdecode('Home'),jdecode(''),'/1101.html','true',[],''],
	['PAGE','3706',jdecode('The+Duplex'),jdecode(''),'/3706/index.html','true',[ 
		['PAGE','3727',jdecode('Unit+1'),jdecode(''),'/3706/3727.html','true',[],''],
		['PAGE','3748',jdecode('Unit+2'),jdecode(''),'/3706/3748.html','true',[],'']
	],''],
	['PAGE','16201',jdecode('Availibility'),jdecode(''),'/16201.html','true',[],''],
	['PAGE','3643',jdecode('The+Accommodations'),jdecode(''),'/3643.html','true',[],''],
	['PAGE','3664',jdecode('The+Neighborhood'),jdecode(''),'/3664.html','true',[],''],
	['PAGE','3769',jdecode('Things+to+Do+In+Santa+Cruz'),jdecode(''),'/3769.html','true',[],''],
	['PAGE','3832',jdecode('Pricing'),jdecode(''),'/3832.html','true',[],''],
	['PAGE','3685',jdecode('Your+Stay'),jdecode(''),'/3685/index.html','true',[ 
		['PAGE','3790',jdecode('Home+Guidelines'),jdecode(''),'/3685/3790.html','true',[],''],
		['PAGE','5301',jdecode('Parking'),jdecode(''),'/3685/5301.html','true',[],'']
	],''],
	['PAGE','3853',jdecode('About+us'),jdecode(''),'/3853/index.html','true',[ 
		['PAGE','37801',jdecode('Our+Family+Reunion+at+the+Duplex'),jdecode(''),'/3853/37801.html','true',[],''],
		['PAGE','4301',jdecode('Send+Inquiry'),jdecode(''),'/3853/4301.html','true',[],'']
	],''],
	['PAGE','3874',jdecode('Contact+Us'),jdecode(''),'/3874/index.html','true',[ 
		['PAGE','3811',jdecode('Links'),jdecode(''),'/3874/3811.html','true',[],'']
	],''],
	['PAGE','2506',jdecode('Guestbook'),jdecode(''),'/2506/index.html','true',[ 
		['PAGE','2501',jdecode('Read+Guestbook'),jdecode(''),'/2506/2501.html','false',[],'']
	],'']];
var siteelementCount=19;
theSitetree.topTemplateName='Easylife';
theSitetree.paletteFamily='FBF36C';
theSitetree.keyvisualId='5821';
theSitetree.keyvisualName='kv_5821.jpg';
theSitetree.fontsetId='11096';
theSitetree.graphicsetId='11869';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Easylife',
				paletteFamily: 	'FBF36C',
				keyvisualId: 	'5821',
				keyvisualName: 	'kv_5821.jpg',
				fontsetId: 		'11096',
				graphicsetId: 	'11869',
				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: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1101',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16201',
internalId:  '',
customField: '20090121-184512'
};
webappMappings['1002']=webappMappings['1002-2506AHW050INX23V']={
webappId:    '1002',
documentId:  '2506',
internalId:  '2506AHW050INX23V',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1101',
internalId:  '',
customField: '20070903-121851'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3706',
internalId:  '',
customField: '20070411-010717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3727',
internalId:  '',
customField: '20070620-001606'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3748',
internalId:  '',
customField: '20070620-000248'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3643',
internalId:  '',
customField: '20070620-150657'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3664',
internalId:  '',
customField: '20071107-013612'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3769',
internalId:  '',
customField: '20070411-155352'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3832',
internalId:  '',
customField: '20080222-152051'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3685',
internalId:  '',
customField: '20070411-014000'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3790',
internalId:  '',
customField: '20070411-014035'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5301',
internalId:  '',
customField: '20070411-014103'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3853',
internalId:  '',
customField: '20080512-151043'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37801',
internalId:  '',
customField: '20070620-003331'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4301',
internalId:  '',
customField: '20070411-014811'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3874',
internalId:  '',
customField: '20070411-014917'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3811',
internalId:  '',
customField: '20070411-014953'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2506',
internalId:  '',
customField: '20070316-060049'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2501',
internalId:  '',
customField: '20070315-090952'
};
var canonHostname = 'wsc-worker02.chi.us.siteprotect.com';
var accountId     = 'AHW050INX23V';
var companyName   = 'Heart+of+Santa+Cruz+Duplex';
var htmlTitle	  = 'Heart+of+Santa+Cruz+Duplex+Vacation+Rental';
var metaKeywords  = 'Santa+Cruz+vacation+rental%2C+Heart+of+Santa+Cruz%2C+105349%2C+152680%2C+Vacation+Rental+by+Owner%2C+Discount+Vacation+Rental%2C+Santa+Cruz+Wharf%2C+Santa+Cruz+Boardwalk%2C+Santa+Cruz+Downtown%2C+Santa+Cruz+furnished+vacation+rental%2C+close+to+Downtown+Santa+Cruz%2C+Santa+Cruz+2+bedrooms%2C+Santa+Cruz+4+bedrooms%2C+Central+California+vacation+rental';
var metaContents  = 'Our+fully+furnished+vacation+home+is+centrally+located+in+the+heart+of+Santa+Cruz%2C+close+to+everything%21+It+is+has+two+fully-equipped+kitchens+and+is+a+furnished+vacation+rental+available+until+September+2007.+It+is+located+less+than+two+miles+from+UCSC+and+is+walking+distance+to+the+beach%2C+wharf%2C+boardwalk%2C+downtown%2C+and+is+three+houses+away+from+Neary+Lagoon.+All+guests+have+been+extremely+pleased+with+the+location+as+well+as+the+accommodations%21+Please+see+our+guest+book+for+details.++++The+entire+duplex+is+especially+great+for+family+re-unions+or+multiple+friends+and+families+vacationing+together+as+there+are+two+kitchens+and+two+separate+entrances+and+private+living+areas+with+a+common+yard+for+BBQs+or+sunning.+Each+unit+can+also+be+rented+independently.+The+duplex+has+a+mirrored+layout+with+each+side+having+1200+square+feet+that+has+2+bedrooms+and+1.5+baths.+Each+sleeps+12+for+a+maximum+of+24+overnight+guests.+We+have+enjoyed+hosting+many+family+events+here+as+the+property+features+a+fully-enclosed+yard+and+is+kid+and+pet+friendly.++++Downtown+Santa+Cruz+boasts+many+fine+restaurants%2C+wonderful+shopping%2C+four+movie+theaters%2C+natural+foods+grocery+store%2C+Trader+Joes%2C+and+many+other+attractions+such+as+street+performers.+++++A+short+walk+away+is+the+world-famous+Santa+Cruz+Beach+Boardwalk+that+is+admission-free+and+is+a+hot+spot+for+beach+vibes+and+classic+rides%21+And+there+are+complimentary+world-class+entertainers+on+Friday+nights+during+the+summer.++++Santa+Cruz+also+has+many+beautiful+beaches.+There+are+three+children+parks+in+the+immediate+area+in+addition+to+a+skateboard+park%2C+a+regulation+size+soccer+park+and+beach+volleyball+courts.+A+short+stroll+through+Neary+Lagoon+are+public+tennis+courts+and+2+childrens+playgrounds.++++Neary+Lagoon+is+right+down+the+street%2C+which+is+a+natural+reserve+preserving+a+wetland+ecosystem+and+wildlife+refuge.+Wildlife+inhabiting+or+visiting+the+refuge+include+mallard+and+wood+ducks%2C+pied+billed+grebes%2C+a+multitude+of+coots%2C+the+worlds+meanest+geese%2C+several+varieties+of+fish+and+the+occasional+great+blue+heron+or+hawk.++++Our+home+is+close+to+a+major+bus+line+as+well+as+providing+bikes+and+helmets+for+guests+to+get+around+Santa+Cruz+easily+during+your+stay.+Additionally+there+is+high-speed+Internet+hookup+and+a+computer+for+guests+use+so+you+can+be+up-to-date+on+the+local+happenings+during+your+stay.++++Additional+property+features+are+enclosed+dog+runs+in+the+back+of+each+unit%2C+barbecues+in+each+yard.+Each+unit+has+two+bedrooms+with+a+queen-size+bed+in+each.+Each+bedroom+has+a+daybed+with+two+twin+beds+and+the+two+twin+mattresses+can+be+put+together+%28with+a+twin+to+king-size+foam+converter%29.+Each+living+room+has+two+queen-size+futons.+And+each+unit+has+one-and-one-half+baths.++++Both+units+have+new+flooring%2C+carpeting%2C+interior+paint+and+furniture.+We+are+currently+offering+discounted+rates+as+the+exterior+is+weathered+and+detracts+from+the+curb+appeal.+This+is+purely+a+cosmetic+issue+and+we+are+planning+on+painting+the+exterior+in+the+spring.+++++May+be+rented+for+family+reunions%2C+multiple+families+traveling+together%2C+families+gathering+for+weddings+in+Santa+Cruz%2C+corporate+gatherings+or+your+group%EF%BF%BD%EF%BF%BD%EF%BF%BDs+next+retreat.+Professional+groups+encouraged+to+inquire.++';
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();
};
