/* [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','5001',jdecode('Home'),jdecode(''),'/5001.html','true',[],'',''],
	['PAGE','5052',jdecode('About+us'),jdecode(''),'/5052.html','true',[],'',''],
	['PAGE','5073',jdecode('About+Klode%28Bio+%26+Work%29+'),jdecode(''),'/5073/index.html','true',[ 
		['PAGE','5157',jdecode('Catalogue+of+Klode%26%23x27%3Bs+work'),jdecode(''),'/5073/5157.html','true',[],'',''],
		['PAGE','7843',jdecode('Slides+of+Klode%26%23x27%3Bs+Work'),jdecode(''),'/5073/7843.html','true',[],'',''],
		['PAGE','5501',jdecode('Klode%26%23x27%3Bs+Soleil+Brule+paintings+'),jdecode(''),'/5073/5501.html','true',[],'',''],
		['PAGE','16650',jdecode('Klode%26%23x27%3Bs+Acrylic+Paintings'),jdecode(''),'/5073/16650.html','true',[],'',''],
		['PAGE','32285',jdecode('Pictures+by+Klode'),jdecode(''),'/5073/32285.html','false',[],'',''],
		['PAGE','16329',jdecode('Klode%26%23x27%3Bs+Clothing'),jdecode(''),'/5073/16329.html','false',[],'',''],
		['PAGE','16350',jdecode('Klode%26%23x27%3Bs+Crafts'),jdecode(''),'/5073/16350.html','false',[],'',''],
		['PAGE','71857',jdecode('Klode%26%23x27%3Bs+Mixed+Media'),jdecode(''),'/5073/71857.html','true',[],'','']
	],'',''],
	['PAGE','5094',jdecode('Tiga%26%23x27%3Bs+Biography+'),jdecode(''),'/5094/index.html','true',[ 
		['PAGE','16671',jdecode('Catalogue+of+Tiga%26%23x27%3Bs+Work'),jdecode(''),'/5094/16671.html','true',[],'',''],
		['PAGE','16829',jdecode('+Album+of+Tiga%26%23x27%3Bs+Work'),jdecode(''),'/5094/16829.html','true',[],'',''],
		['PAGE','16692',jdecode('Acrylic+by+Tiga'),jdecode(''),'/5094/16692.html','true',[],'',''],
		['PAGE','32306',jdecode('Tiga%26%23x27%3Bs+Artistic+Rotation'),jdecode(''),'/5094/32306.html','true',[],'',''],
		['PAGE','32327',jdecode('Tiga%26%23x27%3Bs+Sculpting'),jdecode(''),'/5094/32327.html','true',[],'',''],
		['PAGE','32348',jdecode('Tiga%26%23x27%3Bs+Jewelry'),jdecode(''),'/5094/32348.html','true',[],'',''],
		['PAGE','32369',jdecode('Tiga%26%23x27%3Bs+Memorabilia'),jdecode(''),'/5094/32369.html','false',[],'',''],
		['PAGE','37739',jdecode('Tiga%26%23x27%3Bs+Soleil+Brule'),jdecode(''),'/5094/37739.html','false',[],'',''],
		['PAGE','37760',jdecode('Tiga%26%23x27%3Bs+Ink'),jdecode(''),'/5094/37760.html','false',[],'',''],
		['PAGE','37781',jdecode('Tiga+%26+Babara+Wallace'),jdecode(''),'/5094/37781.html','false',[],'',''],
		['PAGE','37802',jdecode('Tiga%26%23x27%3Bs+Ceramics'),jdecode(''),'/5094/37802.html','false',[],'',''],
		['PAGE','37823',jdecode('Tiga%26%23x27%3Bs+Awards+%26+Citations'),jdecode(''),'/5094/37823.html','false',[],'','']
	],'',''],
	['PAGE','5115',jdecode('Tony%26%23x27%3Bs+Biography'),jdecode(''),'/5115/index.html','true',[ 
		['PAGE','5543',jdecode('Tony%26%23x27%3Bs+Music'),jdecode(''),'/5115/5543.html','true',[],'','']
	],'',''],
	['PAGE','5136',jdecode('Artist+for+Haiti'),jdecode(''),'/5136/index.html','true',[ 
		['PAGE','16713',jdecode('Catalogue+of+Artist+for+Haiti'),jdecode(''),'/5136/16713.html','true',[],'',''],
		['PAGE','32390',jdecode('Art+work+'),jdecode(''),'/5136/32390.html','true',[],'',''],
		['PAGE','5564',jdecode('Artist+for+Haiti+1'),jdecode(''),'/5136/5564.html','false',[],'','']
	],'',''],
	['PAGE','5262',jdecode('Contact'),jdecode(''),'/5262.html','true',[],'',''],
	['PAGE','5283',jdecode('How+to+find+us'),jdecode(''),'/5283.html','true',[],'',''],
	['PAGE','5178',jdecode('JeanDarcel%26%23x27%3Bs+photographs'),jdecode(''),'/5178/index.html','true',[ 
		['PAGE','5199',jdecode('Background+information'),jdecode(''),'/5178/5199.html','true',[],'',''],
		['PAGE','5220',jdecode('Album+of+JeanDarcel%26%23x27%3Bs+Work+'),jdecode(''),'/5178/5220.html','true',[],'','']
	],'',''],
	['PAGE','5304',jdecode('Klode%26%23x27%3Bs+Blog'),jdecode(''),'/5304.html','true',[],'',''],
	['PAGE','5241',jdecode('Press+Release+%26+Columbia+Exhibit'),jdecode(''),'/5241/index.html','true',[ 
		['PAGE','82871',jdecode('+Exhibit+at+Queens+Borough+Community+College'),jdecode(''),'/5241/82871.html','true',[],'',''],
		['PAGE','82892',jdecode('Review+of+yeearly+activities'),jdecode(''),'/5241/82892.html','true',[],'','']
	],'',''],
	['PAGE','53257',jdecode('Exhibition+openings'),jdecode(''),'/53257.html','true',[],'','']];
var siteelementCount=40;
theSitetree.topTemplateName='Chaste';
theSitetree.paletteFamily='A3D392';
theSitetree.keyvisualId='11553';
theSitetree.keyvisualName='kv_11553.jpg';
theSitetree.fontsetId='32877';
theSitetree.graphicsetId='13963';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Chaste',
				paletteFamily: 	'A3D392',
				keyvisualId: 	'11553',
				keyvisualName: 	'kv_11553.jpg',
				fontsetId: 		'32877',
				graphicsetId: 	'13963',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'A3D392',
				b_color: 		'659A53',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['7050']=webappMappings['7050-2393']={
webappId:    '7050',
documentId:  '5304',
internalId:  '2393',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5001',
internalId:  '',
customField: '20100614-183406'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '5001',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-8915465']={
webappId:    '1501',
documentId:  '5001',
internalId:  '8915465',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5052',
internalId:  '',
customField: '20100527-191257'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5073',
internalId:  '',
customField: '20100615-073430'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5094',
internalId:  '',
customField: '20100825-094621'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5115',
internalId:  '',
customField: '20100825-094021'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5136',
internalId:  '',
customField: '20080519-222845'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5157',
internalId:  '',
customField: '20080609-231043'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5501',
internalId:  '',
customField: '20100222-110212'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16650',
internalId:  '',
customField: '20100222-111425'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5543',
internalId:  '',
customField: '20080519-223553'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5564',
internalId:  '',
customField: '20080519-223553'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5178',
internalId:  '',
customField: '20100527-191426'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5199',
internalId:  '',
customField: '20100527-193012'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5220',
internalId:  '',
customField: '20081218-203828'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5241',
internalId:  '',
customField: '20100606-081012'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5262',
internalId:  '',
customField: '20080529-103327'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5283',
internalId:  '',
customField: '20100502-134626'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5304',
internalId:  '',
customField: '20090218-233239'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16671',
internalId:  '',
customField: '20080607-130017'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16350',
internalId:  '',
customField: '20080527-021213'
};
webappMappings['7060']=webappMappings['7060-d2d0b5bb582822d631d2cb44c87838a8']={
webappId:    '7060',
documentId:  '7843',
internalId:  'd2d0b5bb582822d631d2cb44c87838a8',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16829',
internalId:  '',
customField: '20080608-113805'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16329',
internalId:  '',
customField: '20080527-021213'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7843',
internalId:  '',
customField: '20090910-151319'
};
webappMappings['7060']=webappMappings['7060-03345618ab4154fc26b1fc8a96ae2a2a']={
webappId:    '7060',
documentId:  '5220',
internalId:  '03345618ab4154fc26b1fc8a96ae2a2a',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-a83082e7e304e0996ed8fca07fdaaa7c']={
webappId:    '7060',
documentId:  '16829',
internalId:  'a83082e7e304e0996ed8fca07fdaaa7c',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16692',
internalId:  '',
customField: '20100606-082622'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16713',
internalId:  '',
customField: '20080527-033452'
};
webappMappings['7008']=webappMappings['7008-4390']={
webappId:    '7008',
documentId:  '5262',
internalId:  '4390',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32285',
internalId:  '',
customField: '20080921-184424'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32306',
internalId:  '',
customField: '20080610-063553'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32327',
internalId:  '',
customField: '20080610-063235'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32348',
internalId:  '',
customField: '20080610-061434'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32369',
internalId:  '',
customField: '20080605-064853'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32390',
internalId:  '',
customField: '20080605-064853'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37739',
internalId:  '',
customField: '20080607-231103'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37760',
internalId:  '',
customField: '20080607-231103'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37781',
internalId:  '',
customField: '20080607-231103'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37802',
internalId:  '',
customField: '20080607-231103'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37823',
internalId:  '',
customField: '20090910-153816'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53257',
internalId:  '',
customField: '20100527-155458'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71857',
internalId:  '',
customField: '20090911-200217'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82871',
internalId:  '',
customField: '20100527-161415'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82892',
internalId:  '',
customField: '20100527-155807'
};
var canonHostname = 'cmworker01.yourhostingaccount.com';
var accountId     = 'AENDU0IN2B1H';
var companyName   = 'KlodeArt';
var htmlTitle	  = 'Klode+Art';
var metaKeywords  = 'Art%2C+Paintings%2C+Sculpting%2C+Artistic+Rotation%2C+Jewelries%2CCLothings%2C+Bags';
var metaContents  = 'Site+for+the+promotion+of+art+work+by+Klode%2C+Tiga%2C+Tony+and+Artist+for+Haiti';
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();
};
