/* [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','4559',jdecode('Home'),jdecode(''),'/4559.html','true',[],'',''],
	['PAGE','9328',jdecode('Jahresprogramm'),jdecode(''),'/9328/index.html','true',[ 
		['PAGE','83904',jdecode('Jahresprogramm+%28Form+followup+page%29'),jdecode(''),'/9328/83904.html','false',[],'',''],
		['PAGE','19003',jdecode('Kreistanz+Sitterdorf'),jdecode(''),'/9328/19003.html','true',[],'',''],
		['PAGE','75403',jdecode('JUSESO+Tanzanl%C3%A4sse'),jdecode(''),'/9328/75403.html','true',[],'',''],
		['PAGE','98598',jdecode('ARThur'),jdecode(''),'/9328/98598.html','true',[],'','']
	],'',''],
	['PAGE','9301',jdecode('Lehrgang+Kreistanz'),jdecode(''),'/9301/index.html','true',[ 
		['PAGE','89747',jdecode('Lehrgang+Kreistanz+%28Form+followup+page%29'),jdecode(''),'/9301/89747.html','false',[],'',''],
		['PAGE','112206',jdecode('Entscheidungshilfe'),jdecode(''),'/9301/112206.html','true',[],'',''],
		['PAGE','17103',jdecode('Lehrgangabsolventen'),jdecode(''),'/9301/17103.html','true',[],'',''],
		['PAGE','45730',jdecode('%22rockig%22'),jdecode(''),'/9301/45730.html','true',[],'',''],
		['PAGE','45757',jdecode('%22neu-%2Ftraditionell%22'),jdecode(''),'/9301/45757.html','true',[],'',''],
		['PAGE','45784',jdecode('%22meditativ%22'),jdecode(''),'/9301/45784.html','true',[],'',''],
		['PAGE','46603',jdecode('Circle+Dance'),jdecode(''),'/9301/46603.html','true',[],'','']
	],'',''],
	['PAGE','109568',jdecode('LehrerInnen-Fortbildung'),jdecode(''),'/109568.html','true',[],'',''],
	['PAGE','9382',jdecode('Kontakt'),jdecode(''),'/9382/index.html','true',[ 
		['PAGE','82201',jdecode('Kontakt+%28Form+followup+page%29'),jdecode(''),'/9382/82201.html','false',[],'','']
	],'',''],
	['PAGE','71203',jdecode('Impulse'),jdecode(''),'/71203/index.html','true',[ 
		['PAGE','19808',jdecode('Tanz-Texte+und+Geschichten'),jdecode(''),'/71203/19808.html','true',[],'',''],
		['PAGE','113101',jdecode('Tanz+Zitate'),jdecode(''),'/71203/113101.html','true',[],'','']
	],'',''],
	['PAGE','9436',jdecode('Fotogalerie'),jdecode(''),'/9436.html','true',[],'',''],
	['PAGE','110643',jdecode('LOGO+TanzKreisTanz'),jdecode(''),'/110643.html','true',[],'',''],
	['PAGE','110799',jdecode('Tanzkreise+CH-D-A'),jdecode(''),'/110799.html','true',[],'',''],
	['PAGE','9409',jdecode('Links'),jdecode(''),'/9409.html','true',[],'',''],
	['PAGE','72103',jdecode('Presse'),jdecode(''),'/72103.html','true',[],'',''],
	['PAGE','113959',jdecode('Shop'),jdecode(''),'/113959.html','true',[],'',''],
	['PAGE','113313',jdecode('Yoga+Massage'),jdecode(''),'/113313.html','true',[],'',''],
	['PAGE','96242',jdecode('English'),jdecode(''),'/96242.html','true',[],'','']];
var siteelementCount=28;
theSitetree.topTemplateName='Startup';
theSitetree.paletteFamily='006633';
theSitetree.keyvisualId='1400';
theSitetree.keyvisualName='rose.jpg';
theSitetree.fontsetId='235';
theSitetree.graphicsetId='280';
theSitetree.contentColor='A00000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'de',
  country: 'CH'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Startup',
				paletteFamily: 	'006633',
				keyvisualId: 	'1400',
				keyvisualName: 	'rose.jpg',
				fontsetId: 		'235',
				graphicsetId: 	'280',
				contentColor: 	'A00000',
				contentBGColor: 'FFFFFF',
				a_color: 		'006633',
				b_color: 		'333333',
				c_color: 		'000000',
				d_color: 		'FF0000',
				e_color: 		'FF0000',
				f_color: 		'FF0000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1501']=webappMappings['1501-2144011']={
webappId:    '1501',
documentId:  '4559',
internalId:  '2144011',
customField: '1501'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4559',
internalId:  '1006',
customField: '1006'
};
webappMappings['1009']=webappMappings['1009-4806344']={
webappId:    '1009',
documentId:  '82201',
internalId:  '4806344',
customField: 'isFollowupPage:true;documentId:9382;'
};
webappMappings['7008']=webappMappings['7008-2001']={
webappId:    '7008',
documentId:  '9328',
internalId:  '2001',
customField: 'language:de;country:CH;'
};
webappMappings['7008']=webappMappings['7008-2002']={
webappId:    '7008',
documentId:  '9382',
internalId:  '2002',
customField: 'language:de;country:CH;'
};
webappMappings['1009']=webappMappings['1009-4806344']={
webappId:    '1009',
documentId:  '83904',
internalId:  '4806344',
customField: 'isFollowupPage:true;documentId:9328;'
};
webappMappings['7008']=webappMappings['7008-2003']={
webappId:    '7008',
documentId:  '9301',
internalId:  '2003',
customField: 'language:de;country:CH;'
};
webappMappings['1009']=webappMappings['1009-5297669']={
webappId:    '1009',
documentId:  '89747',
internalId:  '5297669',
customField: 'isFollowupPage:true;documentId:9301;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4559',
internalId:  '',
customField: '20100226-093455'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '113959',
internalId:  '',
customField: '20091016-103410'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9328',
internalId:  '',
customField: '20100305-093756'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '83904',
internalId:  '',
customField: '20050113-115605'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19003',
internalId:  '',
customField: '20100226-091649'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75403',
internalId:  '',
customField: '20070419-084817'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98598',
internalId:  '',
customField: '20090514-102025'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9301',
internalId:  '',
customField: '20100226-092607'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89747',
internalId:  '',
customField: '20050412-171650'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '112206',
internalId:  '',
customField: '20090122-154141'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17103',
internalId:  '',
customField: '20090726-112419'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45730',
internalId:  '',
customField: '20080722-221231'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45757',
internalId:  '',
customField: '20080722-221324'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45784',
internalId:  '',
customField: '20081024-145015'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46603',
internalId:  '',
customField: '20060731-153340'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '113101',
internalId:  '',
customField: '20090823-131244'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '113313',
internalId:  '',
customField: '20100226-091805'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '109568',
internalId:  '',
customField: '20091227-150816'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9382',
internalId:  '',
customField: '20091227-110455'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82201',
internalId:  '',
customField: '20050111-132820'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71203',
internalId:  '',
customField: '20100105-113933'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9436',
internalId:  '',
customField: '20090823-131759'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19808',
internalId:  '',
customField: '20100226-092802'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '110643',
internalId:  '',
customField: '20090112-143558'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '110799',
internalId:  '',
customField: '20100305-092751'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9409',
internalId:  '',
customField: '20091227-105037'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72103',
internalId:  '',
customField: '20091227-150311'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '96242',
internalId:  '',
customField: '20071014-151554'
};
var canonHostname = 'hptworkerdb01a.bluewin.ch';
var accountId     = 'ABW0X0INXVNU';
var companyName   = 'Plattform+f%C3%BCr+Kreistanz';
var htmlTitle	  = '';
var metaKeywords  = 'Kreistanz+Circledance+rockig+traditionell+meditativ+K%3Frperarbeit+Volkstanz+Sakraltanz+Improvisation+New+Dance+Welttanzfestival+Tanz+Gruppentanz+Tanzferien+Workshops+Folkdance+Folk+Dance+Circle+Dance+Tanz+CDs+Tanzb%3Fcher+Tanzkarten+Tanzverlag+Tanzprodukte+Finnische+Messe+Finn.+Messe+JUSESO+Stocktanz+Schleiertanz+OKL+St.+Gallen+Offene+Kirche+tanzen+Adrian+Gut+Lehrgang+Ausbildung+Fortbildung+Schule+Bildung+Seminare+Seminar++Tanzkarten+Verlag+Tanzb%3Fcher+Karten+Kunstkarten+Kartensortiment+ChoRa+chora+CHORA+Tanzverlag+Kalender+Taschen-Kalender+Monatskalender+Tanzkalender+Wien+Innsbruck+Schweiz+Oesterreich+Tirol+Sue+Schell+CD+Wien+Grossrussbach+Tanzkurse+Kreistanzkurse+Tanzseminare+Kreistanzseminare+Tanzferien+Tanzreisen+Adrian+Gut+ChoRa+chora+Gut+Adrian+tanzen+Tanztexte+Sacreddance+Symbole+Fr%3Fhling+Bewegung+Leben+Freude+K%3Frperarbeit+Finnische+Messe+Claudia+Roemmel+Finn.+Messe+Lieder+der+Stille+T%3Fnze+der+Stille+Ikaria+Line+Dance+JUSESO+Juseso+CD+Grossrussbach+St.+Bernhard+Lassalle+Haus+Sakraler+Tanz+Herbst+Winter+Danceslipper+Tanzschuhe+Karten+T-shirtsPlattform+Seminare+Tanz+Organisation+Folkdance+Volkstanz+Ethnicdance+Yoga+Massage+Thai+Yoga+Yoga-Massage+Thai-Yoga-Massage+Meret+Eglof+Nathalie+Neuenschwander+Sabine+Reisinger+Herta+Erhart+';
var metaContents  = 'Lehrgang+und+Workshops+in+Kreis-+und+Gruppentanz+%2C+Tanzferien%2C+Yoga+Massage%2C+K%C3%B6rperarbeit';
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();
};
