/* [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(''), jdecode('%2F201.html'), 'true',[],'',''],
	['PAGE','207',jdecode('Qui+sommes+nous%3F'),jdecode(''), jdecode('%2F207%2Findex.html'), 'true',[ 
		['PAGE','60201',jdecode('Motivations'),jdecode(''), jdecode('%2F207%2F60201.html'), 'true',[],'',''],
		['PAGE','212',jdecode('Nos+membres'),jdecode(''), jdecode('%2F207%2F212.html'), 'true',[],'','']
	],'',''],
	['PAGE','69301',jdecode('Notre+projet'),jdecode(''), jdecode('%2F69301%2Findex.html'), 'true',[ 
		['PAGE','39601',jdecode('Travaux'),jdecode(''), jdecode('%2F69301%2F39601.html'), 'true',[],'',''],
		['PAGE','169123',jdecode('La+piscine+adapt%C3%A9e'),jdecode(''), jdecode('%2F69301%2F169123.html'), 'true',[],'',''],
		['PAGE','204423',jdecode('La+cr%C3%A8che+mixte'),jdecode(''), jdecode('%2F69301%2F204423.html'), 'true',[],'',''],
		['PAGE','204444',jdecode('La+r%C3%A9sidence+service'),jdecode(''), jdecode('%2F69301%2F204444.html'), 'true',[],'','']
	],'',''],
	['PAGE','209523',jdecode('Nos+cours'),jdecode(''), jdecode('%2F209523.html'), 'true',[],'',''],
	['PAGE','99601',jdecode('Nos+tarifs'),jdecode(''), jdecode('%2F99601.html'), 'true',[],'',''],
	['PAGE','231534',jdecode('Planning+journalier'),jdecode(''), jdecode('%2F231534.html'), 'true',[],'',''],
	['PAGE','213123',jdecode('Nos+activit%C3%A9s'),jdecode(''), jdecode('%2F213123%2Findex.html'), 'true',[ 
		['PAGE','213144',jdecode('Souper+d%26%23x27%3BAutomne'),jdecode(''), jdecode('%2F213123%2F213144.html'), 'true',[],'',''],
		['PAGE','212223',jdecode('Journ%C3%A9es-Rencontres'),jdecode(''), jdecode('%2F213123%2F212223.html'), 'true',[],'','']
	],'',''],
	['PAGE','202423',jdecode('Nous+Soutenir'),jdecode(''), jdecode('%2F202423%2Findex.html'), 'true',[ 
		['PAGE','202923',jdecode('Don'),jdecode(''), jdecode('%2F202423%2F202923.html'), 'true',[],'',''],
		['PAGE','203023',jdecode('Legs'),jdecode(''), jdecode('%2F202423%2F203023.html'), 'true',[],'',''],
		['PAGE','242',jdecode('Partenaires'),jdecode(''), jdecode('%2F202423%2F242.html'), 'true',[],'','']
	],'',''],
	['PAGE','212244',jdecode('Bonus'),jdecode(''), jdecode('%2F212244%2Findex.html'), 'true',[ 
		['PAGE','68701',jdecode('Collecte+Bouchons'),jdecode(''), jdecode('%2F212244%2F68701.html'), 'true',[],'',''],
		['PAGE','147612',jdecode('Journal+des+p%C3%A9lerins'),jdecode(''), jdecode('%2F212244%2F147612.html'), 'true',[],'','']
	],'',''],
	['PAGE','204123',jdecode('Archives'),jdecode(''), jdecode('%2F204123%2Findex.html'), 'true',[ 
		['PAGE','146001',jdecode('Archives+2010.'),jdecode(''), jdecode('%2F204123%2F146001.html'), 'true',[],'',''],
		['PAGE','140501',jdecode('Archives+2009.'),jdecode(''), jdecode('%2F204123%2F140501.html'), 'true',[],'',''],
		['PAGE','117001',jdecode('Archives+2008.'),jdecode(''), jdecode('%2F204123%2F117001.html'), 'true',[],'',''],
		['PAGE','103001',jdecode('Archives+2007.'),jdecode(''), jdecode('%2F204123%2F103001.html'), 'true',[],'',''],
		['PAGE','237',jdecode('Archives+2006.'),jdecode(''), jdecode('%2F204123%2F237.html'), 'true',[],'',''],
		['PAGE','232',jdecode('Archives+2005.'),jdecode(''), jdecode('%2F204123%2F232.html'), 'true',[],'',''],
		['PAGE','227',jdecode('Archives+2004.'),jdecode(''), jdecode('%2F204123%2F227.html'), 'true',[],'',''],
		['PAGE','222',jdecode('Archives+2003.'),jdecode(''), jdecode('%2F204123%2F222.html'), 'true',[],'','']
	],'',''],
	['PAGE','151923',jdecode('Photos'),jdecode(''), jdecode('%2F151923.html'), 'true',[],'',''],
	['PAGE','33201',jdecode('Contact'),jdecode(''), jdecode('%2F33201.html'), 'true',[],'','']];
var siteelementCount=33;
theSitetree.topTemplateName='Grace';
theSitetree.paletteFamily='80B3EC';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='32047';
theSitetree.graphicsetId='13871';
theSitetree.contentColor='484848';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'enom',
  product: 'WSCENOSSSLYTC21T'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Grace',
				paletteFamily: 	'80B3EC',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'32047',
				graphicsetId: 	'13871',
				contentColor: 	'484848',
				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:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '201',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '231534',
internalId:  '',
customField: '20110610-095909'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '202423',
internalId:  '',
customField: '20101022-071851'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '201',
internalId:  '',
customField: '20120125-080602'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '99601',
internalId:  '',
customField: '20110526-084644'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68701',
internalId:  '',
customField: '20110422-073207'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '207',
internalId:  '',
customField: '20100507-055549'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60201',
internalId:  '',
customField: '20100930-080835'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '212',
internalId:  '',
customField: '20120104-072932'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69301',
internalId:  '',
customField: '20101022-083700'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39601',
internalId:  '',
customField: '20101022-085956'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '169123',
internalId:  '',
customField: '20101028-100959'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '117001',
internalId:  '',
customField: '20100129-093403'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '103001',
internalId:  '',
customField: '20090425-114728'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '237',
internalId:  '',
customField: '20090425-114351'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '232',
internalId:  '',
customField: '20060415-104349'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '227',
internalId:  '',
customField: '20060416-031402'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '222',
internalId:  '',
customField: '20050325-005358'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '242',
internalId:  '',
customField: '20110422-073053'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33201',
internalId:  '',
customField: '20110422-073330'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '151923',
internalId:  '',
customField: '20110503-080552'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '140501',
internalId:  '',
customField: '20100129-094759'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '146001',
internalId:  '',
customField: '20110105-061723'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '147612',
internalId:  '',
customField: '20101110-084408'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '202923',
internalId:  '',
customField: '20120104-075757'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '203023',
internalId:  '',
customField: '20110422-072807'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '204123',
internalId:  '',
customField: '20111215-072325'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '204423',
internalId:  '',
customField: '20101028-072308'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '204444',
internalId:  '',
customField: '20101028-072712'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '209523',
internalId:  '',
customField: '20120111-060937'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '212223',
internalId:  '',
customField: '20120104-073429'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '212244',
internalId:  '',
customField: '20101110-085540'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '213123',
internalId:  '',
customField: '20101112-062937'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '213144',
internalId:  '',
customField: '20101112-073909'
};
webappMappings['7060']=webappMappings['7060-4d86f8b28d68191a66315c0906048cdd']={
webappId:    '7060',
documentId:  '231534',
internalId:  '4d86f8b28d68191a66315c0906048cdd',
customField: 'language:en;country:US;'
};
var webAppHostname = 'wsc.ehost-services.com:80';
var canonHostname = 'wscwrk01.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();
};

