/* [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','4555',jdecode('Home'),jdecode(''),'/4555.html','true',[],''],
	['PAGE','4612',jdecode('%C3%9Cber+mich'),jdecode(''),'/4612.html','true',[],''],
	['PAGE','24803',jdecode('Gallerie'),jdecode(''),'/24803/index.html','true',[ 
		['PAGE','69403',jdecode('Eisvogel'),jdecode(''),'/24803/69403.html','true',[],''],
		['PAGE','68503',jdecode('Monroe'),jdecode(''),'/24803/68503.html','true',[],''],
		['PAGE','68530',jdecode('Rossi'),jdecode(''),'/24803/68530.html','true',[],''],
		['PAGE','69430',jdecode('Frau+mit+Leopard'),jdecode(''),'/24803/69430.html','true',[],''],
		['PAGE','71003',jdecode('Wolfsblut'),jdecode(''),'/24803/71003.html','true',[],''],
		['PAGE','70698',jdecode('L%C3%B6we'),jdecode(''),'/24803/70698.html','true',[],''],
		['PAGE','25603',jdecode('Tiger'),jdecode(''),'/24803/25603.html','true',[],''],
		['PAGE','24911',jdecode('Wolf'),jdecode(''),'/24803/24911.html','true',[],''],
		['PAGE','25711',jdecode('Mazda+MX+5'),jdecode(''),'/24803/25711.html','true',[],''],
		['PAGE','25657',jdecode('Pegasus'),jdecode(''),'/24803/25657.html','true',[],''],
		['PAGE','25630',jdecode('Tiger+mit+Jungen'),jdecode(''),'/24803/25630.html','true',[],'']
	],''],
	['PAGE','68557',jdecode('Custom+Painting'),jdecode(''),'/68557/index.html','true',[ 
		['PAGE','75103',jdecode('Bilder'),jdecode(''),'/68557/75103.html','true',[],''],
		['PAGE','75130',jdecode('Motorr%C3%A4der%2C+Helme'),jdecode(''),'/68557/75130.html','true',[],''],
		['PAGE','82682',jdecode('Velorahmen'),jdecode(''),'/68557/82682.html','true',[],''],
		['PAGE','75157',jdecode('T-Shirts'),jdecode(''),'/68557/75157.html','true',[],''],
		['PAGE','75184',jdecode('Diverses'),jdecode(''),'/68557/75184.html','true',[],'']
	],''],
	['PAGE','72706',jdecode('Gifts'),jdecode(''),'/72706/index.html','true',[ 
		['PAGE','72747',jdecode('Gifts+%28Form+followup+page%29'),jdecode(''),'/72706/72747.html','false',[],'']
	],''],
	['PAGE','68584',jdecode('Body+Painting'),jdecode(''),'/68584/index.html','true',[ 
		['PAGE','77114',jdecode('nicht-permanente+Tatoos'),jdecode(''),'/68584/77114.html','true',[],''],
		['PAGE','77141',jdecode('Fasnachtsmasken'),jdecode(''),'/68584/77141.html','true',[],''],
		['PAGE','79498',jdecode('Fingern%C3%A4gel'),jdecode(''),'/68584/79498.html','true',[],'']
	],''],
	['PAGE','4747',jdecode('Events'),jdecode(''),'/4747/index.html','true',[ 
		['PAGE','77903',jdecode('Airbrushshow+05'),jdecode(''),'/4747/77903.html','true',[],''],
		['PAGE','76795',jdecode('Vernissage+04'),jdecode(''),'/4747/76795.html','true',[],'']
	],''],
	['PAGE','63003',jdecode('Forum'),jdecode(''),'/63003.html','true',[],''],
	['PAGE','60402',jdecode('G%C3%A4stebuch'),jdecode(''),'/60402/index.html','true',[ 
		['PAGE','60403',jdecode('Eintr%C3%A4ge'),jdecode(''),'/60402/60403.html','false',[],'']
	],''],
	['PAGE','4774',jdecode('Kontakt'),jdecode(''),'/4774/index.html','true',[ 
		['PAGE','59702',jdecode('Kontakt+%28Folgeseite%29'),jdecode(''),'/4774/59702.html','false',[],'']
	],'']];
var siteelementCount=34;
theSitetree.topTemplateName='Art';
theSitetree.paletteFamily='000000';
theSitetree.keyvisualId='1782';
theSitetree.keyvisualName='duene.jpg';
theSitetree.fontsetId='283';
theSitetree.graphicsetId='350';
theSitetree.contentColor='E2F4F7';
theSitetree.contentBGColor='000000';
var localeDef={
  language: 'de',
  country: 'CH'
};
var theTemplate={
				name: 			'Art',
				paletteFamily: 	'000000',
				keyvisualId: 	'1782',
				keyvisualName: 	'duene.jpg',
				fontsetId: 		'283',
				graphicsetId: 	'350',
				contentColor: 	'E2F4F7',
				contentBGColor: '000000',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				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:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4555',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4612',
internalId:  '',
customField: '20061002-205050'
};
webappMappings['1002']=webappMappings['1002-60402ABW0X0INX3BC']={
webappId:    '1002',
documentId:  '60402',
internalId:  '60402ABW0X0INX3BC',
customField: 'icq=false'
};
webappMappings['1003']=webappMappings['1003-abw0x0inx3bc10c650ecf46']={
webappId:    '1003',
documentId:  '63003',
internalId:  'abw0x0inx3bc10c650ecf46',
customField: 'de:CH:'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4555',
internalId:  '',
customField: '20090404-203633'
};
webappMappings['1009']=webappMappings['1009-4604708']={
webappId:    '1009',
documentId:  '72747',
internalId:  '4604708',
customField: 'isFollowupPage:true;documentId:72706;'
};
webappMappings['7008']=webappMappings['7008-3680']={
webappId:    '7008',
documentId:  '4774',
internalId:  '3680',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24803',
internalId:  '',
customField: '20050630-153244'
};
webappMappings['7008']=webappMappings['7008-3681']={
webappId:    '7008',
documentId:  '72706',
internalId:  '3681',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69403',
internalId:  '',
customField: '20050430-111713'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68503',
internalId:  '',
customField: '20050430-111732'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68530',
internalId:  '',
customField: '20050430-111750'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69430',
internalId:  '',
customField: '20050430-111807'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71003',
internalId:  '',
customField: '20050430-111822'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70698',
internalId:  '',
customField: '20050430-111839'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25603',
internalId:  '',
customField: '20050430-111857'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24911',
internalId:  '',
customField: '20050430-111913'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25711',
internalId:  '',
customField: '20050430-111929'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25657',
internalId:  '',
customField: '20050430-111953'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25630',
internalId:  '',
customField: '20050430-112020'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68557',
internalId:  '',
customField: '20050630-162012'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75103',
internalId:  '',
customField: '20090404-213426'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75130',
internalId:  '',
customField: '20090404-214212'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75157',
internalId:  '',
customField: '20061002-205658'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75184',
internalId:  '',
customField: '20090404-214645'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72706',
internalId:  '',
customField: '20060227-222411'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72747',
internalId:  '',
customField: '20041130-161017'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68584',
internalId:  '',
customField: '20060227-222510'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77114',
internalId:  '',
customField: '20050630-162048'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77141',
internalId:  '',
customField: '20061002-210536'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '79498',
internalId:  '',
customField: '20060227-223008'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4747',
internalId:  '',
customField: '20061003-124817'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77903',
internalId:  '',
customField: '20051029-224334'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76795',
internalId:  '',
customField: '20050630-151813'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63003',
internalId:  '',
customField: '20050630-153432'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60402',
internalId:  '',
customField: '20050630-153444'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60403',
internalId:  '',
customField: '20040512-204602'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4774',
internalId:  '',
customField: '20050630-153459'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59702',
internalId:  '',
customField: '20040831-112624'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82682',
internalId:  '',
customField: '20090404-213551'
};
var canonHostname = 'hptworkerdb01a.bluewin.ch';
var accountId     = 'ABW0X0INX3BC';
var companyName   = 'Black+Panther+Airbrushdesign';
var htmlTitle	  = 'Black-Panther+Airbrushdesign';
var metaKeywords  = 'Airbrush%2CAirbrushbilder%2C+Airbrushdesign%2C+Black+Panther%2C+Geschenk%2C+Bilder%2C+Kunst%2C+Claudia+St%EF%BF%BDuble%2CBlack-Panther%2CPanther';
var metaContents  = 'Black-Panther+Airbrush%2CAirbrushbilder%2CAirbrushdesign%2C+Airbrush';
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();
};

