/* [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','501',jdecode('Home'),jdecode(''),'/501.html','true',[],'',''],
	['PAGE','552',jdecode('News'),jdecode(''),'/552.html','true',[],'',''],
	['PAGE','573',jdecode('Aswad+Nashim'),jdecode(''),'/573/index.html','true',[ 
		['PAGE','2101',jdecode('Marion'),jdecode(''),'/573/2101.html','true',[],'','']
	],'',''],
	['PAGE','594',jdecode('Zahron'),jdecode(''),'/594/index.html','true',[ 
		['PAGE','2122',jdecode('Evi'),jdecode(''),'/594/2122.html','true',[],'','']
	],'',''],
	['PAGE','2143',jdecode('Freunde'),jdecode(''),'/2143/index.html','true',[ 
		['PAGE','97001',jdecode('Mayroun'),jdecode(''),'/2143/97001.html','true',[],'',''],
		['PAGE','90401',jdecode('Momo'),jdecode(''),'/2143/90401.html','true',[],'',''],
		['PAGE','79901',jdecode('Accomo'),jdecode(''),'/2143/79901.html','true',[],'',''],
		['PAGE','81101',jdecode('Dakar'),jdecode(''),'/2143/81101.html','true',[],'',''],
		['PAGE','103001',jdecode('Camus+de+Charme'),jdecode(''),'/2143/103001.html','true',[],'',''],
		['PAGE','48101',jdecode('Icare+de+la+brasserie'),jdecode(''),'/2143/48101.html','true',[],'',''],
		['PAGE','63501',jdecode('Vroni+M%C3%BCnger+und+Cracks'),jdecode(''),'/2143/63501.html','true',[],'',''],
		['PAGE','4201',jdecode('Tabaschin'),jdecode(''),'/2143/4201.html','true',[],'',''],
		['PAGE','5601',jdecode('Congo'),jdecode(''),'/2143/5601.html','true',[],'',''],
		['PAGE','7022',jdecode('Supergrooms'),jdecode(''),'/2143/7022.html','true',[],'',''],
		['PAGE','12701',jdecode('Team+Bernhard'),jdecode(''),'/2143/12701.html','true',[],'','']
	],'',''],
	['PAGE','615',jdecode('Distanzreiten'),jdecode(''),'/615/index.html','true',[ 
		['PAGE','13801',jdecode('Was+ist+das%3F'),jdecode(''),'/615/13801.html','true',[],'',''],
		['PAGE','33101',jdecode('Claro+%26%23x27%3B06'),jdecode(''),'/615/33101.html','true',[],'',''],
		['PAGE','33122',jdecode('Holziken+%26%23x27%3B06'),jdecode(''),'/615/33122.html','true',[],'',''],
		['PAGE','52601',jdecode('Sainte+marie+de+la+mer+%26%23x27%3B08'),jdecode(''),'/615/52601.html','true',[],'',''],
		['PAGE','59201',jdecode('Gossau+ZH+%26%23x27%3B08'),jdecode(''),'/615/59201.html','true',[],'',''],
		['PAGE','74101',jdecode('Saint+Galmier+%26%23x27%3B08'),jdecode(''),'/615/74101.html','true',[],'',''],
		['PAGE','85601',jdecode('Junioren-EM+Oviedo'),jdecode(''),'/615/85601.html','true',[],'',''],
		['PAGE','87901',jdecode('Schweizermeisterschaft+Iragna+08'),jdecode(''),'/615/87901.html','true',[],'',''],
		['PAGE','126801',jdecode('Compi%C3%A8gne+%26%23x27%3B09'),jdecode(''),'/615/126801.html','true',[],'',''],
		['PAGE','137801',jdecode('EM+Assisi+2009'),jdecode(''),'/615/137801.html','true',[],'','']
	],'',''],
	['PAGE','636',jdecode('Bildergalerie'),jdecode(''),'/636/index.html','true',[ 
		['PAGE','22301',jdecode('Distanzreiten'),jdecode(''),'/636/22301.html','true',[],'',''],
		['PAGE','22322',jdecode('mal+etwas+anders...'),jdecode(''),'/636/22322.html','true',[],'',''],
		['PAGE','144501',jdecode('Nashim+10.+Okt.+09'),jdecode(''),'/636/144501.html','true',[],'',''],
		['PAGE','134601',jdecode('Jura+22.%2F23.+August'),jdecode(''),'/636/134601.html','true',[],'',''],
		['PAGE','109401',jdecode('Winterkurs+15.+M%C3%A4rz+2009'),jdecode(''),'/636/109401.html','true',[],'',''],
		['PAGE','91701',jdecode('Shooting+7.11.2008'),jdecode(''),'/636/91701.html','true',[],'','']
	],'',''],
	['PAGE','13822',jdecode('wichtige+Links'),jdecode(''),'/13822.html','true',[],'',''],
	['PAGE','66801',jdecode('Kontakt'),jdecode(''),'/66801.html','true',[],'',''],
	['PAGE','2006',jdecode('G%C3%A4stebuch'),jdecode(''),'/2006/index.html','true',[ 
		['PAGE','2001',jdecode('Eintr%C3%A4ge'),jdecode(''),'/2006/2001.html','false',[],'','']
	],'','']];
var siteelementCount=40;
theSitetree.topTemplateName='Bound';
theSitetree.paletteFamily='4D5022';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10831';
theSitetree.graphicsetId='11288';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='787F42';
var localeDef={
  language: 'de',
  country: 'CH'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Bound',
				paletteFamily: 	'4D5022',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10831',
				graphicsetId: 	'11288',
				contentColor: 	'FFFFFF',
				contentBGColor: '787F42',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1002']=webappMappings['1002-2006abw0x0inek2i']={
webappId:    '1002',
documentId:  '2006',
internalId:  '2006abw0x0inek2i',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '501',
internalId:  '',
customField: '20100307-155158'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '501',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '552',
internalId:  '',
customField: '20100414-180109'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '573',
internalId:  '',
customField: '20091007-081447'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2101',
internalId:  '',
customField: '20090802-114811'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '594',
internalId:  '',
customField: '20081128-211614'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2122',
internalId:  '',
customField: '20090802-114944'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2143',
internalId:  '',
customField: '20081117-202416'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '97001',
internalId:  '',
customField: '20091213-172052'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '90401',
internalId:  '',
customField: '20090104-120543'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '79901',
internalId:  '',
customField: '20080731-115508'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '81101',
internalId:  '',
customField: '20090301-171411'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '103001',
internalId:  '',
customField: '20090110-214946'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48101',
internalId:  '',
customField: '20090301-171610'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '137801',
internalId:  '',
customField: '20091008-223902'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63501',
internalId:  '',
customField: '20080625-213809'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4201',
internalId:  '',
customField: '20090301-172032'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5601',
internalId:  '',
customField: '20090301-172218'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7022',
internalId:  '',
customField: '20080717-204853'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12701',
internalId:  '',
customField: '20071213-112748'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '615',
internalId:  '',
customField: '20090412-095541'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13801',
internalId:  '',
customField: '20071204-190424'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33101',
internalId:  '',
customField: '20090301-172652'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33122',
internalId:  '',
customField: '20090301-172743'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52601',
internalId:  '',
customField: '20080410-080322'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59201',
internalId:  '',
customField: '20080421-153749'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74101',
internalId:  '',
customField: '20080717-205320'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85601',
internalId:  '',
customField: '20081007-125555'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87901',
internalId:  '',
customField: '20081011-185335'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '636',
internalId:  '',
customField: '20090301-173121'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22301',
internalId:  '',
customField: '20091007-081646'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91701',
internalId:  '',
customField: '20081108-220609'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22322',
internalId:  '',
customField: '20091007-082107'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13822',
internalId:  '',
customField: '20100307-164303'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66801',
internalId:  '',
customField: '20090103-165145'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2006',
internalId:  '',
customField: '20071219-175013'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2001',
internalId:  '',
customField: '20071130-193851'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '109401',
internalId:  '',
customField: '20090408-080524'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '126801',
internalId:  '',
customField: '20090603-213000'
};
webappMappings['7060']=webappMappings['7060-927e6758b55fcdb77605ae7a6520b4c1']={
webappId:    '7060',
documentId:  '134601',
internalId:  '927e6758b55fcdb77605ae7a6520b4c1',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '134601',
internalId:  '',
customField: '20090824-214824'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '144501',
internalId:  '',
customField: '20091011-213044'
};
webappMappings['7060']=webappMappings['7060-6c9e7d5caf4618b121a228cba1497ce5']={
webappId:    '7060',
documentId:  '144501',
internalId:  '6c9e7d5caf4618b121a228cba1497ce5',
customField: 'language:de;country:CH;'
};
var canonHostname = 'hptworkerdb01b.bluewin.ch';
var accountId     = 'ABW0X0INEK2I';
var companyName   = 'NAZAR+-+ENDURANCE';
var htmlTitle	  = '';
var metaKeywords  = '';
var metaContents  = '';
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();
};
