/* [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','473',jdecode('Page+d%26%23x27%3Baccueil'),jdecode(''),'/473/index.html','true',[ 
		['PAGE','30001',jdecode('Nouvelles+du+comit%C3%A9'),jdecode(''),'/473/30001.html','true',[],'',''],
		['PAGE','30022',jdecode('Nouvelles+de+l%26%23x27%3BASTA'),jdecode(''),'/473/30022.html','true',[],'',''],
		['PAGE','87901',jdecode('Initiations'),jdecode(''),'/473/87901.html','true',[],'','']
	],'',''],
	['PAGE','2122',jdecode('Le+club'),jdecode(''),'/2122/index.html','true',[ 
		['PAGE','17243',jdecode('O%C3%B9+nous+trouver'),jdecode(''),'/2122/17243.html','true',[],'',''],
		['PAGE','2164',jdecode('Comit%C3%A9+et+contacts'),jdecode(''),'/2122/2164.html','true',[],'',''],
		['PAGE','2185',jdecode('Statuts'),jdecode(''),'/2122/2185.html','true',[],'',''],
		['PAGE','2143',jdecode('Historique'),jdecode(''),'/2122/2143.html','true',[],'',''],
		['PAGE','2227',jdecode('Effectif+et+membres'),jdecode(''),'/2122/2227.html','true',[],'',''],
		['PAGE','2206',jdecode('Revue+de+presse'),jdecode(''),'/2122/2206.html','true',[],'',''],
		['PAGE','29701',jdecode('M%C3%A9dailles'),jdecode(''),'/2122/29701.html','true',[],'',''],
		['PAGE','48601',jdecode('Classements+des+membres'),jdecode(''),'/2122/48601.html','true',[],'','']
	],'',''],
	['PAGE','2269',jdecode('Devenir+membre'),jdecode(''),'/2269.html','true',[],'',''],
	['PAGE','17264',jdecode('Championnats+suisses+3D'),jdecode(''),'/17264/index.html','true',[ 
		['PAGE','30801',jdecode('R%C3%A8glements'),jdecode(''),'/17264/30801.html','true',[],'',''],
		['PAGE','60301',jdecode('Inscription+au+concours'),jdecode(''),'/17264/60301.html','true',[],'',''],
		['PAGE','48622',jdecode('R%C3%A9sultats'),jdecode(''),'/17264/48622.html','true',[],'',''],
		['PAGE','17306',jdecode('Agenda'),jdecode(''),'/17264/17306.html','false',[],'',''],
		['PAGE','30843',jdecode('Statistiques'),jdecode(''),'/17264/30843.html','true',[],'','']
	],'',''],
	['PAGE','74701',jdecode('3D+Schweizermeisterschaft'),jdecode(''),'/74701.html','true',[],'',''],
	['PAGE','70801',jdecode('Images'),jdecode(''),'/70801.html','true',[],'',''],
	['PAGE','2395',jdecode('Liens'),jdecode(''),'/2395/index.html','true',[ 
		['PAGE','30401',jdecode('Associations'),jdecode(''),'/2395/30401.html','true',[],'',''],
		['PAGE','30422',jdecode('Clubs'),jdecode(''),'/2395/30422.html','true',[],'',''],
		['PAGE','30464',jdecode('Commerce'),jdecode(''),'/2395/30464.html','true',[],'',''],
		['PAGE','30443',jdecode('Facteurs+d%26%23x27%3Barc'),jdecode(''),'/2395/30443.html','true',[],'',''],
		['PAGE','69101',jdecode('Forums+et+blogs'),jdecode(''),'/2395/69101.html','true',[],'',''],
		['PAGE','87701',jdecode('Technique'),jdecode(''),'/2395/87701.html','true',[],'','']
	],'',''],
	['PAGE','30822',jdecode('Sponsors'),jdecode(''),'/30822.html','true',[],'',''],
	['PAGE','99901',jdecode('Recherche+dans+le+site'),jdecode(''),'/99901.html','true',[],'','']];
var siteelementCount=31;
theSitetree.topTemplateName='Leaves';
theSitetree.paletteFamily='581313';
theSitetree.keyvisualId='11682';
theSitetree.keyvisualName='kv_11682.jpg';
theSitetree.fontsetId='32971';
theSitetree.graphicsetId='14000';
theSitetree.contentColor='581313';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'fr',
  country: 'FR'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Leaves',
				paletteFamily: 	'581313',
				keyvisualId: 	'11682',
				keyvisualName: 	'kv_11682.jpg',
				fontsetId: 		'32971',
				graphicsetId: 	'14000',
				contentColor: 	'581313',
				contentBGColor: 'FFFFFF',
				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:     'true'
			  };
var webappMappings = {};
webappMappings['7008']=webappMappings['7008-2299']={
webappId:    '7008',
documentId:  '2269',
internalId:  '2299',
customField: 'language:fr;country:FR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '473',
internalId:  '',
customField: '20100726-175151'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2122',
internalId:  '',
customField: '20100211-090731'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2164',
internalId:  '',
customField: '20100211-091644'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2227',
internalId:  '',
customField: '20100709-131940'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2185',
internalId:  '',
customField: '20071105-212826'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2143',
internalId:  '',
customField: '20100128-102113'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2206',
internalId:  '',
customField: '20090915-224644'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29701',
internalId:  '',
customField: '20100128-103430'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30001',
internalId:  '',
customField: '20100114-212639'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30022',
internalId:  '',
customField: '20091007-233248'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '99901',
internalId:  '',
customField: '20091119-220727'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '473',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48601',
internalId:  '',
customField: '20100301-214653'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48622',
internalId:  '',
customField: '20090915-224511'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2269',
internalId:  '',
customField: '20071024-130656'
};
webappMappings['8002']=webappMappings['8002-search']={
webappId:    '8002',
documentId:  '99901',
internalId:  'search',
customField: 'language:fr;country:FR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17243',
internalId:  '',
customField: '20091119-214700'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2395',
internalId:  '',
customField: '20100128-103723'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30401',
internalId:  '',
customField: '20100128-104055'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30422',
internalId:  '',
customField: '20100605-165312'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30443',
internalId:  '',
customField: '20091109-125708'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30464',
internalId:  '',
customField: '20100605-165951'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17264',
internalId:  '',
customField: '20100726-175736'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17306',
internalId:  '',
customField: '20081126-123912'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30801',
internalId:  '',
customField: '20090717-175605'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30822',
internalId:  '',
customField: '20090929-131409'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30843',
internalId:  '',
customField: '20090927-213227'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60301',
internalId:  '',
customField: '20100726-180503'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69101',
internalId:  '',
customField: '20091119-212100'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70801',
internalId:  '',
customField: '20100516-174659'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74701',
internalId:  '',
customField: '20100726-181131'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87701',
internalId:  '',
customField: '20091119-211345'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87901',
internalId:  '',
customField: '20090829-163956'
};
var canonHostname = 'hptworkerdb01a.bluewin.ch';
var accountId     = 'ABW0X0IN2DJ5';
var companyName   = 'Arc+Club+Mol%C3%A9son';
var htmlTitle	  = '';
var metaKeywords  = 'Tir+%C3%A0+l%27arc%2C+Fribourg%2C+femme%2C+homme%2C+arcs%2C+fl%C3%A8ches%2C+Mol%C3%A9son%2C+Gruy%C3%A8res%2C+Bulle%2C+parcours%2C+3D%2C+field%2C+FITA%2C+ASTA%2C+arc-club%2C+Bogensch%C3%BCtzen%2C+Verein%2C+Bogen%2C+Pfeile%2C+initiations%2C+for%C3%AAt%2C+instinctif%2C+Frau%2C+Mann%2C';
var metaContents  = 'Site+de+l%27arc-club+Mol%C3%A9son%2C+le+club+du+sud+du+canton+de+Fribourg%2C+tr%C3%A8s+bonne+ambiance.+Vous+y+trouverez+tous+les+renseignements+n%C3%A9cessaires+ainsi+que+les+contacts+pour+obtenir+les+r%C3%A9ponses+que+nous+aurions+oubli%C3%A9+de+publier.';
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();
};
