/* [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','8201',jdecode('HOME'),jdecode(''), jdecode('%2F8201.html'), 'true',[],'',''],
	['PAGE','8252',jdecode('ABOUT+US'),jdecode(''), jdecode('%2F8252.html'), 'true',[],'',''],
	['PAGE','8273',jdecode('ARTISTS'),jdecode(''), jdecode('%2F8273%2Findex.html'), 'true',[ 
		['PAGE','13801',jdecode('Sharon+Bartel-Clements'),jdecode(''), jdecode('%2F8273%2F13801.html'), 'true',[],'',''],
		['PAGE','19701',jdecode('Rosetta+Bentz'),jdecode(''), jdecode('%2F8273%2F19701.html'), 'true',[],'',''],
		['PAGE','61012',jdecode('Siri+Berg'),jdecode(''), jdecode('%2F8273%2F61012.html'), 'true',[],'',''],
		['PAGE','48812',jdecode('Dorothy+Cochran'),jdecode(''), jdecode('%2F8273%2F48812.html'), 'true',[],'',''],
		['PAGE','48833',jdecode('Elaine+Defibaugh'),jdecode(''), jdecode('%2F8273%2F48833.html'), 'true',[],'',''],
		['PAGE','15501',jdecode('Laura+Duggan'),jdecode(''), jdecode('%2F8273%2F15501.html'), 'true',[],'',''],
		['PAGE','8294',jdecode('Edward+Evans'),jdecode(''), jdecode('%2F8273%2F8294.html'), 'true',[],'',''],
		['PAGE','19722',jdecode('Mary+Felton'),jdecode(''), jdecode('%2F8273%2F19722.html'), 'true',[],'',''],
		['PAGE','61033',jdecode('Sharon+Florin'),jdecode(''), jdecode('%2F8273%2F61033.html'), 'true',[],'',''],
		['PAGE','42712',jdecode('JAVA'),jdecode(''), jdecode('%2F8273%2F42712.html'), 'true',[],'',''],
		['PAGE','154178',jdecode('JoAnna+Johnson'),jdecode(''), jdecode('%2F8273%2F154178.html'), 'true',[],'',''],
		['PAGE','13885',jdecode('James+LoParo'),jdecode(''), jdecode('%2F8273%2F13885.html'), 'true',[],'',''],
		['PAGE','44412',jdecode('AJ+Nadel'),jdecode(''), jdecode('%2F8273%2F44412.html'), 'true',[],'',''],
		['PAGE','13822',jdecode('Elisa+Pritzker'),jdecode(''), jdecode('%2F8273%2F13822.html'), 'true',[],'',''],
		['PAGE','61054',jdecode('Liz+Whitney+Quisgard'),jdecode(''), jdecode('%2F8273%2F61054.html'), 'true',[],'',''],
		['PAGE','71412',jdecode('Fernando+Rangel'),jdecode(''), jdecode('%2F8273%2F71412.html'), 'true',[],'',''],
		['PAGE','130667',jdecode('Alicia+Rothman'),jdecode(''), jdecode('%2F8273%2F130667.html'), 'true',[],'',''],
		['PAGE','61075',jdecode('Marlene+Rye'),jdecode(''), jdecode('%2F8273%2F61075.html'), 'true',[],'',''],
		['PAGE','19743',jdecode('Peter+Tripp'),jdecode(''), jdecode('%2F8273%2F19743.html'), 'true',[],'',''],
		['PAGE','61096',jdecode('Leendert+van+der+Pool'),jdecode(''), jdecode('%2F8273%2F61096.html'), 'true',[],'',''],
		['PAGE','61117',jdecode('Gusta+van+Dobbenburgh'),jdecode(''), jdecode('%2F8273%2F61117.html'), 'true',[],'',''],
		['PAGE','61138',jdecode('Eleanor+Winters'),jdecode(''), jdecode('%2F8273%2F61138.html'), 'true',[],'',''],
		['PAGE','61159',jdecode('Ann+Woodward'),jdecode(''), jdecode('%2F8273%2F61159.html'), 'true',[],'','']
	],'',''],
	['PAGE','97723',jdecode('CURRENT+EXHIBITION'),jdecode(''), jdecode('%2F97723.html'), 'true',[],'',''],
	['PAGE','25101',jdecode('PRESS+RELEASE'),jdecode(''), jdecode('%2F25101.html'), 'true',[],'',''],
	['PAGE','42812',jdecode('UPCOMING+EXHIBITIONS'),jdecode(''), jdecode('%2F42812.html'), 'true',[],'',''],
	['PAGE','8336',jdecode('THE+EASELS+PROJECT'),jdecode(''), jdecode('%2F8336.html'), 'true',[],'',''],
	['PAGE','8357',jdecode('RECEPTIONS%2FEVENTS'),jdecode(''), jdecode('%2F8357.html'), 'true',[],'',''],
	['PAGE','100723',jdecode('SPECIAL+PROJECTS'),jdecode(''), jdecode('%2F100723.html'), 'true',[],'',''],
	['PAGE','8315',jdecode('PREVIOUS+EXHIBITIONS'),jdecode(''), jdecode('%2F8315.html'), 'true',[],'',''],
	['PAGE','24101',jdecode('OUR+BLOG'),jdecode(''), jdecode('%2F24101.html'), 'true',[],'',''],
	['PAGE','8378',jdecode('PRESS'),jdecode(''), jdecode('%2F8378.html'), 'true',[],'',''],
	['PAGE','8399',jdecode('GALLERY+NEWS'),jdecode(''), jdecode('%2F8399.html'), 'true',[],'',''],
	['PAGE','8420',jdecode('CONTACT'),jdecode(''), jdecode('%2F8420.html'), 'true',[],'',''],
	['PAGE','31612',jdecode('LINKS'),jdecode(''), jdecode('%2F31612.html'), 'true',[],'',''],
	['PAGE','146078',jdecode('FROG+HOLLOW+FARM+B%26B'),jdecode(''), jdecode('%2F146078.html'), 'true',[],'',''],
	['PAGE','117867',jdecode('Join+Our+Mailing+List'),jdecode(''), jdecode('%2F117867.html'), 'true',[],'','']];
var siteelementCount=40;
theSitetree.topTemplateName='Alpha';
theSitetree.paletteFamily='5351C2';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10461';
theSitetree.graphicsetId='10894';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'enom',
  product: 'WSCENOSSSLYTC21T'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Alpha',
				paletteFamily: 	'5351C2',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10461',
				graphicsetId: 	'10894',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'5351C2',
				e_color: 		'5351C2',
				f_color: 		'5351C2',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8201',
internalId:  '',
customField: '20111109-123740'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8252',
internalId:  '',
customField: '20110730-072207'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8273',
internalId:  '',
customField: '20100712-144636'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8294',
internalId:  '',
customField: '20100529-150723'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8315',
internalId:  '',
customField: '20110730-065514'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8336',
internalId:  '',
customField: '20110831-132804'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8357',
internalId:  '',
customField: '20111101-130758'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8378',
internalId:  '',
customField: '20110519-140515'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8399',
internalId:  '',
customField: '20111217-094413'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8420',
internalId:  '',
customField: '20100902-063646'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13801',
internalId:  '',
customField: '20111029-135638'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13822',
internalId:  '',
customField: '20100828-212759'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42712',
internalId:  '',
customField: '20100407-151519'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44412',
internalId:  '',
customField: '20110507-122033'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13885',
internalId:  '',
customField: '20091010-204639'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15501',
internalId:  '',
customField: '20111029-141311'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71412',
internalId:  '',
customField: '20100627-104826'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '146078',
internalId:  '',
customField: '20110904-091420'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19701',
internalId:  '',
customField: '20100919-083338'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19722',
internalId:  '',
customField: '20100713-193304'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19743',
internalId:  '',
customField: '20091104-144039'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24101',
internalId:  '',
customField: '20100902-063138'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25101',
internalId:  '',
customField: '20111110-093759'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31612',
internalId:  '',
customField: '20110904-093906'
};
webappMappings['7060']=webappMappings['7060-7bd4ec027be1a7306c36d546eeedeb23']={
webappId:    '7060',
documentId:  '8294',
internalId:  '7bd4ec027be1a7306c36d546eeedeb23',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48812',
internalId:  '',
customField: '20100304-100038'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42812',
internalId:  '',
customField: '20110831-130029'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '130667',
internalId:  '',
customField: '20110503-192213'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '117867',
internalId:  '',
customField: '20110104-134159'
};
webappMappings['7060']=webappMappings['7060-388b9681cc1ad1317c8d8c14cb521009']={
webappId:    '7060',
documentId:  '13801',
internalId:  '388b9681cc1ad1317c8d8c14cb521009',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48833',
internalId:  '',
customField: '20100304-100038'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61012',
internalId:  '',
customField: '20100614-214306'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61033',
internalId:  '',
customField: '20110207-055732'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61054',
internalId:  '',
customField: '20100529-083535'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61075',
internalId:  '',
customField: '20100529-145615'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61096',
internalId:  '',
customField: '20100812-043232'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61117',
internalId:  '',
customField: '20100812-131325'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61138',
internalId:  '',
customField: '20100812-043349'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61159',
internalId:  '',
customField: '20100712-144250'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '97723',
internalId:  '',
customField: '20111116-141238'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '100723',
internalId:  '',
customField: '20111110-100609'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '154178',
internalId:  '',
customField: '20111119-141557'
};
var webAppHostname = 'wsc.ehost-services.com:80';
var canonHostname = 'wscwrk01.ehost-services.com';
var accountId     = 'AEN330INFJP6';
var companyName   = 'Franklin+54+Gallery+%2B+Projects';
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();
};

