/* [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','1401',jdecode('Home'),jdecode(''), jdecode('%2F1401.html'), 'true',[],'',''],
	['PAGE','1452',jdecode('Historique'),jdecode(''), jdecode('%2F1452.html'), 'true',[],'',''],
	['PAGE','7001',jdecode('Notre+comit%C3%A9'),jdecode(''), jdecode('%2F7001.html'), 'true',[],'',''],
	['PAGE','1536',jdecode('Agenda'),jdecode(''), jdecode('%2F1536.html'), 'true',[],'',''],
	['PAGE','13101',jdecode('Photos+membres'),jdecode(''), jdecode('%2F13101%2Findex.html'), 'true',[ 
		['PAGE','243801',jdecode('Photos+d%C3%A9salpe+2011'),jdecode(''), jdecode('%2F13101%2F243801.html'), 'true',[],'',''],
		['PAGE','238901',jdecode('Photos+d%C3%A9salpe+2010'),jdecode(''), jdecode('%2F13101%2F238901.html'), 'true',[],'',''],
		['PAGE','235201',jdecode('Photos+grillade+2010'),jdecode(''), jdecode('%2F13101%2F235201.html'), 'true',[],'',''],
		['PAGE','222901',jdecode('Photos+St-Luc+2010'),jdecode(''), jdecode('%2F13101%2F222901.html'), 'true',[],'',''],
		['PAGE','205501',jdecode('Photos+Basse+Ruche+09'),jdecode(''), jdecode('%2F13101%2F205501.html'), 'true',[],'',''],
		['PAGE','184401',jdecode('Photos+Zweisimmen+09'),jdecode(''), jdecode('%2F13101%2F184401.html'), 'true',[],'',''],
		['PAGE','188401',jdecode('Photos+Vermeilley+08'),jdecode(''), jdecode('%2F13101%2F188401.html'), 'true',[],'',''],
		['PAGE','113501',jdecode('Photos+d%C3%A9salpe+08'),jdecode(''), jdecode('%2F13101%2F113501.html'), 'true',[],'',''],
		['PAGE','103601',jdecode('Photos+rafting+08'),jdecode(''), jdecode('%2F13101%2F103601.html'), 'true',[],'',''],
		['PAGE','94901',jdecode('Photos+Zinal+08'),jdecode(''), jdecode('%2F13101%2F94901.html'), 'true',[],'',''],
		['PAGE','76401',jdecode('Photos+Tr%C3%A9lasse+07'),jdecode(''), jdecode('%2F13101%2F76401.html'), 'true',[],'',''],
		['PAGE','62301',jdecode('Photos+d%C3%A9salpe+07'),jdecode(''), jdecode('%2F13101%2F62301.html'), 'true',[],'',''],
		['PAGE','62322',jdecode('Photos+Grimentz+06'),jdecode(''), jdecode('%2F13101%2F62322.html'), 'true',[],'',''],
		['PAGE','62343',jdecode('Photos+Ski+nautique+06'),jdecode(''), jdecode('%2F13101%2F62343.html'), 'true',[],'',''],
		['PAGE','69301',jdecode('Photos+d%C3%A9salpe+06'),jdecode(''), jdecode('%2F13101%2F69301.html'), 'true',[],'',''],
		['PAGE','57522',jdecode('Photos+f%C3%AAtes+du+ski+06'),jdecode(''), jdecode('%2F13101%2F57522.html'), 'true',[],'','']
	],'',''],
	['PAGE','235222',jdecode('F%C3%AAte+du+ski+2011'),jdecode(''), jdecode('%2F235222%2Findex.html'), 'true',[ 
		['PAGE','242101',jdecode('Programme+4.02.2011'),jdecode(''), jdecode('%2F235222%2F242101.html'), 'true',[],'',''],
		['PAGE','242122',jdecode('Programme+5.02.2011'),jdecode(''), jdecode('%2F235222%2F242122.html'), 'true',[],'',''],
		['PAGE','242143',jdecode('R%C3%A9sultats+enfants'),jdecode(''), jdecode('%2F235222%2F242143.html'), 'true',[],'',''],
		['PAGE','242164',jdecode('R%C3%A9sultats+slalom'),jdecode(''), jdecode('%2F235222%2F242164.html'), 'true',[],'',''],
		['PAGE','242185',jdecode('R%C3%A9sultats+descente'),jdecode(''), jdecode('%2F235222%2F242185.html'), 'true',[],'',''],
		['PAGE','242206',jdecode('Photos+f%C3%AAte+du+ski'),jdecode(''), jdecode('%2F235222%2F242206.html'), 'true',[],'','']
	],'',''],
	['PAGE','215701',jdecode('F%C3%AAte+du+Ski+2010'),jdecode(''), jdecode('%2F215701%2Findex.html'), 'true',[ 
		['PAGE','215801',jdecode('Programme+19.02.2010'),jdecode(''), jdecode('%2F215701%2F215801.html'), 'true',[],'',''],
		['PAGE','215822',jdecode('Programme+20.02.2010'),jdecode(''), jdecode('%2F215701%2F215822.html'), 'true',[],'',''],
		['PAGE','215864',jdecode('R%C3%A9sultats+enfants'),jdecode(''), jdecode('%2F215701%2F215864.html'), 'true',[],'',''],
		['PAGE','215885',jdecode('R%C3%A9sultats+slalom'),jdecode(''), jdecode('%2F215701%2F215885.html'), 'true',[],'',''],
		['PAGE','215843',jdecode('R%C3%A9sultats+descente'),jdecode(''), jdecode('%2F215701%2F215843.html'), 'true',[],'',''],
		['PAGE','215906',jdecode('Photos+f%C3%AAte+du+ski'),jdecode(''), jdecode('%2F215701%2F215906.html'), 'true',[],'','']
	],'',''],
	['PAGE','53001',jdecode('F%C3%AAte+du+ski+2009'),jdecode(''), jdecode('%2F53001%2Findex.html'), 'true',[ 
		['PAGE','140522',jdecode('Programme+6.02.2009'),jdecode(''), jdecode('%2F53001%2F140522.html'), 'true',[],'',''],
		['PAGE','142801',jdecode('Programme+7.02.2009'),jdecode(''), jdecode('%2F53001%2F142801.html'), 'true',[],'',''],
		['PAGE','10422',jdecode('R%C3%A9sultats+descente+09'),jdecode(''), jdecode('%2F53001%2F10422.html'), 'true',[],'',''],
		['PAGE','10401',jdecode('R%C3%A9sultats+enfants+09'),jdecode(''), jdecode('%2F53001%2F10401.html'), 'true',[],'',''],
		['PAGE','10443',jdecode('R%C3%A9sultats+slalom+09'),jdecode(''), jdecode('%2F53001%2F10443.html'), 'true',[],'',''],
		['PAGE','49301',jdecode('Photos+f%C3%AAte+du+ski+09'),jdecode(''), jdecode('%2F53001%2F49301.html'), 'true',[],'','']
	],'',''],
	['PAGE','57501',jdecode('Archives'),jdecode(''), jdecode('%2F57501.html'), 'true',[],'',''],
	['PAGE','1578',jdecode('Nous+contacter'),jdecode(''), jdecode('%2F1578.html'), 'true',[],'',''],
	['PAGE','10464',jdecode('Liens'),jdecode(''), jdecode('%2F10464.html'), 'true',[],'',''],
	['PAGE','13017',jdecode('Livre+d%26%23x27%3Bor+'),jdecode(''), jdecode('%2F13017.html'), 'true',[],'',''],
	['PAGE','13012',jdecode('Vos+messages'),jdecode(''), jdecode('%2F13012.html'), 'false',[],'','']];
var siteelementCount=47;
theSitetree.topTemplateName='Gaudy';
theSitetree.paletteFamily='5C5D96';
theSitetree.keyvisualId='5933';
theSitetree.keyvisualName='kv_5933.jpg';
theSitetree.fontsetId='11113';
theSitetree.graphicsetId='11905';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='6E8BCE';
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: 			'Gaudy',
				paletteFamily: 	'5C5D96',
				keyvisualId: 	'5933',
				keyvisualName: 	'kv_5933.jpg',
				fontsetId: 		'11113',
				graphicsetId: 	'11905',
				contentColor: 	'FFFFFF',
				contentBGColor: '6E8BCE',
				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['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1401',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '215701',
internalId:  '',
customField: '20100216-211643'
};
webappMappings['1002']=webappMappings['1002-13017abw1x0in2hyn']={
webappId:    '1002',
documentId:  '13017',
internalId:  '13017abw1x0in2hyn',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1401',
internalId:  '',
customField: '20111024-195956'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '215822',
internalId:  '',
customField: '20110103-230538'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '215843',
internalId:  '',
customField: '20100223-080349'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '215864',
internalId:  '',
customField: '20100222-153200'
};
webappMappings['1501']=webappMappings['1501-17802303']={
webappId:    '1501',
documentId:  '1401',
internalId:  '17802303',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1452',
internalId:  '',
customField: '20101004-220919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '205501',
internalId:  '',
customField: '20090922-072426'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7001',
internalId:  '',
customField: '20100923-080600'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1536',
internalId:  '',
customField: '20111024-200706'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13101',
internalId:  '',
customField: '20090917-071906'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '113501',
internalId:  '',
customField: '20090118-134733'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '103601',
internalId:  '',
customField: '20090126-202330'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94901',
internalId:  '',
customField: '20090118-130627'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76401',
internalId:  '',
customField: '20090118-130901'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62301',
internalId:  '',
customField: '20090118-131105'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62322',
internalId:  '',
customField: '20090118-131204'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62343',
internalId:  '',
customField: '20090118-131315'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69301',
internalId:  '',
customField: '20090118-131423'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53001',
internalId:  '',
customField: '20090131-165246'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '140522',
internalId:  '',
customField: '20090126-202447'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '142801',
internalId:  '',
customField: '20090118-144846'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10422',
internalId:  '',
customField: '20090215-112725'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10401',
internalId:  '',
customField: '20090215-112606'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10443',
internalId:  '',
customField: '20090216-140154'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49301',
internalId:  '',
customField: '20090216-135117'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '184401',
internalId:  '',
customField: '20090913-212603'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '188401',
internalId:  '',
customField: '20090303-103145'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57501',
internalId:  '',
customField: '20100923-080701'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57522',
internalId:  '',
customField: '20090118-220437'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1578',
internalId:  '',
customField: '20100923-080720'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10464',
internalId:  '',
customField: '20100923-080737'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13017',
internalId:  '',
customField: '20100923-080806'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13012',
internalId:  '',
customField: '20071014-161916'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '215801',
internalId:  '',
customField: '20110103-230509'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '215885',
internalId:  '',
customField: '20100223-080504'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '215906',
internalId:  '',
customField: '20100921-234720'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '222901',
internalId:  '',
customField: '20100314-164747'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '235201',
internalId:  '',
customField: '20100921-234229'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '235222',
internalId:  '',
customField: '20110103-221157'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '238901',
internalId:  '',
customField: '20101004-211644'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '242101',
internalId:  '',
customField: '20110103-230732'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '242122',
internalId:  '',
customField: '20110105-074900'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '242206',
internalId:  '',
customField: '20110103-222106'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '242185',
internalId:  '',
customField: '20110103-222106'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '242164',
internalId:  '',
customField: '20110103-222106'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '242143',
internalId:  '',
customField: '20110103-222106'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '243801',
internalId:  '',
customField: '20111024-193103'
};
var webAppHostname = 'cgi.hpt001.bluewin.ch:80';
var canonHostname = 'hptworkerdb01a.bluewin.ch';
var accountId     = 'ABW1X0IN2HYN';
var companyName   = 'Ski+Club++Arzier++St-Cergue';
var htmlTitle	  = 'www.ski-club-arzier-st-cergue.ch';
var metaKeywords  = 'Ski+Club+Arzier+St-Cergue';
var metaContents  = 'http%3A%2F%2Fwww.ski-club-arzier-st-cergue.ch%2Csite+officiel+du+Ski+Club%2Cpr%C3%A9sident+Eric+Jaquet+%C3%A0+Arzier%2C+le+Ski+Club+organise+la+f%C3%AAte+du+ski+le+6+et+7+f%C3%A9vrier+2009+%C3%A0+St-Cergue++';
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();
};

