/* [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('Secret+Dance'),jdecode(''), jdecode('%2F2001.html'), 'true',[],'',''],
	['PAGE','2052',jdecode('News'),jdecode(''), jdecode('%2F2052.html'), 'true',[],'',''],
	['PAGE','27201',jdecode('Neuer%C3%B6ffnung+19.+Dezember+2009'),jdecode(''), jdecode('%2F27201.html'), 'true',[],'',''],
	['PAGE','2073',jdecode('Angebot'),jdecode(''), jdecode('%2F2073.html'), 'true',[],'',''],
	['PAGE','5001',jdecode('Talentf%C3%B6rderung'),jdecode(''), jdecode('%2F5001.html'), 'true',[],'',''],
	['PAGE','2094',jdecode('Team'),jdecode(''), jdecode('%2F2094.html'), 'true',[],'',''],
	['PAGE','2115',jdecode('Kursplan'),jdecode(''), jdecode('%2F2115.html'), 'true',[],'',''],
	['PAGE','10801',jdecode('Preisliste'),jdecode(''), jdecode('%2F10801.html'), 'true',[],'',''],
	['PAGE','33401',jdecode('Ferienplan'),jdecode(''), jdecode('%2F33401.html'), 'true',[],'',''],
	['PAGE','49001',jdecode('Workshops'),jdecode(''), jdecode('%2F49001.html'), 'true',[],'',''],
	['PAGE','48101',jdecode('Shows+%26+Events'),jdecode(''), jdecode('%2F48101.html'), 'true',[],'',''],
	['PAGE','2136',jdecode('Buchungen'),jdecode(''), jdecode('%2F2136.html'), 'true',[],'',''],
	['PAGE','63701',jdecode('Unsere+Meilensteine'),jdecode(''), jdecode('%2F63701.html'), 'true',[],'',''],
	['PAGE','2157',jdecode('Fotos+%26+Video+Gallery'),jdecode(''), jdecode('%2F2157.html'), 'true',[],'',''],
	['PAGE','58201',jdecode('Raumvermietung'),jdecode(''), jdecode('%2F58201.html'), 'true',[],'',''],
	['PAGE','2178',jdecode('Lageplan'),jdecode(''), jdecode('%2F2178.html'), 'true',[],'',''],
	['PAGE','2199',jdecode('Routenplaner'),jdecode(''), jdecode('%2F2199.html'), 'true',[],'',''],
	['PAGE','2220',jdecode('Onlineshop'),jdecode(''), jdecode('%2F2220.html'), 'true',[],'',''],
	['PAGE','2241',jdecode('G%C3%A4stebuch'),jdecode(''), jdecode('%2F2241.html'), 'true',[],'',''],
	['PAGE','5022',jdecode('Jobs'),jdecode(''), jdecode('%2F5022.html'), 'true',[],'',''],
	['PAGE','2262',jdecode('Kontakt'),jdecode(''), jdecode('%2F2262.html'), 'true',[],'',''],
	['PAGE','2283',jdecode('Links'),jdecode(''), jdecode('%2F2283.html'), 'true',[],'','']];
var siteelementCount=22;
theSitetree.topTemplateName='Multimedia';
theSitetree.paletteFamily='AD3703';
theSitetree.keyvisualId='11113';
theSitetree.keyvisualName='kv_11113.jpg';
theSitetree.fontsetId='32005';
theSitetree.graphicsetId='13834';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='AD3703';
var localeDef={
  language: 'de',
  country: 'CH'
};
var prodDef={
  wl_name: 'bluewin',
  product: 'WSCBLUSSSLYTC2MH'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Multimedia',
				paletteFamily: 	'AD3703',
				keyvisualId: 	'11113',
				keyvisualName: 	'kv_11113.jpg',
				fontsetId: 		'32005',
				graphicsetId: 	'13834',
				contentColor: 	'FFFFFF',
				contentBGColor: 'AD3703',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '2178',
internalId:  'location',
customField: 'language:de;country:CH;isIncluded:true;'
};
webappMappings['2002']=webappMappings['2002-routing']={
webappId:    '2002',
documentId:  '2199',
internalId:  'routing',
customField: 'de_CH'
};
webappMappings['4001']=webappMappings['4001-30419954']={
webappId:    '4001',
documentId:  '2220',
internalId:  '30419954',
customField: 'language:de;country:CH;'
};
webappMappings['1002']=webappMappings['1002-2241abw330inet1r']={
webappId:    '1002',
documentId:  '2241',
internalId:  '2241abw330inet1r',
customField: 'icq=false'
};
webappMappings['7008']=webappMappings['7008-7895']={
webappId:    '7008',
documentId:  '2262',
internalId:  '7895',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2001',
internalId:  '',
customField: '20120109-134230'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2052',
internalId:  '',
customField: '20120109-135119'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2220',
internalId:  '',
customField: '20101208-155937'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2115',
internalId:  '',
customField: '20120109-140046'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2178',
internalId:  '',
customField: '20091121-035528'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2199',
internalId:  '',
customField: '20091121-041139'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '2001',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2073',
internalId:  '',
customField: '20120109-140857'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5001',
internalId:  '',
customField: '20100813-115006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2094',
internalId:  '',
customField: '20111017-154613'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2136',
internalId:  '',
customField: '20091121-035211'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5022',
internalId:  '',
customField: '20100217-142344'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2262',
internalId:  '',
customField: '20110817-104629'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2241',
internalId:  '',
customField: '20091121-040310'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2283',
internalId:  '',
customField: '20100628-151337'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2157',
internalId:  '',
customField: '20111011-120355'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10801',
internalId:  '',
customField: '20111221-154029'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48101',
internalId:  '',
customField: '20111028-084842'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27201',
internalId:  '',
customField: '20100604-121409'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33401',
internalId:  '',
customField: '20111221-154000'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58201',
internalId:  '',
customField: '20101221-155205'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63701',
internalId:  '',
customField: '20110620-110028'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49001',
internalId:  '',
customField: '20111011-120140'
};
var webAppHostname = 'cgi.hpt001.bluewin.ch:80';
var canonHostname = 'hptworkerdb01a.bluewin.ch';
var accountId     = 'ABW330INET1R';
var companyName   = 'Secret+Dance+%26+Secret+Stars';
var htmlTitle	  = '';
var metaKeywords  = 'bluewin%0D%0A%0D%0Agoogle%0D%0A%0D%0ATanzschule%0D%0A%0D%0ATanzschule+Lyss%0D%0A%0D%0Asecretdance%0D%0A%0D%0ASecret+Dance%0D%0A%0D%0ASecret+Stars%0D%0A%0D%0AHip+Hop+%0D%0A%0D%0ASalsa%0D%0A%0D%0ARagga+Dance%0D%0A%0D%0AJazz%0D%0A%0D%0AModern+Dance%0D%0A%0D%0ABreakdance%0D%0A%0D%0AYoga%0D%0A%0D%0AAfro+Dance%0D%0A%0D%0AOrientalisch%0D%0A%0D%0ABollywood+Dance%0D%0A%0D%0AWalzer%0D%0A%0D%0APaartanz%0D%0A%0D%0ABallett%0D%0A%0D%0AKrumping%0D%0A%0D%0Atanzen%0D%0A%0D%0Adance%0D%0A%0D%0ABewegung%0D%0A%0D%0AAbnehmen';
var metaContents  = 'bluewin%0D%0A%0D%0Agoogle%0D%0A%0D%0ATanzschule%0D%0A%0D%0ATanzschule+Lyss%0D%0A%0D%0Asecretdance%0D%0A%0D%0ASecret+Dance%0D%0A%0D%0ASecret+Stars%0D%0A%0D%0AHip+Hop+%0D%0A%0D%0ASalsa%0D%0A%0D%0ARagga+Dance%0D%0A%0D%0AJazz%0D%0A%0D%0AModern+Dance%0D%0A%0D%0ABreakdance%0D%0A%0D%0AYoga%0D%0A%0D%0AAfro+Dance%0D%0A%0D%0AOrientalisch%0D%0A%0D%0ABollywood+Dance%0D%0A%0D%0AWalzer%0D%0A%0D%0APaartanz%0D%0A%0D%0ABallett%0D%0A%0D%0AKrumping%0D%0A%0D%0Atanzen%0D%0A%0D%0Adance%0D%0A%0D%0ABewegung%0D%0A%0D%0AAbnehmen';
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();
};

