/* [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','4201',jdecode('Start'),jdecode(''), jdecode('%2F4201.html'), 'true',[],'',''],
	['PAGE','16412',jdecode('Reiseangebote'),jdecode(''), jdecode('%2F16412%2Findex.html'), 'true',[ 
		['PAGE','20249',jdecode('Gleitschirmfliegen'),jdecode(''), jdecode('%2F16412%2F20249.html'), 'true',[],'',''],
		['PAGE','20228',jdecode('Canyoning'),jdecode(''), jdecode('%2F16412%2F20228.html'), 'true',[],'',''],
		['PAGE','20207',jdecode('Rafting'),jdecode(''), jdecode('%2F16412%2F20207.html'), 'true',[],'',''],
		['PAGE','23123',jdecode('Wandern+'),jdecode(''), jdecode('%2F16412%2F23123.html'), 'true',[],'',''],
		['PAGE','20144',jdecode('Radwandern+'),jdecode(''), jdecode('%2F16412%2F20144.html'), 'true',[],'',''],
		['PAGE','20165',jdecode('Wasserwandern+'),jdecode(''), jdecode('%2F16412%2F20165.html'), 'true',[],'',''],
		['PAGE','111095',jdecode('Tropical+Island'),jdecode(''), jdecode('%2F16412%2F111095.html'), 'true',[],'',''],
		['PAGE','99095',jdecode('Unterwegs+mit+Huskys'),jdecode(''), jdecode('%2F16412%2F99095.html'), 'true',[],'',''],
		['PAGE','39823',jdecode('AGB+Reise'),jdecode(''), jdecode('%2F16412%2F39823.html'), 'true',[],'','']
	],'',''],
	['PAGE','13912',jdecode('Taxi+%2F+Mietwagen'),jdecode(''), jdecode('%2F13912.html'), 'true',[],'',''],
	['PAGE','119947',jdecode('Mietfahrer+%2F+Kurier'),jdecode(''), jdecode('%2F119947%2Findex.html'), 'true',[ 
		['PAGE','123326',jdecode('AGB+Mietfahrer'),jdecode(''), jdecode('%2F119947%2F123326.html'), 'true',[],'','']
	],'',''],
	['PAGE','119926',jdecode('Shop'),jdecode(''), jdecode('%2F119926.html'), 'true',[],'',''],
	['PAGE','75965',jdecode('Termine+%2F+Kalender'),jdecode(''), jdecode('%2F75965.html'), 'true',[],'',''],
	['PAGE','12638',jdecode('Kontakt'),jdecode(''), jdecode('%2F12638.html'), 'true',[],'',''],
	['PAGE','93565',jdecode('G%C3%A4stebuch'),jdecode(''), jdecode('%2F93565.html'), 'true',[],'',''],
	['PAGE','110395',jdecode('Partner'),jdecode(''), jdecode('%2F110395.html'), 'true',[],'',''],
	['PAGE','106495',jdecode('Impressum'),jdecode(''), jdecode('%2F106495.html'), 'true',[],'','']];
var siteelementCount=20;
theSitetree.topTemplateName='Folder';
theSitetree.paletteFamily='A5C14F';
theSitetree.keyvisualId='11434';
theSitetree.keyvisualName='kv_11434.jpg';
theSitetree.fontsetId='31974';
theSitetree.graphicsetId='13809';
theSitetree.contentColor='414E18';
theSitetree.contentBGColor='A5C14F';
var localeDef={
  language: 'de',
  country: 'DE'
};
var prodDef={
  wl_name: 'alfahosting',
  product: 'WSCSYSSSSLY0XNQ8'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Folder',
				paletteFamily: 	'A5C14F',
				keyvisualId: 	'11434',
				keyvisualName: 	'kv_11434.jpg',
				fontsetId: 		'31974',
				graphicsetId: 	'13809',
				contentColor: 	'414E18',
				contentBGColor: 'A5C14F',
				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:  '106495',
internalId:  '',
customField: '20100520-072001'
};
webappMappings['7008']=webappMappings['7008-682']={
webappId:    '7008',
documentId:  '12638',
internalId:  '682',
customField: 'language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4201',
internalId:  '',
customField: '20110829-133016'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39823',
internalId:  '',
customField: '20101112-132349'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '119926',
internalId:  '',
customField: '20110801-102233'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23123',
internalId:  '',
customField: '20110801-132141'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '99095',
internalId:  '',
customField: '20110801-132657'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '93565',
internalId:  '',
customField: '20110801-102541'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '119947',
internalId:  '',
customField: '20110909-123837'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16412',
internalId:  '',
customField: '20110801-130721'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12638',
internalId:  '',
customField: '20110801-131442'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13912',
internalId:  '',
customField: '20110801-131132'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20144',
internalId:  '',
customField: '20110829-132717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20165',
internalId:  '',
customField: '20110829-132638'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20207',
internalId:  '',
customField: '20110829-131807'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20228',
internalId:  '',
customField: '20110829-131612'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20249',
internalId:  '',
customField: '20110829-124519'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75965',
internalId:  '',
customField: '20110801-131357'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '110395',
internalId:  '',
customField: '20110801-102657'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '111095',
internalId:  '',
customField: '20110829-130606'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '123326',
internalId:  '',
customField: '20101112-132202'
};
var webAppHostname = 'cgi-wsc.alfahosting.de:80';
var canonHostname = 'wsc.alfahosting.de';
var accountId     = 'AAHS10INXE5G';
var companyName   = 'Reise+-+Mietwagen+-+Mietfahrer+-+Kurier+-+Shop';
var htmlTitle	  = 'und+ab+gehts';
var metaKeywords  = 'Reise%2C+Mietwagen%2C+Mietfahrer%2C+Kurier%2C+Shop';
var metaContents  = 'Reise%2C+Mietwagen%2C+Mietfahrer%2C+Kurier%2C+Shop';
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();
};

