/* [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','53',jdecode('Home'),jdecode(''),'/53.html','true',[],'',''],
	['PAGE','74',jdecode('Gallery'),jdecode(''),'/74/index.html','true',[ 
		['PAGE','83',jdecode('Paintings'),jdecode(''),'/74/83.html','true',[],'',''],
		['PAGE','92',jdecode('Drawings'),jdecode(''),'/74/92.html','true',[],'',''],
		['PAGE','158',jdecode('Landscapes'),jdecode(''),'/74/158.html','true',[],'',''],
		['PAGE','110',jdecode('Miniatures'),jdecode(''),'/74/110.html','true',[],'',''],
		['PAGE','2366',jdecode('Commissions'),jdecode(''),'/74/2366.html','true',[],'','']
	],'',''],
	['PAGE','119',jdecode('About+the+Artist'),jdecode(''),'/119.html','true',[],'',''],
	['PAGE','128',jdecode('Contact+the+Artist'),jdecode(''),'/128.html','true',[],'',''],
	['PAGE','2637',jdecode('Links'),jdecode(''),'/2637.html','true',[],'',''],
	['PAGE','11901',jdecode('Upcoming+Events'),jdecode(''),'/11901.html','true',[],'','']];
var siteelementCount=11;
theSitetree.topTemplateName='Education';
theSitetree.paletteFamily='766B4B';
theSitetree.keyvisualId='7321';
theSitetree.keyvisualName='kv_7321.jpg';
theSitetree.fontsetId='16464';
theSitetree.graphicsetId='12158';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='867C5F';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Education',
				paletteFamily: 	'766B4B',
				keyvisualId: 	'7321',
				keyvisualName: 	'kv_7321.jpg',
				fontsetId: 		'16464',
				graphicsetId: 	'12158',
				contentColor: 	'FFFFFF',
				contentBGColor: '867C5F',
				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:  '53',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53',
internalId:  '',
customField: '20100110-171108'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74',
internalId:  '',
customField: '20100110-172745'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '83',
internalId:  '',
customField: '20100113-125033'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92',
internalId:  '',
customField: '20100507-013230'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11901',
internalId:  '',
customField: '20100507-013047'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '158',
internalId:  '',
customField: '20100110-172400'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '110',
internalId:  '',
customField: '20100110-172428'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2366',
internalId:  '',
customField: '20100110-172459'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '119',
internalId:  '',
customField: '20100507-013953'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '128',
internalId:  '',
customField: '20100110-173055'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2637',
internalId:  '',
customField: '20100217-141724'
};
var canonHostname = 'wsc-worker04.chi.us.siteprotect.com';
var accountId     = 'AHW050IN3BA0';
var companyName   = 'Elizabeth+Seewald+Hill';
var htmlTitle	  = 'elizabethseewaldhill.com';
var metaKeywords  = 'Elizabeth+Seewald+Hill++++Elizabeth+Hill++++artist+++Elizabeth+Hill+Shundi++Elizabeth+Shundi++Lizzie+Hill++paintings++drawings++miniatures++commissions++contact+the+artist++about+the+artist++Joseph+Gierek+Fine+Art++New+Arts+Gallery++Alexander+Bocchialini+Shundi++Alex+Shundi++++Shundi++++Andy+Wainwright++Edie+Hill++++Hummingbird+Press++';
var metaContents  = 'Artist+Elizabeth+Seewald+Hill++gallery++paintings++drawings++miniatures++commissions++contact+the+artist++about+the+artist+links++Elizabeth+Hill+Shundi+++Elizabeth+Shundi';
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();
};
