/* [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','1001',jdecode('Home'),jdecode(''),'/1001.html','true',[],''],
	['PAGE','41901',jdecode('ABOUT+ME%3A+Biography'),jdecode(''),'/41901.html','true',[],''],
	['PAGE','5601',jdecode('PAINTINGS'),jdecode(''),'/5601.html','true',[],''],
	['PAGE','5622',jdecode('New+Works'),jdecode(''),'/5622/index.html','true',[ 
		['PAGE','68301',jdecode('Recent+works'),jdecode(''),'/5622/68301.html','true',[],'']
	],''],
	['PAGE','5643',jdecode('Works+on+paper+-+2005+-+overview'),jdecode(''),'/5643/index.html','true',[ 
		['PAGE','38901',jdecode('Scroll++-+W.o.paper++2005'),jdecode(''),'/5643/38901.html','true',[],'']
	],''],
	['PAGE','38501',jdecode('Works+on+paper+-+2006'),jdecode(''),'/38501.html','true',[],''],
	['PAGE','44101',jdecode('Path+to+abstraction+-+overview'),jdecode(''),'/44101/index.html','true',[ 
		['PAGE','5664',jdecode('Scroll+-+Path+to+abstraction'),jdecode(''),'/44101/5664.html','true',[],'']
	],''],
	['PAGE','5685',jdecode('Early+works'),jdecode(''),'/5685.html','true',[],''],
	['PAGE','5706',jdecode('Views+of+St.+Helena+Island'),jdecode(''),'/5706/index.html','true',[ 
		['PAGE','54601',jdecode('Scroll+-+Views+of+St.+Helena'),jdecode(''),'/5706/54601.html','true',[],'']
	],''],
	['PAGE','20401',jdecode('BOOK++-+St.+Helena+Isle%28E%2BG%29+'),jdecode(''),'/20401/index.html','true',[ 
		['PAGE','27401',jdecode('1502+-+Juao+de+Nova+%28E%29'),jdecode(''),'/20401/27401.html','true',[],''],
		['PAGE','40801',jdecode('1502+-+Juao+de+Nova+%28G%29'),jdecode(''),'/20401/40801.html','true',[],''],
		['PAGE','73301',jdecode('1513+-+Lopez+%28E%29'),jdecode(''),'/20401/73301.html','true',[],''],
		['PAGE','73322',jdecode('1513+-+Lopez++%28G%29'),jdecode(''),'/20401/73322.html','true',[],''],
		['PAGE','83801',jdecode('1588+-+Cavendish+%28E%29'),jdecode(''),'/20401/83801.html','true',[],''],
		['PAGE','83822',jdecode('1588+-+Cavendish+%28G%29'),jdecode(''),'/20401/83822.html','true',[],''],
		['PAGE','90122',jdecode('1606+-+The+Duyfgen+%28E%29'),jdecode(''),'/20401/90122.html','true',[],''],
		['PAGE','90101',jdecode('1659+-+Dutton+%28E%29'),jdecode(''),'/20401/90101.html','true',[],''],
		['PAGE','90143',jdecode('1673+-+Munden+%28E%29'),jdecode(''),'/20401/90143.html','true',[],''],
		['PAGE','90164',jdecode('neu'),jdecode(''),'/20401/90164.html','true',[],'']
	],''],
	['PAGE','27701',jdecode('POEM+St.+Helena+Isle'),jdecode(''),'/27701.html','true',[],''],
	['PAGE','27722',jdecode('PHILOSOPHY'),jdecode(''),'/27722.html','true',[],''],
	['PAGE','91501',jdecode('Here+and+Now'),jdecode(''),'/91501.html','true',[],''],
	['PAGE','8501',jdecode('Weblog'),jdecode(''),'/8501.html','true',[],''],
	['PAGE','8606',jdecode('Guest+book'),jdecode(''),'/8606/index.html','true',[ 
		['PAGE','8601',jdecode('Entries'),jdecode(''),'/8606/8601.html','false',[],'']
	],'']];
var siteelementCount=30;
theSitetree.topTemplateName='Deepcolor';
theSitetree.paletteFamily='5583CB';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10613';
theSitetree.graphicsetId='10469';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='154186';
var localeDef={
  language: 'de',
  country: 'CH'
};
var theTemplate={
				name: 			'Deepcolor',
				paletteFamily: 	'5583CB',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10613',
				graphicsetId: 	'10469',
				contentColor: 	'FFFFFF',
				contentBGColor: '154186',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'5583CB',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['7050']=webappMappings['7050-599']={
webappId:    '7050',
documentId:  '8501',
internalId:  '599',
customField: 'language:de;country:CH;'
};
webappMappings['1002']=webappMappings['1002-8606abw0x0in29zx']={
webappId:    '1002',
documentId:  '8606',
internalId:  '8606abw0x0in29zx',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1001',
internalId:  '',
customField: '20070331-115845'
};
webappMappings['1501']=webappMappings['1501-1501']={
webappId:    '1501',
documentId:  '27722',
internalId:  '1501',
customField: '1501'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '27722',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41901',
internalId:  '',
customField: '20070227-092603'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5601',
internalId:  '',
customField: '20060823-113558'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5622',
internalId:  '',
customField: '20071019-124836'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68301',
internalId:  '',
customField: '20061011-065336'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5643',
internalId:  '',
customField: '20060920-140508'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38901',
internalId:  '',
customField: '20070718-092418'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38501',
internalId:  '',
customField: '20060811-062234'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44101',
internalId:  '',
customField: '20061011-062626'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5664',
internalId:  '',
customField: '20061011-064840'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5685',
internalId:  '',
customField: '20061011-072733'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5706',
internalId:  '',
customField: '20061011-073525'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54601',
internalId:  '',
customField: '20061011-074817'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20401',
internalId:  '',
customField: '20061005-191508'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27401',
internalId:  '',
customField: '20061005-192017'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40801',
internalId:  '',
customField: '20061005-191747'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73301',
internalId:  '',
customField: '20070215-094503'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73322',
internalId:  '',
customField: '20070215-094306'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '83801',
internalId:  '',
customField: '20070227-093750'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '83822',
internalId:  '',
customField: '20070227-093915'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '90122',
internalId:  '',
customField: '20080125-231431'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '90101',
internalId:  '',
customField: '20080125-231541'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '90143',
internalId:  '',
customField: '20080125-232426'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '90164',
internalId:  '',
customField: '20080125-223638'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27701',
internalId:  '',
customField: '20061011-065638'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27722',
internalId:  '',
customField: '20080126-112053'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91501',
internalId:  '',
customField: '20080126-114800'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8501',
internalId:  '',
customField: '20090320-111722'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8606',
internalId:  '',
customField: '20060729-141906'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8601',
internalId:  '',
customField: '20060727-145708'
};
var canonHostname = 'hptworkerdb01a.bluewin.ch';
var accountId     = 'ABW0X0IN29ZX';
var companyName   = '';
var htmlTitle	  = 'www.linsi-art.com';
var metaKeywords  = 'Iris+Linsi%2C+Painter%2C+Poet%2C+of+St.+Helena+Island%2C+Dynamic+Universe';
var metaContents  = 'Linsi-art.+Iris+Linsi+of+St.+Helena+Isle%2C+Biography%2C+Philosophy%2C+Pictures+and+pictures+in+words';
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();
};

