/* [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','305901',jdecode('Bienvenue'),jdecode(''), jdecode('%2F305901.html'), 'true',[],'',''],
	['PAGE','401',jdecode('Accueil'),jdecode(''), jdecode('%2F401%2Findex.html'), 'true',[ 
		['PAGE','207101',jdecode('Situation'),jdecode(''), jdecode('%2F401%2F207101.html'), 'true',[],'',''],
		['PAGE','272501',jdecode('Plan+d%26%23x27%3BEtagni%C3%A8res'),jdecode(''), jdecode('%2F401%2F272501.html'), 'true',[],'',''],
		['PAGE','473',jdecode('Agenda'),jdecode(''), jdecode('%2F401%2F473.html'), 'true',[],'',''],
		['PAGE','494',jdecode('Historique'),jdecode(''), jdecode('%2F401%2F494.html'), 'true',[],'','']
	],'',''],
	['PAGE','515',jdecode('Administration'),jdecode(''), jdecode('%2F515%2Findex.html'), 'true',[ 
		['PAGE','536',jdecode('Personnel+administratif'),jdecode(''), jdecode('%2F515%2F536.html'), 'true',[],'',''],
		['PAGE','557',jdecode('Personnel+technique'),jdecode(''), jdecode('%2F515%2F557.html'), 'true',[],'','']
	],'',''],
	['PAGE','641',jdecode('Infos+Contr%C3%B4le+Des+Habitants'),jdecode(''), jdecode('%2F641%2Findex.html'), 'true',[ 
		['PAGE','229243',jdecode('Contr%C3%B4le+Des+Habitants'),jdecode(''), jdecode('%2F641%2F229243.html'), 'true',[],'',''],
		['PAGE','375334',jdecode('Police+des+%C3%A9trangers'),jdecode(''), jdecode('%2F641%2F375334.html'), 'true',[],'',''],
		['PAGE','350434',jdecode('Passeports+2010'),jdecode(''), jdecode('%2F641%2F350434.html'), 'true',[],'','']
	],'',''],
	['PAGE','385634',jdecode('Infos+greffe'),jdecode(''), jdecode('%2F385634%2Findex.html'), 'true',[ 
		['PAGE','364634',jdecode('Greffe%2C+formulaires+'),jdecode(''), jdecode('%2F385634%2F364634.html'), 'true',[],'',''],
		['PAGE','229264',jdecode('Construction%2C+formulaires+et+liens'),jdecode(''), jdecode('%2F385634%2F229264.html'), 'true',[],'',''],
		['PAGE','324801',jdecode('R%C3%A8glements+communaux'),jdecode(''), jdecode('%2F385634%2F324801.html'), 'true',[],'','']
	],'',''],
	['PAGE','394334',jdecode('Vignette+v%C3%A9lo'),jdecode(''), jdecode('%2F394334.html'), 'true',[],'',''],
	['PAGE','578',jdecode('Autorit%C3%A9s'),jdecode(''), jdecode('%2F578%2Findex.html'), 'true',[ 
		['PAGE','599',jdecode('Municipalit%C3%A9'),jdecode(''), jdecode('%2F578%2F599.html'), 'true',[],'',''],
		['PAGE','620',jdecode('Conseil+Communal'),jdecode(''), jdecode('%2F578%2F620.html'), 'true',[],'','']
	],'',''],
	['PAGE','385655',jdecode('Infos+pratiques'),jdecode(''), jdecode('%2F385655%2Findex.html'), 'true',[ 
		['PAGE','332334',jdecode('R%C3%A9fectoire+scolaire+'),jdecode(''), jdecode('%2F385655%2F332334.html'), 'true',[],'',''],
		['PAGE','324101',jdecode('Garderie+l%26%23x27%3BArc-en-Ciel'),jdecode(''), jdecode('%2F385655%2F324101.html'), 'true',[],'',''],
		['PAGE','229201',jdecode('Activit%C3%A9s+sportives'),jdecode(''), jdecode('%2F385655%2F229201.html'), 'true',[],'',''],
		['PAGE','229222',jdecode('Activit%C3%A9s+culturelles'),jdecode(''), jdecode('%2F385655%2F229222.html'), 'true',[],'',''],
		['PAGE','704',jdecode('Education'),jdecode(''), jdecode('%2F385655%2F704.html'), 'true',[],'',''],
		['PAGE','662',jdecode('Soins'),jdecode(''), jdecode('%2F385655%2F662.html'), 'true',[],'',''],
		['PAGE','348734',jdecode('Autres+instances'),jdecode(''), jdecode('%2F385655%2F348734.html'), 'true',[],'','']
	],'',''],
	['PAGE','381734',jdecode('Police'),jdecode(''), jdecode('%2F381734.html'), 'true',[],'',''],
	['PAGE','725',jdecode('Sports+et+loisirs'),jdecode(''), jdecode('%2F725%2Findex.html'), 'true',[ 
		['PAGE','246401',jdecode('Soci%C3%A9t%C3%A9s+sportives'),jdecode(''), jdecode('%2F725%2F246401.html'), 'true',[],'',''],
		['PAGE','246422',jdecode('Soci%C3%A9t%C3%A9s+de+loisirs'),jdecode(''), jdecode('%2F725%2F246422.html'), 'true',[],'','']
	],'',''],
	['PAGE','746',jdecode('Entreprises'),jdecode(''), jdecode('%2F746%2Findex.html'), 'true',[ 
		['PAGE','232601',jdecode('Alimentation'),jdecode(''), jdecode('%2F746%2F232601.html'), 'true',[],'',''],
		['PAGE','232622',jdecode('Atelier+m%C3%A9canique'),jdecode(''), jdecode('%2F746%2F232622.html'), 'true',[],'',''],
		['PAGE','232643',jdecode('Automobile'),jdecode(''), jdecode('%2F746%2F232643.html'), 'true',[],'',''],
		['PAGE','233301',jdecode('Brocante'),jdecode(''), jdecode('%2F746%2F233301.html'), 'true',[],'',''],
		['PAGE','232685',jdecode('Construction'),jdecode(''), jdecode('%2F746%2F232685.html'), 'true',[],'',''],
		['PAGE','338234',jdecode('Energies'),jdecode(''), jdecode('%2F746%2F338234.html'), 'true',[],'',''],
		['PAGE','232706',jdecode('Habitat'),jdecode(''), jdecode('%2F746%2F232706.html'), 'true',[],'',''],
		['PAGE','252201',jdecode('Industrie'),jdecode(''), jdecode('%2F746%2F252201.html'), 'true',[],'',''],
		['PAGE','232769',jdecode('Machines'),jdecode(''), jdecode('%2F746%2F232769.html'), 'true',[],'',''],
		['PAGE','234401',jdecode('Restaurants'),jdecode(''), jdecode('%2F746%2F234401.html'), 'true',[],'',''],
		['PAGE','232790',jdecode('Services'),jdecode(''), jdecode('%2F746%2F232790.html'), 'true',[],'',''],
		['PAGE','232811',jdecode('Signalisation'),jdecode(''), jdecode('%2F746%2F232811.html'), 'true',[],'',''],
		['PAGE','233722',jdecode('Soins'),jdecode(''), jdecode('%2F746%2F233722.html'), 'true',[],'','']
	],'',''],
	['PAGE','371334',jdecode('Elections+comm.'),jdecode(''), jdecode('%2F371334.html'), 'true',[],'',''],
	['PAGE','767',jdecode('Liens'),jdecode(''), jdecode('%2F767.html'), 'true',[],'',''],
	['PAGE','788',jdecode('Plan+du+site'),jdecode(''), jdecode('%2F788.html'), 'true',[],'','']];
var siteelementCount=50;
theSitetree.topTemplateName='Finance';
theSitetree.paletteFamily='EBF2FF';
theSitetree.keyvisualId='2732';
theSitetree.keyvisualName='computer.jpg';
theSitetree.fontsetId='10411';
theSitetree.graphicsetId='10675';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'fr',
  country: 'FR'
};
var prodDef={
  wl_name: 'bluewin',
  product: 'WSCBLUSSSLYTC2MX'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Finance',
				paletteFamily: 	'EBF2FF',
				keyvisualId: 	'2732',
				keyvisualName: 	'computer.jpg',
				fontsetId: 		'10411',
				graphicsetId: 	'10675',
				contentColor: 	'000000',
				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['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20120202-160309'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '305901',
internalId:  '',
customField: '20120209-104730'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '473',
internalId:  '',
customField: '20120209-140346'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '207101',
internalId:  '',
customField: '20120209-140706'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '272501',
internalId:  '',
customField: '20120209-105233'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '494',
internalId:  '',
customField: '20071211-125713'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '515',
internalId:  '',
customField: '20111129-094237'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '536',
internalId:  '',
customField: '20110117-201045'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '557',
internalId:  '',
customField: '20110510-100953'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '578',
internalId:  '',
customField: '20111004-104448'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '599',
internalId:  '',
customField: '20111004-105645'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '620',
internalId:  '',
customField: '20111027-134959'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '725',
internalId:  '',
customField: '20071211-130743'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '246401',
internalId:  '',
customField: '20110922-083047'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '246422',
internalId:  '',
customField: '20120209-150256'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '746',
internalId:  '',
customField: '20120207-150405'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '232601',
internalId:  '',
customField: '20120119-083038'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '232622',
internalId:  '',
customField: '20100701-134630'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '232643',
internalId:  '',
customField: '20100701-135058'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '233301',
internalId:  '',
customField: '20071026-121952'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '232685',
internalId:  '',
customField: '20110519-155634'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '232706',
internalId:  '',
customField: '20110505-145359'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '252201',
internalId:  '',
customField: '20071106-162152'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '232769',
internalId:  '',
customField: '20071026-124031'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '234401',
internalId:  '',
customField: '20090514-083158'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '232790',
internalId:  '',
customField: '20110418-193640'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '232811',
internalId:  '',
customField: '20100413-155617'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '233722',
internalId:  '',
customField: '20100531-185825'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '641',
internalId:  '',
customField: '20120209-141415'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '662',
internalId:  '',
customField: '20090723-143105'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '704',
internalId:  '',
customField: '20111013-134749'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '229201',
internalId:  '',
customField: '20090507-160923'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '229222',
internalId:  '',
customField: '20090723-143407'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '229243',
internalId:  '',
customField: '20110510-100042'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '229264',
internalId:  '',
customField: '20120209-141128'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '767',
internalId:  '',
customField: '20111110-145427'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '788',
internalId:  '',
customField: '20071123-211052'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '324101',
internalId:  '',
customField: '20101228-151926'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '324801',
internalId:  '',
customField: '20120209-141116'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '332334',
internalId:  '',
customField: '20111004-103306'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '338234',
internalId:  '',
customField: '20090730-141212'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '348734',
internalId:  '',
customField: '20100126-143616'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '350434',
internalId:  '',
customField: '20110125-094319'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '305901',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '364634',
internalId:  '',
customField: '20110912-191700'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '394334',
internalId:  '-',
customField: '20120221-101107'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '371334',
internalId:  '',
customField: '20110315-110451'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '375334',
internalId:  '',
customField: '20110510-100000'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '381734',
internalId:  '',
customField: '20120209-140739'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '385634',
internalId:  '-',
customField: '20120209-141715'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '385655',
internalId:  '-',
customField: '20120202-152451'
};
var webAppHostname = 'cgi.hpt001.bluewin.ch:80';
var canonHostname = 'hptworkerdb01a.bluewin.ch';
var accountId     = 'ABW0X0IN23SJ';
var companyName   = 'Commune+d%27Etagni%C3%A8res';
var htmlTitle	  = 'Commune+dEtagni%C3%A8res';
var metaKeywords  = 'village++communaut%C3%A9++cit%C3%A9++bourg++habitant++';
var metaContents  = 'commune++municipalit%C3%A9++syndic++Gros-de-Vaud++Vaud++communal++';
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();
};

