/* [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','2001',jdecode('Home'),jdecode(''),'/2001.html','true',[],'',''],
	['PAGE','3301',jdecode('Kornelia+Himmel'),jdecode(''),'/3301/index.html','true',[ 
		['PAGE','3448',jdecode('Blog'),jdecode(''),'/3301/3448.html','true',[],'',''],
		['PAGE','3469',jdecode('Fotos'),jdecode(''),'/3301/3469.html','true',[],'','']
	],'',''],
	['PAGE','3322',jdecode('Feldenkrais'),jdecode(''),'/3322/index.html','true',[ 
		['PAGE','3343',jdecode('Gruppenkurse'),jdecode(''),'/3322/3343.html','true',[],'',''],
		['PAGE','3364',jdecode('Einzelstunden'),jdecode(''),'/3322/3364.html','true',[],'',''],
		['PAGE','3427',jdecode('Bones+for+life'),jdecode(''),'/3322/3427.html','true',[],'','']
	],'',''],
	['PAGE','3385',jdecode('Child%26%23x27%3BSpace'),jdecode(''),'/3385/index.html','true',[ 
		['PAGE','3406',jdecode('Babykurse+Child%26%23x27%3BSpace'),jdecode(''),'/3385/3406.html','true',[],'',''],
		['PAGE','3801',jdecode('Child%26%23x27%3BSpace+Einzelstunden'),jdecode(''),'/3385/3801.html','true',[],'','']
	],'',''],
	['PAGE','3822',jdecode('komplexe+Pflege'),jdecode(''),'/3822.html','true',[],'',''],
	['PAGE','3843',jdecode('Beratung'),jdecode(''),'/3843.html','true',[],'',''],
	['PAGE','3490',jdecode('G%C3%A4stebuch'),jdecode(''),'/3490.html','true',[],'',''],
	['PAGE','3511',jdecode('Kontakt'),jdecode(''),'/3511.html','true',[],'','']];
var siteelementCount=15;
theSitetree.topTemplateName='Plainly';
theSitetree.paletteFamily='DF506E';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='32125';
theSitetree.graphicsetId='13927';
theSitetree.contentColor='6e6e6d';
theSitetree.contentBGColor='fcf5f9';
var localeDef={
  language: 'de',
  country: 'CH'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Plainly',
				paletteFamily: 	'DF506E',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'32125',
				graphicsetId: 	'13927',
				contentColor: 	'6e6e6d',
				contentBGColor: 'fcf5f9',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2001',
internalId:  '',
customField: '20100713-071145'
};
webappMappings['7050']=webappMappings['7050-311']={
webappId:    '7050',
documentId:  '3448',
internalId:  '311',
customField: 'language:de;country:CH;'
};
webappMappings['7060']=webappMappings['7060-48adecb9a32828357722b40a533f6833']={
webappId:    '7060',
documentId:  '3469',
internalId:  '48adecb9a32828357722b40a533f6833',
customField: 'language:de;country:CH;'
};
webappMappings['7002']=webappMappings['7002-455']={
webappId:    '7002',
documentId:  '3490',
internalId:  '455',
customField: 'language:de;country:CH;'
};
webappMappings['7008']=webappMappings['7008-571']={
webappId:    '7008',
documentId:  '3511',
internalId:  '571',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3301',
internalId:  '',
customField: '20090225-192732'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3448',
internalId:  '',
customField: '20090211-125449'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3322',
internalId:  '',
customField: '20090225-174650'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3511',
internalId:  '',
customField: '20090210-232911'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '2001',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-2574625']={
webappId:    '1501',
documentId:  '2001',
internalId:  '2574625',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3469',
internalId:  '',
customField: '20100531-115156'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3343',
internalId:  '',
customField: '20100810-225439'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3364',
internalId:  '',
customField: '20100531-122349'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3427',
internalId:  '',
customField: '20100607-131944'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3385',
internalId:  '',
customField: '20100810-224858'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3406',
internalId:  '',
customField: '20100810-224912'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3801',
internalId:  '',
customField: '20100531-121350'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3822',
internalId:  '',
customField: '20100607-132103'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3843',
internalId:  '',
customField: '20100607-132117'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3490',
internalId:  '',
customField: '20100723-123559'
};
var canonHostname = 'wsc.genotec.ch';
var accountId     = 'AGT010IN2QXS';
var companyName   = 'HIMMELMOBIL+-+Mobilit%C3%A4t%2C+die+es+IN+sich+hat';
var htmlTitle	  = 'himmelmobil+-+Mobilit%C3%A4t+die+es+IN+sich+hat';
var metaKeywords  = 'feldenkreis%3B+feldenkrais%3B+Lernen%3B+Bewegung%3B+Verbesserung%3B+schmerzen%3B+Sport%3B+Kunst%3B+Leichtigkeit%3B+wahrnehmung%3B+Bewusstsein%3B+Bewusstheit%3B+Aufmerksamkeit%3B+Leistung%3B+Kraft%3B+Ausdauer%3B+Burn+out%3B+ersch%C3%B6pfung%3B+Wille%3B+Sp%C3%BCren%3B+F%C3%BChlen%3B+Orientierung%3B+';
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();
};
