/* [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','2201',jdecode('Home'),jdecode(''),'/2201.html','true',[],'',''],
	['PAGE','22601',jdecode('About+the+artist'),jdecode(''),'/22601.html','true',[],'',''],
	['PAGE','18401',jdecode('Gallery'),jdecode(''),'/18401/index.html','true',[ 
		['PAGE','21722',jdecode('Landscapes'),jdecode(''),'/18401/21722.html','true',[],'',''],
		['PAGE','21701',jdecode('Portraits'),jdecode(''),'/18401/21701.html','true',[],'',''],
		['PAGE','21743',jdecode('Still+Life'),jdecode(''),'/18401/21743.html','true',[],'',''],
		['PAGE','30401',jdecode('Spiritual+and+Nurturing'),jdecode(''),'/18401/30401.html','true',[],'','']
	],'',''],
	['PAGE','78901',jdecode('brochure'),jdecode(''),'/78901.html','true',[],'',''],
	['PAGE','3701',jdecode('Contact'),jdecode(''),'/3701.html','true',[],'',''],
	['PAGE','51701',jdecode('Guestbook'),jdecode(''),'/51701.html','true',[],'',''],
	['PAGE','36301',jdecode('Calendar'),jdecode(''),'/36301.html','true',[],'',''],
	['PAGE','53701',jdecode('Gift+Shop'),jdecode(''),'/53701/index.html','true',[ 
		['PAGE','57401',jdecode('Gift+shop+contact'),jdecode(''),'/53701/57401.html','true',[],'','']
	],'',''],
	['PAGE','34101',jdecode('Quoddy+Eclipse'),jdecode(''),'/34101.html','false',[],'',''],
	['PAGE','47101',jdecode('dark+eclipse'),jdecode(''),'/47101.html','false',[],'',''],
	['PAGE','49385',jdecode('contemplation'),jdecode(''),'/49385.html','false',[],'',''],
	['PAGE','49301',jdecode('summer+breeze'),jdecode(''),'/49301.html','false',[],'',''],
	['PAGE','34122',jdecode('Stormy+Ocean'),jdecode(''),'/34122.html','false',[],'',''],
	['PAGE','49406',jdecode('winter+birch'),jdecode(''),'/49406.html','false',[],'',''],
	['PAGE','49427',jdecode('int+trees+I'),jdecode(''),'/49427.html','false',[],'',''],
	['PAGE','49448',jdecode('int+trees+II'),jdecode(''),'/49448.html','false',[],'',''],
	['PAGE','49469',jdecode('tree+sil+I'),jdecode(''),'/49469.html','false',[],'',''],
	['PAGE','49490',jdecode('tree+sil+II'),jdecode(''),'/49490.html','false',[],'',''],
	['PAGE','49322',jdecode('whispering+wind'),jdecode(''),'/49322.html','false',[],'',''],
	['PAGE','49343',jdecode('green+stream'),jdecode(''),'/49343.html','false',[],'',''],
	['PAGE','49364',jdecode('forest+path'),jdecode(''),'/49364.html','false',[],'',''],
	['PAGE','48001',jdecode('Grammy'),jdecode(''),'/48001.html','false',[],'',''],
	['PAGE','47122',jdecode('Allen+Joy'),jdecode(''),'/47122.html','false',[],'',''],
	['PAGE','33001',jdecode('Earl+%26+Mom'),jdecode(''),'/33001.html','false',[],'',''],
	['PAGE','45501',jdecode('Sue+%26+Son'),jdecode(''),'/45501.html','false',[],'',''],
	['PAGE','56301',jdecode('Missy+%26+Bear'),jdecode(''),'/56301.html','false',[],'',''],
	['PAGE','56322',jdecode('Casey-Lynn'),jdecode(''),'/56322.html','false',[],'',''],
	['PAGE','56343',jdecode('Idgy+%26+Misty'),jdecode(''),'/56343.html','false',[],'',''],
	['PAGE','52332',jdecode('Zimba'),jdecode(''),'/52332.html','false',[],'',''],
	['PAGE','52248',jdecode('Fruit+bowl'),jdecode(''),'/52248.html','false',[],'',''],
	['PAGE','45543',jdecode('Stones+%26+Bone'),jdecode(''),'/45543.html','false',[],'',''],
	['PAGE','52227',jdecode('elephant+vase'),jdecode(''),'/52227.html','false',[],'',''],
	['PAGE','56601',jdecode('Oil+Jar'),jdecode(''),'/56601.html','false',[],'',''],
	['PAGE','56501',jdecode('Waterfall'),jdecode(''),'/56501.html','false',[],'',''],
	['PAGE','56522',jdecode('yellow+carnation'),jdecode(''),'/56522.html','false',[],'',''],
	['PAGE','45522',jdecode('Porcelain+Cat'),jdecode(''),'/45522.html','false',[],'',''],
	['PAGE','32201',jdecode('3+Graces'),jdecode(''),'/32201.html','false',[],'',''],
	['PAGE','52206',jdecode('cat+angel'),jdecode(''),'/52206.html','false',[],'',''],
	['PAGE','45564',jdecode('circle+of+life+Gramden%26%23x27%3Bs+hands'),jdecode(''),'/45564.html','false',[],'',''],
	['PAGE','52101',jdecode('Family+Hands'),jdecode(''),'/52101.html','false',[],'',''],
	['PAGE','52185',jdecode('hug'),jdecode(''),'/52185.html','false',[],'',''],
	['PAGE','52122',jdecode('Nurturing+mother'),jdecode(''),'/52122.html','false',[],'',''],
	['PAGE','52143',jdecode('Shhhhhh'),jdecode(''),'/52143.html','false',[],'',''],
	['PAGE','52164',jdecode('angel'),jdecode(''),'/52164.html','false',[],'',''],
	['PAGE','52311',jdecode('Penelope'),jdecode(''),'/52311.html','false',[],'',''],
	['PAGE','52290',jdecode('Dove'),jdecode(''),'/52290.html','false',[],'',''],
	['PAGE','52269',jdecode('spirit'),jdecode(''),'/52269.html','false',[],'','']];
var siteelementCount=52;
theSitetree.topTemplateName='Scenery';
theSitetree.paletteFamily='6585B8';
theSitetree.keyvisualId='6950';
theSitetree.keyvisualName='kv_6950.jpg';
theSitetree.fontsetId='11227';
theSitetree.graphicsetId='12047';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='8AA6D2';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Scenery',
				paletteFamily: 	'6585B8',
				keyvisualId: 	'6950',
				keyvisualName: 	'kv_6950.jpg',
				fontsetId: 		'11227',
				graphicsetId: 	'12047',
				contentColor: 	'000000',
				contentBGColor: '8AA6D2',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2201',
internalId:  '',
customField: '20100924-120944'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21701',
internalId:  '',
customField: '20100402-071506'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22601',
internalId:  '',
customField: '20100924-103728'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18401',
internalId:  '',
customField: '20100924-120507'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3701',
internalId:  '',
customField: '20100924-113646'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21722',
internalId:  '',
customField: '20100623-160026'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21743',
internalId:  '',
customField: '20100402-071112'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30401',
internalId:  '',
customField: '20100402-071153'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36301',
internalId:  '',
customField: '20100825-113034'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32201',
internalId:  '',
customField: '20091209-134702'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33001',
internalId:  '',
customField: '20091123-102822'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34101',
internalId:  '',
customField: '20091125-064023'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34122',
internalId:  '',
customField: '20091204-093617'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '2201',
internalId:  '1006',
customField: '1006'
};
webappMappings['7008']=webappMappings['7008-23270']={
webappId:    '7008',
documentId:  '3701',
internalId:  '23270',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45501',
internalId:  '',
customField: '20091124-165246'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78901',
internalId:  '',
customField: '20101019-081629'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45522',
internalId:  '',
customField: '20091124-164549'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45564',
internalId:  '',
customField: '20100226-104408'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45543',
internalId:  '',
customField: '20091209-133946'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47101',
internalId:  '',
customField: '20091124-170228'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47122',
internalId:  '',
customField: '20091124-170211'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48001',
internalId:  '',
customField: '20091209-131557'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49301',
internalId:  '',
customField: '20091125-062013'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49322',
internalId:  '',
customField: '20091125-062109'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49364',
internalId:  '',
customField: '20091209-131951'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49343',
internalId:  '',
customField: '20091209-131713'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49385',
internalId:  '',
customField: '20091209-132812'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49406',
internalId:  '',
customField: '20091125-062733'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49427',
internalId:  '',
customField: '20091209-132140'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49448',
internalId:  '',
customField: '20091209-132357'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49469',
internalId:  '',
customField: '20091125-063242'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49490',
internalId:  '',
customField: '20091207-202353'
};
webappMappings['7008']=webappMappings['7008-23576']={
webappId:    '7008',
documentId:  '51701',
internalId:  '23576',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51701',
internalId:  '',
customField: '20091128-163818'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52101',
internalId:  '',
customField: '20100226-104343'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52122',
internalId:  '',
customField: '20100226-104026'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52143',
internalId:  '',
customField: '20100226-103959'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52164',
internalId:  '',
customField: '20091205-115126'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52185',
internalId:  '',
customField: '20100226-104109'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52206',
internalId:  '',
customField: '20091209-134858'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52227',
internalId:  '',
customField: '20091209-130232'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52248',
internalId:  '',
customField: '20091209-130349'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52269',
internalId:  '',
customField: '20100226-103850'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52290',
internalId:  '',
customField: '20100226-103921'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52311',
internalId:  '',
customField: '20091209-125813'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52332',
internalId:  '',
customField: '20091209-133506'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53701',
internalId:  '',
customField: '20100402-071651'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56301',
internalId:  '',
customField: '20091209-133153'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56322',
internalId:  '',
customField: '20091209-131036'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56343',
internalId:  '',
customField: '20091209-133237'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56601',
internalId:  '',
customField: '20091209-130104'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56501',
internalId:  '',
customField: '20091209-134201'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56522',
internalId:  '',
customField: '20091209-134415'
};
webappMappings['7008']=webappMappings['7008-23770']={
webappId:    '7008',
documentId:  '57401',
internalId:  '23770',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57401',
internalId:  '',
customField: '20091207-054509'
};
var canonHostname = 'cmworker03.yourhostingaccount.com';
var accountId     = 'AENDU0INVQHC';
var companyName   = 'CADENCE+CREATIONS+ART++Evelyn+Dean+Casey';
var htmlTitle	  = '';
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();
};

