/* [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','4701',jdecode('Goodywho'),jdecode(''),'/4701.html','false',[],'',''],
	['PAGE','7885',jdecode('Stop+LFAS'),jdecode(''),'/7885.html','false',[],'',''],
	['PAGE','5443',jdecode('Links+for+Owls'),jdecode(''),'/5443/index.html','false',[ 
		['PAGE','5464',jdecode('Adopt+an+Owl'),jdecode(''),'/5443/5464.html','false',[],'','']
	],'',''],
	['PAGE','5301',jdecode('Cetacean+Community'),jdecode(''),'/5301.html','false',[],'',''],
	['PAGE','13401',jdecode('Head2Toe+-+My+Monavie'),jdecode(''),'/13401.html','false',[],'',''],
	['PAGE','13601',jdecode('Lemurian+Healers'),jdecode(''),'/13601.html','false',[],'',''],
	['PAGE','15601',jdecode('Bridges+and+Ports'),jdecode(''),'/15601.html','false',[],'',''],
	['PAGE','5322',jdecode('ManyRooms'),jdecode(''),'/5322.html','false',[],'',''],
	['PAGE','5401',jdecode('Homes+Recycled'),jdecode(''),'/5401.html','false',[],'',''],
	['PAGE','8301',jdecode('Get+a+Better+Broker'),jdecode(''),'/8301.html','false',[],'',''],
	['PAGE','17201',jdecode('Our+real+estate+broker+team'),jdecode(''),'/17201.html','false',[],'',''],
	['PAGE','16201',jdecode('Contact+Information'),jdecode(''),'/16201.html','false',[],'',''],
	['PAGE','5422',jdecode('Email+Form'),jdecode(''),'/5422.html','false',[],'',''],
	['PAGE','21801',jdecode('Bridges+and+Ports+Program+Summaries'),jdecode(''),'/21801.html','false',[],'',''],
	['PAGE','22501',jdecode('-+-+-'),jdecode(''),'/22501.html','true',[],'',''],
	['PAGE','24001',jdecode('Beautiful+Contemporary+House+in+Palo+Alto'),jdecode(''),'/24001/index.html','false',[ 
		['PAGE','24022',jdecode('Pre-sale+Disclosures+for+Palo+Alto+Home'),jdecode(''),'/24001/24022.html','true',[],'','']
	],'',''],
	['PAGE','24801',jdecode('New+Moon+Vintage+Home+for+Sale'),jdecode(''),'/24801/index.html','false',[ 
		['PAGE','24822',jdecode('New+Moon+Pre-sale+Disclosures'),jdecode(''),'/24801/24822.html','true',[],'','']
	],'',''],
	['PAGE','29601',jdecode('New+Moon+Images'),jdecode(''),'/29601.html','false',[],'',''],
	['PAGE','24843',jdecode('The+Quay+to+San+Jose'),jdecode(''),'/24843/index.html','false',[ 
		['PAGE','24864',jdecode('Pre-sale+Disclosures+Quay+to+San+Jose'),jdecode(''),'/24843/24864.html','true',[],'','']
	],'',''],
	['PAGE','31501',jdecode('Quay+to+San+Jose+Images'),jdecode(''),'/31501.html','false',[],'',''],
	['PAGE','24885',jdecode('Campbell+Turnkey+Hacienda'),jdecode(''),'/24885/index.html','false',[ 
		['PAGE','24906',jdecode('Campbell+Turnkey+Disclosures'),jdecode(''),'/24885/24906.html','false',[],'','']
	],'',''],
	['PAGE','35201',jdecode('Campbell+Turnkey+Images'),jdecode(''),'/35201.html','false',[],'',''],
	['PAGE','28201',jdecode('Links+and+Search'),jdecode(''),'/28201.html','false',[],'',''],
	['PAGE','28222',jdecode('lookatyou'),jdecode(''),'/28222.html','false',[],'',''],
	['PAGE','41401',jdecode('756+E+Saint+James+Street'),jdecode(''),'/41401.html','false',[],'','']];
var siteelementCount=30;
theSitetree.topTemplateName='Delta';
theSitetree.paletteFamily='080245';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10440';
theSitetree.graphicsetId='10811';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='080245';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Delta',
				paletteFamily: 	'080245',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10440',
				graphicsetId: 	'10811',
				contentColor: 	'FFFFFF',
				contentBGColor: '080245',
				a_color: 		'221785',
				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['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4701',
internalId:  '',
customField: '20091201-120517'
};
webappMappings['7008']=webappMappings['7008-10430']={
webappId:    '7008',
documentId:  '5422',
internalId:  '10430',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5443',
internalId:  '',
customField: '20091128-005009'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5322',
internalId:  '',
customField: '20100605-122044'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5401',
internalId:  '',
customField: '20091128-135421'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5422',
internalId:  '',
customField: '20091128-132826'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5464',
internalId:  '',
customField: '20090819-160034'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5301',
internalId:  '',
customField: '20091129-143303'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13401',
internalId:  '',
customField: '20100307-190138'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13601',
internalId:  '',
customField: '20091129-145410'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8301',
internalId:  '',
customField: '20100209-152027'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24801',
internalId:  '',
customField: '20100209-152749'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24022',
internalId:  '',
customField: '20091130-171912'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24843',
internalId:  '',
customField: '20100201-141926'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7885',
internalId:  '',
customField: '20091128-004851'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15601',
internalId:  '',
customField: '20100127-032301'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16201',
internalId:  '',
customField: '20091128-133926'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17201',
internalId:  '',
customField: '20091128-134614'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21801',
internalId:  '',
customField: '20100201-141732'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22501',
internalId:  '',
customField: '20100201-140337'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24001',
internalId:  '',
customField: '20091130-182730'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24864',
internalId:  '',
customField: '20091130-171053'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24822',
internalId:  '',
customField: '20091201-125616'
};
webappMappings['1002']=webappMappings['1002-21801avfl30inhbi1']={
webappId:    '1002',
documentId:  '21801',
internalId:  '21801avfl30inhbi1',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24885',
internalId:  '',
customField: '20100406-170315'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24906',
internalId:  '',
customField: '20100131-152423'
};
webappMappings['8002']=webappMappings['8002-search']={
webappId:    '8002',
documentId:  '28201',
internalId:  'search',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-0edb0a213223dedcac3503d22aaa05d9']={
webappId:    '7060',
documentId:  '28222',
internalId:  '0edb0a213223dedcac3503d22aaa05d9',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28201',
internalId:  '',
customField: '20100204-021224'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28222',
internalId:  '',
customField: '20100125-131423'
};
webappMappings['7060']=webappMappings['7060-0643affaf6be22cfd48a6e88fa213975']={
webappId:    '7060',
documentId:  '29601',
internalId:  '0643affaf6be22cfd48a6e88fa213975',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29601',
internalId:  '',
customField: '20100209-152925'
};
webappMappings['7060']=webappMappings['7060-f28da025cd0aa22232eb3559af9baed9']={
webappId:    '7060',
documentId:  '31501',
internalId:  'f28da025cd0aa22232eb3559af9baed9',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31501',
internalId:  '',
customField: '20100127-011804'
};
webappMappings['7060']=webappMappings['7060-649f992dfa5c1f026a9d0d5c19e38fea']={
webappId:    '7060',
documentId:  '35201',
internalId:  '649f992dfa5c1f026a9d0d5c19e38fea',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35201',
internalId:  '',
customField: '20100204-023118'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41401',
internalId:  '',
customField: '20100605-121526'
};
var canonHostname = 'diywk02.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVFL30INHBI1';
var companyName   = '';
var htmlTitle	  = 'Goodywho+';
var metaKeywords  = '';
var metaContents  = '';
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();
};
