/* [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','501',jdecode('Home'),jdecode(''),'/501.html','true',[],'',''],
	['PAGE','573',jdecode('Qui+sommes-nous%3F'),jdecode(''),'/573/index.html','true',[ 
		['PAGE','67801',jdecode('Plan+de+situation'),jdecode(''),'/573/67801.html','true',[],'',''],
		['PAGE','60443',jdecode('R%C3%A9glement'),jdecode(''),'/573/60443.html','true',[],'','']
	],'',''],
	['PAGE','245901',jdecode('Album+saison+2010'),jdecode(''),'/245901/index.html','true',[ 
		['PAGE','261901',jdecode('M%C3%BCsswagen+2010'),jdecode(''),'/245901/261901.html','true',[],'',''],
		['PAGE','260101',jdecode('Expo+Alle'),jdecode(''),'/245901/260101.html','true',[],'',''],
		['PAGE','245985',jdecode('Humour'),jdecode(''),'/245901/245985.html','true',[],'',''],
		['PAGE','231501',jdecode('Photo+du+mois'),jdecode(''),'/245901/231501.html','true',[],'','']
	],'',''],
	['PAGE','146201',jdecode('Vid%C3%A9o'),jdecode(''),'/146201.html','true',[],'',''],
	['PAGE','60464',jdecode('Calendrier+2010'),jdecode(''),'/60464/index.html','true',[ 
		['PAGE','67401',jdecode('Bourse'),jdecode(''),'/60464/67401.html','true',[],'','']
	],'',''],
	['PAGE','60527',jdecode('Liens'),jdecode(''),'/60527/index.html','true',[ 
		['PAGE','66501',jdecode('Les+constructeurs'),jdecode(''),'/60527/66501.html','true',[],'',''],
		['PAGE','66543',jdecode('Sites+int%C3%A9ressants'),jdecode(''),'/60527/66543.html','true',[],'','']
	],'',''],
	['PAGE','60674',jdecode('Contact'),jdecode(''),'/60674.html','true',[],'',''],
	['PAGE','5606',jdecode('Livre+d%26%23x27%3Bor'),jdecode(''),'/5606/index.html','true',[ 
		['PAGE','5601',jdecode('Entr%C3%A9es'),jdecode(''),'/5606/5601.html','false',[],'','']
	],'','']];
var siteelementCount=18;
theSitetree.topTemplateName='Urban';
theSitetree.paletteFamily='FFA521';
theSitetree.keyvisualId='12173';
theSitetree.keyvisualName='kv_12173.jpg';
theSitetree.fontsetId='33332';
theSitetree.graphicsetId='14204';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'fr',
  country: 'FR'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Urban',
				paletteFamily: 	'FFA521',
				keyvisualId: 	'12173',
				keyvisualName: 	'kv_12173.jpg',
				fontsetId: 		'33332',
				graphicsetId: 	'14204',
				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:'Palatino Linotype, Book Antiqua, Palatino, serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1002']=webappMappings['1002-5606abw0x0in2rba']={
webappId:    '1002',
documentId:  '5606',
internalId:  '5606abw0x0in2rba',
customField: 'icq=false'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '501',
internalId:  '1006',
customField: '1006'
};
webappMappings['7008']=webappMappings['7008-526']={
webappId:    '7008',
documentId:  '60674',
internalId:  '526',
customField: 'language:fr;country:FR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '501',
internalId:  '',
customField: '20100804-113953'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '573',
internalId:  '',
customField: '20100409-191836'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '67801',
internalId:  '',
customField: '20100108-131921'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60443',
internalId:  '',
customField: '20100110-130922'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '245985',
internalId:  '',
customField: '20100109-112923'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '245901',
internalId:  '',
customField: '20100110-121000'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '261901',
internalId:  '',
customField: '20100531-215946'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '146201',
internalId:  '',
customField: '20100108-131444'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60464',
internalId:  '',
customField: '20100108-131218'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '67401',
internalId:  '',
customField: '20090131-130009'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60527',
internalId:  '',
customField: '20100108-131025'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66501',
internalId:  '',
customField: '20100108-131129'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66543',
internalId:  '',
customField: '20100104-112029'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60674',
internalId:  '',
customField: '20090131-131358'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5606',
internalId:  '',
customField: '20090131-131642'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5601',
internalId:  '',
customField: '20070117-115123'
};
webappMappings['7060']=webappMappings['7060-c09b64a7bd6cf679ff6617d11a52f926']={
webappId:    '7060',
documentId:  '245985',
internalId:  'c09b64a7bd6cf679ff6617d11a52f926',
customField: 'language:fr;country:FR;'
};
webappMappings['7060']=webappMappings['7060-24273c8a08cc79006921cb3f0d155aa4']={
webappId:    '7060',
documentId:  '245901',
internalId:  '24273c8a08cc79006921cb3f0d155aa4',
customField: 'language:fr;country:FR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '231501',
internalId:  '',
customField: '20100531-215628'
};
webappMappings['7060']=webappMappings['7060-a6ab07ff722ff1f33d08182a01ec6c7d']={
webappId:    '7060',
documentId:  '260101',
internalId:  'a6ab07ff722ff1f33d08182a01ec6c7d',
customField: 'language:fr;country:FR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '260101',
internalId:  '',
customField: '20100409-192031'
};
webappMappings['7060']=webappMappings['7060-3e4b479d26e4bcaf9e4648ab7f3e9961']={
webappId:    '7060',
documentId:  '261901',
internalId:  '3e4b479d26e4bcaf9e4648ab7f3e9961',
customField: 'language:fr;country:FR;'
};
var canonHostname = 'hptworkerdb01b.bluewin.ch';
var accountId     = 'ABW0X0IN2RBA';
var companyName   = 'AMICALE+LES+HELICES+DE+L%27ORVAL';
var htmlTitle	  = 'Les+H%C3%A9lices+de+l%27Orval';
var metaKeywords  = 'A%EF%BF%BDromod%EF%BF%BDlisme%2C+remorquage+planeur+rc';
var metaContents  = 'A%3Fromod%3Flisme%2C+plan+de+situation%2C+histoire%2C+Robin%2C+Yak+54%2C+Bellanca+Super+Decathlon%2C+Cessna+Skylane%2C+Extra+300s%2C+Mustang+P51+D%2C+Piper+Cub+J3%2C+photos+montages%2C+bidule+116%2C+remorquage+planeur';
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();
};
