/* [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','4597',jdecode('Home'),jdecode(''), jdecode('%2F4597.html'), 'true',[],'',''],
	['PAGE','74101',jdecode('Der+neue+Scirocco'),jdecode(''), jdecode('%2F74101.html'), 'true',[],'',''],
	['PAGE','4654',jdecode('Wir+%C3%BCber+uns'),jdecode(''), jdecode('%2F4654.html'), 'true',[],'',''],
	['PAGE','4735',jdecode('Die+n%C3%A4chsten+Termine'),jdecode(''), jdecode('%2F4735.html'), 'true',[],'',''],
	['PAGE','4762',jdecode('Jahresprogramm'),jdecode(''), jdecode('%2F4762.html'), 'true',[],'',''],
	['PAGE','4681',jdecode('Vorstand+und+Kontakte'),jdecode(''), jdecode('%2F4681%2Findex.html'), 'true',[ 
		['PAGE','32846',jdecode('Vorstand+%28Form+followup+page%29'),jdecode(''), jdecode('%2F4681%2F32846.html'), 'false',[],'','']
	],'',''],
	['PAGE','7001',jdecode('Aktivmitglieder'),jdecode(''), jdecode('%2F7001.html'), 'true',[],'',''],
	['PAGE','13001',jdecode('Passivmitglider'),jdecode(''), jdecode('%2F13001.html'), 'true',[],'',''],
	['PAGE','4708',jdecode('Aktuelles'),jdecode(''), jdecode('%2F4708.html'), 'true',[],'',''],
	['PAGE','151201',jdecode('Anl%C3%A4sse+2012'),jdecode(''), jdecode('%2F151201%2Findex.html'), 'true',[ 
		['PAGE','151222',jdecode('Anl%C3%A4sse+2012+April+bis+Juni'),jdecode(''), jdecode('%2F151201%2F151222.html'), 'true',[],'',''],
		['PAGE','151243',jdecode('Anl%C3%A4sse+2012+Juli+bis+September'),jdecode(''), jdecode('%2F151201%2F151243.html'), 'true',[],'',''],
		['PAGE','151264',jdecode('Anl%C3%A4sse+2012+Oktober+bis+Dezember'),jdecode(''), jdecode('%2F151201%2F151264.html'), 'true',[],'','']
	],'',''],
	['PAGE','9701',jdecode('Anl%C3%A4sse+2011'),jdecode(''), jdecode('%2F9701%2Findex.html'), 'true',[ 
		['PAGE','136401',jdecode('Anl%C3%A4sse+2011+April+bis+Juni'),jdecode(''), jdecode('%2F9701%2F136401.html'), 'true',[],'',''],
		['PAGE','136422',jdecode('Anl%C3%A4sse+2011+Juli+bis+September'),jdecode(''), jdecode('%2F9701%2F136422.html'), 'true',[],'',''],
		['PAGE','136443',jdecode('Anl%C3%A4sse+2011+Oktober+bis+Dezember'),jdecode(''), jdecode('%2F9701%2F136443.html'), 'true',[],'','']
	],'',''],
	['PAGE','6379',jdecode('Anl%C3%A4sse+2010'),jdecode(''), jdecode('%2F6379%2Findex.html'), 'true',[ 
		['PAGE','102001',jdecode('Anl%C3%A4sse+2010+April+bis+Juni'),jdecode(''), jdecode('%2F6379%2F102001.html'), 'true',[],'',''],
		['PAGE','102022',jdecode('Anl%C3%A4sse+2010+Juli+bis+August'),jdecode(''), jdecode('%2F6379%2F102022.html'), 'true',[],'',''],
		['PAGE','102043',jdecode('Anl%C3%A4sse+2010+September+bis+Dezember'),jdecode(''), jdecode('%2F6379%2F102043.html'), 'true',[],'','']
	],'',''],
	['PAGE','87101',jdecode('Anl%C3%A4sse+2009'),jdecode(''), jdecode('%2F87101%2Findex.html'), 'true',[ 
		['PAGE','87122',jdecode('Anl%C3%A4sse+09+April'),jdecode(''), jdecode('%2F87101%2F87122.html'), 'true',[],'',''],
		['PAGE','88801',jdecode('Anl%C3%A4sse+09+Juli+'),jdecode(''), jdecode('%2F87101%2F88801.html'), 'true',[],'',''],
		['PAGE','88822',jdecode('Anl%C3%A4sse+09+November'),jdecode(''), jdecode('%2F87101%2F88822.html'), 'true',[],'','']
	],'',''],
	['PAGE','63890',jdecode('Anl%C3%A4sse+2008'),jdecode(''), jdecode('%2F63890%2Findex.html'), 'true',[ 
		['PAGE','63899',jdecode('Anl%C3%A4sse+08+April'),jdecode(''), jdecode('%2F63890%2F63899.html'), 'true',[],'',''],
		['PAGE','68022',jdecode('Anl%C3%A4sse+08+Juli'),jdecode(''), jdecode('%2F63890%2F68022.html'), 'true',[],'',''],
		['PAGE','74122',jdecode('Anl%C3%A4sse+08+August+'),jdecode(''), jdecode('%2F63890%2F74122.html'), 'true',[],'','']
	],'',''],
	['PAGE','59730',jdecode('Anl%C3%A4sse+2007+'),jdecode(''), jdecode('%2F59730%2Findex.html'), 'true',[ 
		['PAGE','61140',jdecode('Anl%C3%A4sse+07+April'),jdecode(''), jdecode('%2F59730%2F61140.html'), 'true',[],'',''],
		['PAGE','61149',jdecode('Anl%C3%A4sse+07+Juni'),jdecode(''), jdecode('%2F59730%2F61149.html'), 'true',[],'',''],
		['PAGE','61158',jdecode('Anl%C3%A4sse+07+Juli'),jdecode(''), jdecode('%2F59730%2F61158.html'), 'true',[],'',''],
		['PAGE','61167',jdecode('Anl%C3%A4sse+07+August+bis+Oktober'),jdecode(''), jdecode('%2F59730%2F61167.html'), 'true',[],'',''],
		['PAGE','63060',jdecode('Anl%C3%A4sse+07+November+bis+Dezember'),jdecode(''), jdecode('%2F59730%2F63060.html'), 'true',[],'','']
	],'',''],
	['PAGE','14804',jdecode('Scirocco+I'),jdecode(''), jdecode('%2F14804.html'), 'true',[],'',''],
	['PAGE','14831',jdecode('Scirocco+II'),jdecode(''), jdecode('%2F14831.html'), 'true',[],'',''],
	['PAGE','92801',jdecode('Scirocco+III'),jdecode(''), jdecode('%2F92801.html'), 'true',[],'',''],
	['PAGE','95901',jdecode('%22Luftgek%C3%BChlte%22+Sciroccos'),jdecode(''), jdecode('%2F95901.html'), 'true',[],'',''],
	['PAGE','92701',jdecode('Ehemalige+Sciroccos'),jdecode(''), jdecode('%2F92701.html'), 'true',[],'',''],
	['PAGE','13028',jdecode('Fremdfahrzeuge'),jdecode(''), jdecode('%2F13028.html'), 'true',[],'',''],
	['PAGE','24418',jdecode('Geschichte'),jdecode(''), jdecode('%2F24418.html'), 'true',[],'',''],
	['PAGE','63687',jdecode('Werkstattregeln'),jdecode(''), jdecode('%2F63687.html'), 'true',[],'',''],
	['PAGE','9101',jdecode('Links'),jdecode(''), jdecode('%2F9101.html'), 'true',[],'',''],
	['PAGE','4816',jdecode('Schrauber+Ecke'),jdecode(''), jdecode('%2F4816%2Findex.html'), 'true',[ 
		['PAGE','95001',jdecode('Hilfreiches+aus+dem+WWW'),jdecode(''), jdecode('%2F4816%2F95001.html'), 'true',[],'',''],
		['PAGE','15228',jdecode('Aussen+Farben'),jdecode(''), jdecode('%2F4816%2F15228.html'), 'true',[],'',''],
		['PAGE','15255',jdecode('Mehrausstattungen'),jdecode(''), jdecode('%2F4816%2F15255.html'), 'true',[],'',''],
		['PAGE','15282',jdecode('Fahrgestell+Nr.'),jdecode(''), jdecode('%2F4816%2F15282.html'), 'true',[],'',''],
		['PAGE','15309',jdecode('Motoren+Nr.'),jdecode(''), jdecode('%2F4816%2F15309.html'), 'true',[],'',''],
		['PAGE','38301',jdecode('Service+Daten'),jdecode(''), jdecode('%2F4816%2F38301.html'), 'true',[],'',''],
		['PAGE','38328',jdecode('Technische+Daten'),jdecode(''), jdecode('%2F4816%2F38328.html'), 'true',[],'','']
	],'',''],
	['PAGE','7647',jdecode('G%C3%A4stebuch'),jdecode(''), jdecode('%2F7647%2Findex.html'), 'true',[ 
		['PAGE','7648',jdecode('Eintr%C3%A4ge'),jdecode(''), jdecode('%2F7647%2F7648.html'), 'false',[],'','']
	],'','']];
var siteelementCount=55;
theSitetree.topTemplateName='Alpha';
theSitetree.paletteFamily='D72B2B';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10555';
theSitetree.graphicsetId='10893';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'de',
  country: 'CH'
};
var prodDef={
  wl_name: 'bluewin',
  product: 'WSCBLUSSSLYTC2MX'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Alpha',
				paletteFamily: 	'D72B2B',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10555',
				graphicsetId: 	'10893',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'D72B2B',
				e_color: 		'D72B2B',
				f_color: 		'D72B2B',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4597',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4654',
internalId:  '',
customField: '20100321-212726'
};
webappMappings['1002']=webappMappings['1002-7647ABW0X0INXSFN']={
webappId:    '1002',
documentId:  '7647',
internalId:  '7647ABW0X0INXSFN',
customField: 'icq=false'
};
webappMappings['1009']=webappMappings['1009-6380067']={
webappId:    '1009',
documentId:  '32846',
internalId:  '6380067',
customField: 'isFollowupPage:true;documentId:4681;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4597',
internalId:  '',
customField: '20120108-182855'
};
webappMappings['7008']=webappMappings['7008-2407']={
webappId:    '7008',
documentId:  '4681',
internalId:  '2407',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4681',
internalId:  '',
customField: '20101101-190848'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7001',
internalId:  '',
customField: '20110724-151621'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13001',
internalId:  '',
customField: '20110724-151409'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63687',
internalId:  '',
customField: '20101114-195926'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4708',
internalId:  '',
customField: '20090312-202922'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4762',
internalId:  '',
customField: '20111231-202821'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4735',
internalId:  '',
customField: '20111231-202859'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63890',
internalId:  '',
customField: '20090808-093809'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74122',
internalId:  '',
customField: '20100517-225654'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '95001',
internalId:  '',
customField: '20100913-112246'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13028',
internalId:  '',
customField: '20110724-151921'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14831',
internalId:  '',
customField: '20111231-204654'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14804',
internalId:  '',
customField: '20111231-203510'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24418',
internalId:  '',
customField: '20060903-144854'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9101',
internalId:  '',
customField: '20100517-155642'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74101',
internalId:  '',
customField: '20100709-232520'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32846',
internalId:  '',
customField: '20060305-202308'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63899',
internalId:  '',
customField: '20100517-225444'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68022',
internalId:  '',
customField: '20081007-222919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59730',
internalId:  '',
customField: '20080113-154221'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61140',
internalId:  '',
customField: '20070724-201310'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61149',
internalId:  '',
customField: '20070723-220804'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61158',
internalId:  '',
customField: '20071009-203305'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61167',
internalId:  '',
customField: '20080113-155508'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63060',
internalId:  '',
customField: '20080113-155054'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9701',
internalId:  '',
customField: '20120108-190655'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6379',
internalId:  '',
customField: '20110123-153526'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92701',
internalId:  '',
customField: '20100716-224333'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4816',
internalId:  '',
customField: '20101101-203535'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15228',
internalId:  '',
customField: '20100816-214909'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15255',
internalId:  '',
customField: '20101121-192938'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15282',
internalId:  '',
customField: '20060414-220828'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15309',
internalId:  '',
customField: '20060414-230901'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38301',
internalId:  '',
customField: '20060427-152706'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38328',
internalId:  '',
customField: '20060414-184243'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7647',
internalId:  '',
customField: '20051120-172825'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7648',
internalId:  '',
customField: '20051120-172825'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87101',
internalId:  '',
customField: '20100711-204042'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87122',
internalId:  '',
customField: '20100913-091145'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '88801',
internalId:  '',
customField: '20110123-164431'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '88822',
internalId:  '',
customField: '20110123-154139'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92801',
internalId:  '',
customField: '20100716-231452'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '95901',
internalId:  '',
customField: '20100716-220747'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '102001',
internalId:  '',
customField: '20110724-161114'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '102022',
internalId:  '',
customField: '20110123-181712'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '102043',
internalId:  '',
customField: '20110126-161914'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '136401',
internalId:  '',
customField: '20111005-180650'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '136422',
internalId:  '',
customField: '20120108-194151'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '136443',
internalId:  '',
customField: '20110724-162457'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '151201',
internalId:  '-',
customField: '20120108-182006'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '151222',
internalId:  '-',
customField: '20120108-181554'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '151243',
internalId:  '-',
customField: '20120108-181554'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '151264',
internalId:  '-',
customField: '20120108-181554'
};
var webAppHostname = 'cgi.hpt001.bluewin.ch:80';
var canonHostname = 'hptworkerdb01a.bluewin.ch';
var accountId     = 'ABW0X0INXSFN';
var companyName   = 'Scirocco+Club+Aarau+%28Schweiz%29';
var htmlTitle	  = 'Scirocco+Club+Aarau';
var metaKeywords  = '';
var metaContents  = 'VW%2CScirocco%2CSchweiz%2C';
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();
};

