/* [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','601',jdecode('Home'),jdecode(''), jdecode('%2F601.html'), 'true',[],'',''],
	['PAGE','38822',jdecode('Neuigkeiten'),jdecode(''), jdecode('%2F38822.html'), 'true',[],'',''],
	['PAGE','14801',jdecode('Club'),jdecode(''), jdecode('%2F14801.html'), 'true',[],'',''],
	['PAGE','38801',jdecode('Clubstatuten'),jdecode(''), jdecode('%2F38801.html'), 'true',[],'',''],
	['PAGE','5122',jdecode('Occasionen'),jdecode(''), jdecode('%2F5122.html'), 'true',[],'',''],
	['PAGE','75201',jdecode('Teilemarkt'),jdecode(''), jdecode('%2F75201.html'), 'true',[],'',''],
	['PAGE','40101',jdecode('Mitgliederliste'),jdecode(''), jdecode('%2F40101.html'), 'true',[],'',''],
	['PAGE','5143',jdecode('Mitgliederautos'),jdecode(''), jdecode('%2F5143.html'), 'true',[],'',''],
	['PAGE','75601',jdecode('Anmeldeformular'),jdecode(''), jdecode('%2F75601.html'), 'true',[],'',''],
	['PAGE','5101',jdecode('Kontakt'),jdecode(''), jdecode('%2F5101%2Findex.html'), 'true',[ 
		['PAGE','17401',jdecode('Kontakt+%28Folgeseite%29'),jdecode(''), jdecode('%2F5101%2F17401.html'), 'false',[],'','']
	],'',''],
	['PAGE','5164',jdecode('Links'),jdecode(''), jdecode('%2F5164.html'), 'true',[],'',''],
	['PAGE','15606',jdecode('G%C3%A4stebuch'),jdecode(''), jdecode('%2F15606%2Findex.html'), 'true',[ 
		['PAGE','15601',jdecode('Eintr%C3%A4ge'),jdecode(''), jdecode('%2F15606%2F15601.html'), 'false',[],'','']
	],'',''],
	['PAGE','53701',jdecode('Treffen+2012'),jdecode(''), jdecode('%2F53701.html'), 'true',[],'',''],
	['PAGE','55601',jdecode('Jahresprogramm'),jdecode(''), jdecode('%2F55601.html'), 'true',[],'',''],
	['PAGE','58601',jdecode('Interne+Veranstaltungen'),jdecode(''), jdecode('%2F58601.html'), 'true',[],'',''],
	['PAGE','109901',jdecode('1.OCS+Treffen+08'),jdecode(''), jdecode('%2F109901.html'), 'true',[],'',''],
	['PAGE','195201',jdecode('2.+OCS+Treffen+09'),jdecode(''), jdecode('%2F195201.html'), 'true',[],'',''],
	['PAGE','63301',jdecode('Bilder+Treffen+2007'),jdecode(''), jdecode('%2F63301%2Findex.html'), 'true',[ 
		['PAGE','63322',jdecode('Mantatreffen+Eschenbach'),jdecode(''), jdecode('%2F63301%2F63322.html'), 'true',[],'',''],
		['PAGE','63343',jdecode('Auto+Emotion+Bern'),jdecode(''), jdecode('%2F63301%2F63343.html'), 'true',[],'',''],
		['PAGE','71901',jdecode('Opel+Treffen+Friedrichshafen'),jdecode(''), jdecode('%2F63301%2F71901.html'), 'true',[],'',''],
		['PAGE','63364',jdecode('Alt+Opel+Treffen+Oftringen'),jdecode(''), jdecode('%2F63301%2F63364.html'), 'true',[],'',''],
		['PAGE','71922',jdecode('MadWallStreet'),jdecode(''), jdecode('%2F63301%2F71922.html'), 'true',[],'','']
	],'',''],
	['PAGE','114001',jdecode('Bilder+Treffen+2008'),jdecode(''), jdecode('%2F114001%2Findex.html'), 'true',[ 
		['PAGE','114022',jdecode('Tuning+World+Bodensee'),jdecode(''), jdecode('%2F114001%2F114022.html'), 'true',[],'',''],
		['PAGE','117401',jdecode('Opel+Treffen+HochYbrig'),jdecode(''), jdecode('%2F114001%2F117401.html'), 'true',[],'',''],
		['PAGE','135801',jdecode('Mantatreffen+Eschenbach'),jdecode(''), jdecode('%2F114001%2F135801.html'), 'true',[],'',''],
		['PAGE','151701',jdecode('Opeltreffen+Oftringen'),jdecode(''), jdecode('%2F114001%2F151701.html'), 'true',[],'',''],
		['PAGE','161501',jdecode('Auto+Z%C3%BCrich'),jdecode(''), jdecode('%2F114001%2F161501.html'), 'true',[],'','']
	],'',''],
	['PAGE','184001',jdecode('Bilder+Treffen+2009'),jdecode(''), jdecode('%2F184001%2Findex.html'), 'true',[ 
		['PAGE','184101',jdecode('Opel-Drivers'),jdecode(''), jdecode('%2F184001%2F184101.html'), 'true',[],'',''],
		['PAGE','188201',jdecode('Hoch+Ybrig'),jdecode(''), jdecode('%2F184001%2F188201.html'), 'true',[],'',''],
		['PAGE','190601',jdecode('Eschbach+%28D%29'),jdecode(''), jdecode('%2F184001%2F190601.html'), 'true',[],'',''],
		['PAGE','192801',jdecode('Rothenturm'),jdecode(''), jdecode('%2F184001%2F192801.html'), 'true',[],'','']
	],'',''],
	['PAGE','248801',jdecode('Bilder+Treffen+2010'),jdecode(''), jdecode('%2F248801%2Findex.html'), 'true',[ 
		['PAGE','248901',jdecode('Bremer+Opel+Team'),jdecode(''), jdecode('%2F248801%2F248901.html'), 'true',[],'',''],
		['PAGE','250401',jdecode('Hoch+Ybrig+2010'),jdecode(''), jdecode('%2F248801%2F250401.html'), 'true',[],'',''],
		['PAGE','251601',jdecode('Rothenthurm'),jdecode(''), jdecode('%2F248801%2F251601.html'), 'true',[],'',''],
		['PAGE','254301',jdecode('Schaffisheim'),jdecode(''), jdecode('%2F248801%2F254301.html'), 'true',[],'',''],
		['PAGE','254322',jdecode('Baar'),jdecode(''), jdecode('%2F248801%2F254322.html'), 'true',[],'','']
	],'',''],
	['PAGE','261912',jdecode('Bilder+Treffen+2011'),jdecode(''), jdecode('%2F261912%2Findex.html'), 'true',[ 
		['PAGE','261933',jdecode('GT+Treffen+Hochdorf'),jdecode(''), jdecode('%2F261912%2F261933.html'), 'true',[],'','']
	],'','']];
var siteelementCount=44;
theSitetree.topTemplateName='Fantasy';
theSitetree.paletteFamily='AD4734';
theSitetree.keyvisualId='9901';
theSitetree.keyvisualName='kv1.swf';
theSitetree.fontsetId='17703';
theSitetree.graphicsetId='13066';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='000000';
var localeDef={
  language: 'de',
  country: 'CH'
};
var prodDef={
  wl_name: 'bluewin',
  product: 'WSCBLUSSSLYTC2MX'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'true',
				hasCompanyname: 'false',
				name: 			'Fantasy',
				paletteFamily: 	'AD4734',
				keyvisualId: 	'9901',
				keyvisualName: 	'kv1.swf',
				fontsetId: 		'17703',
				graphicsetId: 	'13066',
				contentColor: 	'FFFFFF',
				contentBGColor: '000000',
				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['1002']=webappMappings['1002-15606abw0x0in2vkj']={
webappId:    '1002',
documentId:  '15606',
internalId:  '15606abw0x0in2vkj',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '601',
internalId:  '',
customField: '20100118-150949'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '188201',
internalId:  '',
customField: '20090601-114240'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '248801',
internalId:  '',
customField: '20100526-174543'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '184101',
internalId:  '',
customField: '20090521-162627'
};
webappMappings['1501']=webappMappings['1501-14858537']={
webappId:    '1501',
documentId:  '601',
internalId:  '14858537',
customField: '1501'
};
webappMappings['7008']=webappMappings['7008-729']={
webappId:    '7008',
documentId:  '75601',
internalId:  '729',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '254322',
internalId:  '',
customField: '20100925-125102'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '251601',
internalId:  '',
customField: '20100628-193138'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '254301',
internalId:  '',
customField: '20100925-122708'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38822',
internalId:  '',
customField: '20111116-181847'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '109901',
internalId:  '',
customField: '20090711-095452'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '261933',
internalId:  '',
customField: '20110801-114738'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14801',
internalId:  '',
customField: '20120104-155823'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38801',
internalId:  '',
customField: '20080519-180504'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5122',
internalId:  '',
customField: '20101130-190254'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '248901',
internalId:  '',
customField: '20100526-183947'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75201',
internalId:  '',
customField: '20101212-105511'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40101',
internalId:  '',
customField: '20120104-155400'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5143',
internalId:  '',
customField: '20120104-155709'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75601',
internalId:  '',
customField: '20080104-162935'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5101',
internalId:  '',
customField: '20100912-103225'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17401',
internalId:  '',
customField: '20070603-162913'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5164',
internalId:  '',
customField: '20120104-160344'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15606',
internalId:  '',
customField: '20070603-154750'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15601',
internalId:  '',
customField: '20070603-154750'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53701',
internalId:  '',
customField: '20120104-160058'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55601',
internalId:  '',
customField: '20120104-160136'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58601',
internalId:  '',
customField: '20090613-112318'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63301',
internalId:  '',
customField: '20080709-181258'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63322',
internalId:  '',
customField: '20070930-170614'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63343',
internalId:  '',
customField: '20070930-181013'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71901',
internalId:  '',
customField: '20071006-173550'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63364',
internalId:  '',
customField: '20070930-185930'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71922',
internalId:  '',
customField: '20071006-175404'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '114001',
internalId:  '',
customField: '20080519-180935'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '114022',
internalId:  '',
customField: '20080519-181536'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '117401',
internalId:  '',
customField: '20080623-114015'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '135801',
internalId:  '',
customField: '20080824-093549'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '151701',
internalId:  '',
customField: '20080916-185633'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '161501',
internalId:  '',
customField: '20081116-153927'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '250401',
internalId:  '',
customField: '20100602-181221'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '261912',
internalId:  '',
customField: '20110713-170627'
};
webappMappings['7008']=webappMappings['7008-2806']={
webappId:    '7008',
documentId:  '5101',
internalId:  '2806',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '184001',
internalId:  '',
customField: '20090531-074252'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '190601',
internalId:  '',
customField: '20090611-101003'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '192801',
internalId:  '',
customField: '20090622-164357'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '195201',
internalId:  '',
customField: '20090711-100805'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '601',
internalId:  '1006',
customField: '1006'
};
var webAppHostname = 'cgi.hpt001.bluewin.ch:80';
var canonHostname = 'hptworkerdb01a.bluewin.ch';
var accountId     = 'ABW0X0IN2VKJ';
var companyName   = 'Opelclub-Seetal';
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();
};

