/* [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','4506',jdecode('Home'),jdecode(''), jdecode('%2F4506.html'), 'true',[],'',''],
	['PAGE','74996',jdecode('Wer+sind+wir%3F'),jdecode(''), jdecode('%2F74996.html'), 'true',[],'',''],
	['PAGE','79301',jdecode('Veranstaltungen+2012'),jdecode(''), jdecode('%2F79301.html'), 'true',[],'',''],
	['PAGE','77910',jdecode('Unsere+Rennfahrer'),jdecode(''), jdecode('%2F77910.html'), 'true',[],'',''],
	['PAGE','4563',jdecode('Fotogalerie'),jdecode(''), jdecode('%2F4563%2Findex.html'), 'true',[ 
		['PAGE','75642',jdecode('25+Jahre+MRTL'),jdecode(''), jdecode('%2F4563%2F75642.html'), 'true',[],'',''],
		['PAGE','79701',jdecode('Nachwuchsfahrer'),jdecode(''), jdecode('%2F4563%2F79701.html'), 'true',[],'',''],
		['PAGE','76759',jdecode('Asti+2009'),jdecode(''), jdecode('%2F4563%2F76759.html'), 'true',[],'',''],
		['PAGE','74843',jdecode('Motocross+2008'),jdecode(''), jdecode('%2F4563%2F74843.html'), 'true',[],'',''],
		['PAGE','76465',jdecode('Motocross+2009'),jdecode(''), jdecode('%2F4563%2F76465.html'), 'true',[],'',''],
		['PAGE','76613',jdecode('Anneau+du+Rhin+%26%23x27%3B09'),jdecode(''), jdecode('%2F4563%2F76613.html'), 'true',[],'',''],
		['PAGE','73287',jdecode('Ledenon+2007'),jdecode(''), jdecode('%2F4563%2F73287.html'), 'true',[],'',''],
		['PAGE','69793',jdecode('Anneau+du+Rhin+%26%23x27%3B06'),jdecode(''), jdecode('%2F4563%2F69793.html'), 'true',[],'','']
	],'',''],
	['PAGE','4617',jdecode('Links'),jdecode(''), jdecode('%2F4617.html'), 'true',[],'',''],
	['PAGE','11602',jdecode('Kontakt'),jdecode(''), jdecode('%2F11602.html'), 'true',[],'',''],
	['PAGE','74493',jdecode('G%C3%A4stebuch'),jdecode(''), jdecode('%2F74493%2Findex.html'), 'true',[ 
		['PAGE','74492',jdecode('Eintr%C3%A4ge'),jdecode(''), jdecode('%2F74493%2F74492.html'), 'false',[],'','']
	],'','']];
var siteelementCount=17;
theSitetree.topTemplateName='Blast';
theSitetree.paletteFamily='87C82A';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='33266';
theSitetree.graphicsetId='14145';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
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: 			'Blast',
				paletteFamily: 	'87C82A',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'33266',
				graphicsetId: 	'14145',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'089D04',
				b_color: 		'84D66E',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1002']=webappMappings['1002-74493abw0x0inx2qd']={
webappId:    '1002',
documentId:  '74493',
internalId:  '74493abw0x0inx2qd',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4506',
internalId:  '',
customField: '20120201-164628'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4506',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '79301',
internalId:  '-',
customField: '20120130-112209'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75642',
internalId:  '',
customField: '20100125-223538'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74996',
internalId:  '',
customField: '20120201-164512'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '77910',
internalId:  '-',
customField: '20120205-052536'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '79701',
internalId:  '-',
customField: '20120201-182725'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4563',
internalId:  '',
customField: '20120201-181355'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73287',
internalId:  '',
customField: '20070614-231850'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69793',
internalId:  '',
customField: '20060710-230022'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74843',
internalId:  '',
customField: '20120201-172702'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4617',
internalId:  '',
customField: '20120203-184625'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11602',
internalId:  '',
customField: '20120130-111856'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74493',
internalId:  '',
customField: '20120130-105638'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74492',
internalId:  '',
customField: '20071203-213659'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76759',
internalId:  '',
customField: '20100125-220231'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76613',
internalId:  '',
customField: '20100111-223506'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76465',
internalId:  '',
customField: '20100125-225131'
};
var webAppHostname = 'cgi.hpt001.bluewin.ch:80';
var canonHostname = 'hptworkerdb01a.bluewin.ch';
var accountId     = 'ABW0X0INX2QD';
var companyName   = 'Motorrad+Racing+Team+Linden+++++++++++++++++++';
var htmlTitle	  = 'Motorrad+Racing+Team+Linden';
var metaKeywords  = 'Racing+Motorrad';
var metaContents  = 'Motorrad+Club+Racing';
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();
};

