/* [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','2501',jdecode('Home'),jdecode(''),'/2501.html','true',[],'',''],
	['PAGE','4343',jdecode('%C3%9Cber+uns'),jdecode(''),'/4343.html','true',[],'',''],
	['PAGE','9657',jdecode('Tontechnik'),jdecode(''),'/9657.html','true',[],'',''],
	['PAGE','9957',jdecode('Lichttechnik'),jdecode(''),'/9957.html','true',[],'',''],
	['PAGE','10157',jdecode('B%C3%BChnen'),jdecode(''),'/10157.html','true',[],'',''],
	['PAGE','10357',jdecode('Partyzelte'),jdecode(''),'/10357.html','true',[],'',''],
	['PAGE','3943',jdecode('Fotos'),jdecode(''),'/3943.html','true',[],'',''],
	['PAGE','7257',jdecode('Referenzen'),jdecode(''),'/7257.html','true',[],'',''],
	['PAGE','18157',jdecode('K%C3%96LU-Entertainment'),jdecode(''),'/18157.html','true',[],'',''],
	['PAGE','5243',jdecode('Links'),jdecode(''),'/5243.html','true',[],'',''],
	['PAGE','6857',jdecode('Kontakt'),jdecode(''),'/6857.html','true',[],'',''],
	['PAGE','4427',jdecode('Impressum+%2F+Disclaimer'),jdecode(''),'/4427.html','true',[],'','']];
var siteelementCount=12;
theSitetree.topTemplateName='Displace';
theSitetree.paletteFamily='2E2E2E';
theSitetree.keyvisualId='11075';
theSitetree.keyvisualName='kv_11075.jpg';
theSitetree.fontsetId='31958';
theSitetree.graphicsetId='13798';
theSitetree.contentColor='D8D8D5';
theSitetree.contentBGColor='2E2E2E';
var localeDef={
  language: 'de',
  country: 'DE'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Displace',
				paletteFamily: 	'2E2E2E',
				keyvisualId: 	'11075',
				keyvisualName: 	'kv_11075.jpg',
				fontsetId: 		'31958',
				graphicsetId: 	'13798',
				contentColor: 	'D8D8D5',
				contentBGColor: '2E2E2E',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2501',
internalId:  '',
customField: '20091207-084241'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '2501',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-765846']={
webappId:    '1501',
documentId:  '2501',
internalId:  '765846',
customField: '1501'
};
webappMappings['7060']=webappMappings['7060-0ac9e5a9d71602fe93c0444952a8c085']={
webappId:    '7060',
documentId:  '3943',
internalId:  '0ac9e5a9d71602fe93c0444952a8c085',
customField: 'language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9657',
internalId:  '',
customField: '20091020-104611'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3943',
internalId:  '',
customField: '20091020-110404'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18157',
internalId:  '',
customField: '20091225-094327'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4343',
internalId:  '',
customField: '20090225-115539'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4427',
internalId:  '',
customField: '20090115-131724'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5243',
internalId:  '',
customField: '20100510-075531'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6857',
internalId:  '',
customField: '20090114-165331'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7257',
internalId:  '',
customField: '20091109-125052'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9957',
internalId:  '',
customField: '20091020-104941'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10157',
internalId:  '',
customField: '20091020-105253'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10357',
internalId:  '',
customField: '20090118-181816'
};
var canonHostname = 'wsc.alfahosting.de';
var accountId     = 'AAHS10INX2ZR';
var companyName   = 'PARK+Showtechnik+++++-+Service+f%C3%BCr+Events+-';
var htmlTitle	  = 'PARK+Showtechnik';
var metaKeywords  = 'B%C3%BChnen%2C+Zelte%2C+Beschallung%2C+Ton%2C+Licht%2C+Lasershow';
var metaContents  = 'B%C3%BChnenverleih%2C+Zeltverleih%2C+Beschallungsanlagen%2C+Lichtanlagen%2C+Lasershow';
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();
};
