/* [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','601',jdecode('Home'),jdecode(''),'/601.html','true',[],'',''],
	['PAGE','5001',jdecode('Sie+bestimmen+den+Kurs+++'),jdecode(''),'/5001.html','true',[],'',''],
	['PAGE','5064',jdecode('Angebote%2C+Inhalte'),jdecode(''),'/5064/index.html','true',[ 
		['PAGE','5085',jdecode('Teambildung'),jdecode(''),'/5064/5085.html','true',[],'',''],
		['PAGE','5106',jdecode('F%C3%BChrung'),jdecode(''),'/5064/5106.html','true',[],'',''],
		['PAGE','5127',jdecode('Ihre+individuellen+W%C3%BCnsche'),jdecode(''),'/5064/5127.html','true',[],'','']
	],'',''],
	['PAGE','5148',jdecode('Das+Schiff+-+Ihr+Kursraum'),jdecode(''),'/5148.html','true',[],'',''],
	['PAGE','5232',jdecode('Ihr+Trainer+und+Skipper'),jdecode(''),'/5232/index.html','true',[ 
		['PAGE','5253',jdecode('Kontakt'),jdecode(''),'/5232/5253/index.html','true',[ 
			['PAGE','15701',jdecode('Kontakt+%28Folgeseite%29'),jdecode(''),'/5232/5253/15701.html','false',[],'','']
		],'','']
	],'',''],
	['PAGE','5274',jdecode('Besonderes%2C+Preise+%2F+Links'),jdecode(''),'/5274.html','true',[],'',''],
	['PAGE','46301',jdecode('Neue+Seminare'),jdecode(''),'/46301/index.html','true',[ 
		['PAGE','46322',jdecode('Themen'),jdecode(''),'/46301/46322.html','true',[],'',''],
		['PAGE','46343',jdecode('Termine'),jdecode(''),'/46301/46343.html','true',[],'','']
	],'','']];
var siteelementCount=14;
theSitetree.topTemplateName='Movement';
theSitetree.paletteFamily='003390';
theSitetree.keyvisualId='1819';
theSitetree.keyvisualName='kv_dummy.jpg';
theSitetree.fontsetId='289';
theSitetree.graphicsetId='353';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='003390';
var localeDef={
  language: 'de',
  country: 'CH'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Movement',
				paletteFamily: 	'003390',
				keyvisualId: 	'1819',
				keyvisualName: 	'kv_dummy.jpg',
				fontsetId: 		'289',
				graphicsetId: 	'353',
				contentColor: 	'FFFFFF',
				contentBGColor: '003390',
				a_color: 		'003390',
				b_color: 		'000000',
				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['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '601',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5001',
internalId:  '',
customField: '20080614-070852'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46343',
internalId:  '',
customField: '20100114-122451'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '601',
internalId:  '',
customField: '20090207-102621'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5064',
internalId:  '',
customField: '20090207-112613'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5085',
internalId:  '',
customField: '20080614-070956'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5106',
internalId:  '',
customField: '20080614-071024'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5127',
internalId:  '',
customField: '20080614-070810'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5148',
internalId:  '',
customField: '20071220-103341'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5232',
internalId:  '',
customField: '20090630-073151'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5253',
internalId:  '',
customField: '20090812-120409'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15701',
internalId:  '',
customField: '20070523-143436'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5274',
internalId:  '',
customField: '20100415-121222'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46301',
internalId:  '',
customField: '20100218-071916'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46322',
internalId:  '',
customField: '20100114-122417'
};
webappMappings['7008']=webappMappings['7008-4672']={
webappId:    '7008',
documentId:  '5253',
internalId:  '4672',
customField: 'language:de;country:CH;'
};
var canonHostname = 'hptworkerdb01b.bluewin.ch';
var accountId     = 'ABW0X0IN238Q';
var companyName   = 'www.seminaryacht.com';
var htmlTitle	  = 'events+und+seminare+auf+dem+bodensee%2C+seminaryacht';
var metaKeywords  = 'Key+Account+Management%2C+Event%2C+Oceanis+323%2C+Segelkenntnisse%2C+Kurs%2C+Rahmenprogramm%2C+Veranstaltung%2C+Sitzung%2C+Workshop%2C+Motivation%2C+Kader%2C+Trainer%2C+Coach%2C+Coaching%2C+Teamcoaching%2C+Einzelcoaching%2C+Segelerfahrung%2C+Projektleitung%2C+Alltagssituation%2C+Organisation%2C+Ablauf%2C+Regeln%2C+spielerisch%2C+lernen%2C+erleben%2C+Zukunft%2C+Erfolg%2C+Theorie%2C+Praxis%2C+Delegation%2C+F%EF%BF%BDhrung%2C+Mitarbeitergespr%EF%BF%BDche%2C+Rollenspiel%2C+Seminarschiff%2C+Seminar+Yacht%2C+Seminar-Yacht%2C+Seminarjacht%2C+Trainingsschiff%2C+Bodenseeschiff%2C+Managementtraining%2C+F%EF%BF%BDhrungsseminar%2C+Teambildung%2C+Seminaralternative%2C+Event+auf+Bodensee%2C+Segelevent%2C+Egli+Thomas%2C+Region+Bodensee%2C+www.seminaryacht.ch%2C+Beneteau%2C+optimas%2C+Aus-+und+Weiterbildung%2C+Management+Seminare%2C+AGB%2C+G%EF%BF%BDstebuch%2C+Ausflug%2C+Party%2C+Freizeit%2C+Bodensee%2C+Spass%2C+Hochzeit%2C+Jubil%EF%BF%BDum%2C+Wasser%2C+See%2C+geniessen%2C+abschalten%2C+entspannen%2C+Geschenk%2C+Geschenksidee%2C+Geburtstagsgeschenk%2C+Weihnachtsgeschenk%2C+CRM%2C+Kommunikation%2C+Kommunikations-Berater';
var metaContents  = 'CRM%2C+Event%2C+Segelyacht+auf+dem+Bodensee%2C+keine+Segelkenntnisse+notwendig%2C+Seminare%2C+Training%2C+Teambildung%2C+F%EF%BF%BDhrung%2C+Coaching%2C+Einzelcoaching%2C+Gruppencoaching%2C+Region+Bodensee%2C+Alternative+in+Weiterbildung+und+Seminar%2C+flexible+Themen+und+Angebote+im+Schulungsbereich%2C+optimAS%2C+Managementseminare+auf+dem+Bodensee%2C+Key+Account+Management%2C+optimas%2C+Aus-+und+Weiterbildung%2C+Management+Seminare%2C+Sie+bestimmen+den+Kurs%2C+SE%EF%BF%BDERA%2C+SENERA%2C+Organisation%2C+Ordnung%2C+Ablauf+1%3A1+erfahren%2C+erleben%2C+optimieren%2C+Wir+alle+sitzen+im+gleichen+Boot%2C+spielerisch+erleben%2C+Ziele+erreichen%2C+Rahmenprogramm%2C+Teambildungsprozess%2C+Team+ist+wichtig%2C+CRM+Berater%2C+Referat%2C+Moderation%2C+Rollenspiel+%EF%BF%BDben%2C+Ausflug%2C+Freizeit%2C+Hochzeit%2C+Geschenk%2C+besonderes+Geschenk%2C+segeln+mit+Skipper+Bodensee%2C';
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();
};

