/* [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','32',jdecode('Home'),jdecode(''),'/32.html','true',[],''],
	['PAGE','53',jdecode('James+Coignard'),jdecode(''),'/53/index.html','true',[ 
		['PAGE','3187',jdecode('graphics'),jdecode(''),'/53/3187.html','true',[],''],
		['PAGE','3272',jdecode('originals'),jdecode(''),'/53/3272.html','true',[],'']
	],''],
	['PAGE','1322',jdecode('Nissan+Engel'),jdecode(''),'/1322/index.html','true',[ 
		['PAGE','3391',jdecode('graphics'),jdecode(''),'/1322/3391.html','true',[],'']
	],''],
	['PAGE','62',jdecode('Raimundo+Figueroa'),jdecode(''),'/62/index.html','true',[ 
		['PAGE','3502',jdecode('originals'),jdecode(''),'/62/3502.html','true',[],''],
		['PAGE','2573',jdecode('originals+-+Faces+Series'),jdecode(''),'/62/2573.html','true',[],''],
		['PAGE','4257',jdecode('originals+-+Abloom-Abroad+Series'),jdecode(''),'/62/4257.html','true',[],''],
		['PAGE','4266',jdecode('originals+-+New+York+Series'),jdecode(''),'/62/4266.html','true',[],''],
		['PAGE','3511',jdecode('silkscreens'),jdecode(''),'/62/3511.html','true',[],'']
	],''],
	['PAGE','71',jdecode('Thomas+Hamann'),jdecode(''),'/71/index.html','true',[ 
		['PAGE','2829',jdecode('engravings'),jdecode(''),'/71/2829.html','true',[],''],
		['PAGE','4826',jdecode('engravings+-+Zodiac+Series'),jdecode(''),'/71/4826.html','true',[],'']
	],''],
	['PAGE','80',jdecode('Ken+Kenan'),jdecode(''),'/80/index.html','true',[ 
		['PAGE','13701',jdecode('originals+on+canvas'),jdecode(''),'/80/13701.html','true',[],''],
		['PAGE','3646',jdecode('originals+on+paper'),jdecode(''),'/80/3646.html','true',[],''],
		['PAGE','4421',jdecode('originals+on+paper+-+Excursions'),jdecode(''),'/80/4421.html','true',[],''],
		['PAGE','4430',jdecode('nautical+charts'),jdecode(''),'/80/4430.html','true',[],''],
		['PAGE','14301',jdecode('rubbings'),jdecode(''),'/80/14301.html','true',[],''],
		['PAGE','17701',jdecode('love+portraits'),jdecode(''),'/80/17701.html','true',[],''],
		['PAGE','1716',jdecode('silkscreens+-+Fleur+de+New+Orleans'),jdecode(''),'/80/1716.html','true',[],''],
		['PAGE','1860',jdecode('silkscreens+-+If+Ever+I+Cease+to+Love'),jdecode(''),'/80/1860.html','true',[],'']
	],''],
	['PAGE','476',jdecode('Max+Papart'),jdecode(''),'/476/index.html','true',[ 
		['PAGE','3109',jdecode('graphics'),jdecode(''),'/476/3109.html','true',[],''],
		['PAGE','3118',jdecode('originals'),jdecode(''),'/476/3118.html','true',[],'']
	],''],
	['PAGE','531',jdecode('Theo+Tobiasse'),jdecode(''),'/531/index.html','true',[ 
		['PAGE','3876',jdecode('graphics'),jdecode(''),'/531/3876.html','true',[],''],
		['PAGE','3885',jdecode('originals'),jdecode(''),'/531/3885.html','true',[],'']
	],''],
	['PAGE','540',jdecode('Cecil+Touchon'),jdecode(''),'/540/index.html','true',[ 
		['PAGE','3894',jdecode('collages+-+Fusion+Series'),jdecode(''),'/540/3894.html','true',[],''],
		['PAGE','4076',jdecode('collages+-+Iberian+Variations'),jdecode(''),'/540/4076.html','true',[],'']
	],''],
	['PAGE','549',jdecode('Zhou+Brothers'),jdecode(''),'/549/index.html','true',[ 
		['PAGE','3903',jdecode('originals'),jdecode(''),'/549/3903.html','true',[],'']
	],''],
	['PAGE','558',jdecode('Various+Artists'),jdecode(''),'/558.html','true',[],''],
	['PAGE','2196',jdecode('Custom+Framing'),jdecode(''),'/2196.html','true',[],''],
	['PAGE','567',jdecode('About+Us'),jdecode(''),'/567.html','true',[],''],
	['PAGE','576',jdecode('Contact+Us'),jdecode(''),'/576.html','true',[],''],
	['PAGE','2118',jdecode('Guestbook'),jdecode(''),'/2118/index.html','true',[ 
		['PAGE','2117',jdecode('Read+Guestbook'),jdecode(''),'/2118/2117.html','false',[],'']
	],'']];
var siteelementCount=41;
theSitetree.topTemplateName='Alpha';
theSitetree.paletteFamily='D72B2B';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10555';
theSitetree.graphicsetId='10893';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Alpha',
				paletteFamily: 	'D72B2B',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10555',
				graphicsetId: 	'10893',
				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: 		'D72B2B',
				e_color: 		'D72B2B',
				f_color: 		'D72B2B',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '32',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53',
internalId:  '',
customField: '20080319-114255'
};
webappMappings['1002']=webappMappings['1002-2118AHW050INXEGU']={
webappId:    '1002',
documentId:  '2118',
internalId:  '2118AHW050INXEGU',
customField: 'icq=false'
};
webappMappings['1501']=webappMappings['1501-176699']={
webappId:    '1501',
documentId:  '32',
internalId:  '176699',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32',
internalId:  '',
customField: '20100302-090735'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3187',
internalId:  '',
customField: '20080320-192113'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3272',
internalId:  '',
customField: '20080320-190716'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1322',
internalId:  '',
customField: '20080305-154601'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3391',
internalId:  '',
customField: '20080320-192800'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62',
internalId:  '',
customField: '20080319-111713'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3502',
internalId:  '',
customField: '20080322-155511'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2573',
internalId:  '',
customField: '20080321-155246'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4257',
internalId:  '',
customField: '20080322-152917'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4266',
internalId:  '',
customField: '20080322-153323'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3511',
internalId:  '',
customField: '20080322-153347'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71',
internalId:  '',
customField: '20080511-103119'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2829',
internalId:  '',
customField: '20080507-142637'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4826',
internalId:  '',
customField: '20080405-162755'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80',
internalId:  '',
customField: '20091221-084606'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13701',
internalId:  '',
customField: '20090903-111352'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3646',
internalId:  '',
customField: '20091003-052112'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4421',
internalId:  '',
customField: '20091110-075944'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4430',
internalId:  '',
customField: '20091029-081206'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1716',
internalId:  '',
customField: '20091029-081510'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1860',
internalId:  '',
customField: '20091029-081739'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '476',
internalId:  '',
customField: '20080305-151055'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3109',
internalId:  '',
customField: '20090216-114856'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3118',
internalId:  '',
customField: '20080321-162918'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '531',
internalId:  '',
customField: '20080305-151702'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3876',
internalId:  '',
customField: '20080321-171931'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3885',
internalId:  '',
customField: '20080321-172427'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '540',
internalId:  '',
customField: '20080305-155939'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3894',
internalId:  '',
customField: '20080321-180754'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4076',
internalId:  '',
customField: '20080321-180707'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '549',
internalId:  '',
customField: '20080403-021448'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3903',
internalId:  '',
customField: '20080321-185144'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '558',
internalId:  '',
customField: '20080330-123543'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2196',
internalId:  '',
customField: '20080401-144554'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '567',
internalId:  '',
customField: '20090216-115357'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '576',
internalId:  '',
customField: '20080401-144644'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2118',
internalId:  '',
customField: '20091003-062458'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2117',
internalId:  '',
customField: '20080316-164006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14301',
internalId:  '',
customField: '20100302-090700'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17701',
internalId:  '',
customField: '20091029-081438'
};
var canonHostname = 'wsc-worker02.chi.us.siteprotect.com';
var accountId     = 'AHW050INXEGU';
var companyName   = 'Nahan+Fine+Art';
var htmlTitle	  = 'Nahan+Fine+Art';
var metaKeywords  = 'James+Coignard%2C+Nissan+Engel%2C+Raimundo+Figueroa%2C+Thomas+Hamann%2C+Ken+Kenan%2C+Theo+Tobiasse%2C+Cecil+Touchon%2C+Zhou+Brothers%2C+Ken+Nahan%2C+New+Orleans%2C+Artists%2C+Custom+Framing%2C+Art+Dealer';
var metaContents  = 'James+Coignard%2C+Nissan+Engel%2C+Raimundo+Figueroa%2C+Thomas+Hamann%2C+Ken+Kenan%2C+Theo+Tobiasse%2C+Cecil+Touchon%2C+Zhou+Brothers%2C+Ken+Nahan%2C+New+Orleans%2C+Artists%2C+Custom+Framing%2C+Private+Art+Dealer';
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();
};
