/* [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','201',jdecode('Home'),jdecode(''),'/201.html','true',[],'',''],
	['PAGE','109801',jdecode('Planning+journalier'),jdecode(''),'/109801/index.html','true',[ 
		['PAGE','99601',jdecode('Tarifs+et+cours'),jdecode(''),'/109801/99601.html','true',[],'','']
	],'',''],
	['PAGE','68701',jdecode('News+r%C3%A9centes'),jdecode(''),'/68701/index.html','true',[ 
		['PAGE','147612',jdecode('Le+journal+des+p%C3%A9lerins'),jdecode(''),'/68701/147612.html','true',[],'','']
	],'',''],
	['PAGE','207',jdecode('Qui+sommes+nous%3F'),jdecode(''),'/207/index.html','true',[ 
		['PAGE','60201',jdecode('Motivations'),jdecode(''),'/207/60201.html','true',[],'',''],
		['PAGE','212',jdecode('Nos+membres.'),jdecode(''),'/207/212.html','true',[],'','']
	],'',''],
	['PAGE','31004',jdecode('Notre+d%C3%A9fi+%21'),jdecode(''),'/31004.html','true',[],'',''],
	['PAGE','69301',jdecode('Notre+projet'),jdecode(''),'/69301/index.html','true',[ 
		['PAGE','39601',jdecode('Travaux'),jdecode(''),'/69301/39601.html','true',[],'','']
	],'',''],
	['PAGE','217',jdecode('Agenda'),jdecode(''),'/217.html','true',[],'',''],
	['PAGE','242',jdecode('Soutiens'),jdecode(''),'/242/index.html','true',[ 
		['PAGE','146001',jdecode('Archives+2010.'),jdecode(''),'/242/146001.html','true',[],'',''],
		['PAGE','140501',jdecode('Archives+2009.'),jdecode(''),'/242/140501.html','true',[],'',''],
		['PAGE','117001',jdecode('Archives+2008.'),jdecode(''),'/242/117001.html','true',[],'',''],
		['PAGE','103001',jdecode('Archives+2007.'),jdecode(''),'/242/103001.html','true',[],'',''],
		['PAGE','237',jdecode('Archives+2006.'),jdecode(''),'/242/237.html','true',[],'',''],
		['PAGE','232',jdecode('Archives+2005.'),jdecode(''),'/242/232.html','true',[],'',''],
		['PAGE','227',jdecode('Archives+2004.'),jdecode(''),'/242/227.html','true',[],'',''],
		['PAGE','222',jdecode('Archives+2003.'),jdecode(''),'/242/222.html','true',[],'','']
	],'',''],
	['PAGE','33201',jdecode('Contacts'),jdecode(''),'/33201.html','true',[],'',''],
	['PAGE','151923',jdecode('Album+Photo'),jdecode(''),'/151923.html','true',[],'','']];
var siteelementCount=23;
theSitetree.topTemplateName='Comedy';
theSitetree.paletteFamily='4871C0';
theSitetree.keyvisualId='2803';
theSitetree.keyvisualName='hand.jpg';
theSitetree.fontsetId='10422';
theSitetree.graphicsetId='10722';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='698BCB';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Comedy',
				paletteFamily: 	'4871C0',
				keyvisualId: 	'2803',
				keyvisualName: 	'hand.jpg',
				fontsetId: 		'10422',
				graphicsetId: 	'10722',
				contentColor: 	'000000',
				contentBGColor: '698BCB',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'36599C',
				e_color: 		'36599C',
				f_color: 		'36599C',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '201',
internalId:  '1006',
customField: '1006'
};
webappMappings['7060']=webappMappings['7060-0d5262ffed29182e03512124929bdc6c']={
webappId:    '7060',
documentId:  '109801',
internalId:  '0d5262ffed29182e03512124929bdc6c',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '201',
internalId:  '',
customField: '20100831-074759'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '109801',
internalId:  '',
customField: '20090425-120229'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '99601',
internalId:  '',
customField: '20100202-092103'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68701',
internalId:  '',
customField: '20100820-075647'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '207',
internalId:  '',
customField: '20100507-055549'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60201',
internalId:  '',
customField: '20100209-081326'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '212',
internalId:  '',
customField: '20100512-071128'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31004',
internalId:  '',
customField: '20100820-073836'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69301',
internalId:  '',
customField: '20100819-091500'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39601',
internalId:  '',
customField: '20070207-080301'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '217',
internalId:  '',
customField: '20100428-063152'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '117001',
internalId:  '',
customField: '20100129-093403'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '103001',
internalId:  '',
customField: '20090425-124728'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '237',
internalId:  '',
customField: '20090425-124351'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '232',
internalId:  '',
customField: '20060415-114349'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '227',
internalId:  '',
customField: '20060416-041402'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '222',
internalId:  '',
customField: '20050325-005358'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '242',
internalId:  '',
customField: '20100820-073554'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33201',
internalId:  '',
customField: '20090716-064250'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '151923',
internalId:  '',
customField: '20100511-095138'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '140501',
internalId:  '',
customField: '20100129-094759'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '146001',
internalId:  '',
customField: '20100428-062921'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '147612',
internalId:  '',
customField: '20100901-070614'
};
var canonHostname = 'wscwrk02.ehost-services.com';
var accountId     = 'AEN010INXXJW';
var companyName   = 'A.S.B.L+au+fil+de+l%27eau';
var htmlTitle	  = 'aufildeleau.info';
var metaKeywords  = 'eau%2C+aufildeleau%2C+accueil%2C+handicap%C3%A9s%2C+hydroth%C3%A9rapie%2C+piscine%2C+couthuin%2C+h%C3%A9ron+%2C+huy%2C+cap48%2Cfondation+%2Croi%2C+baudoin%2C+aquagym%2C+b%C3%A9b%C3%A9+nageur%2C+pr%C3%A9paration+accouchement';
var metaContents  = 'asbl+aufildeleau+b%C3%A2ti+une+maison+daccueil+et+une+piscine+pour+handicap%C3%A9s+pour+d%C3%A9velopper+leur+bien-%C3%AAtre+gr%C3%A2ce+%C3%A0+lhydroth%C3%A9rapie+et+un+accueil+adapt%C3%A9+%C3%A0+leur+handicap.';
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();
};
