/* [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','4597',jdecode('Accueil'),jdecode(''),'/4597.html','true',[],'',''],
	['PAGE','4654',jdecode('D%26%23x27%3Bo%C3%B9+venons-nous+%3F'),jdecode(''),'/4654/index.html','true',[ 
		['PAGE','4681',jdecode('Philo+%26+SITES+AMIS'),jdecode(''),'/4654/4681.html','true',[],'',''],
		['PAGE','4708',jdecode('Espace+de+cr%C3%A9ativit%C3%A9'),jdecode(''),'/4654/4708.html','true',[],'','']
	],'',''],
	['PAGE','15466',jdecode('Espace+infos'),jdecode(''),'/15466.html','true',[],'',''],
	['PAGE','4762',jdecode('Contact'),jdecode(''),'/4762/index.html','true',[ 
		['PAGE','7105',jdecode('Contact+%28Folgeseite%29'),jdecode(''),'/4762/7105.html','false',[],'',''],
		['PAGE','4789',jdecode('Adresse%2C+T%C3%A9l%C3%A9phone'),jdecode(''),'/4762/4789.html','true',[],'','']
	],'',''],
	['PAGE','4816',jdecode('Galannemarie'),jdecode(''),'/4816.html','true',[],'',''],
	['PAGE','174601',jdecode('Espace+commande'),jdecode(''),'/174601.html','true',[],'',''],
	['PAGE','189401',jdecode('Galerie+Po%C3%A9tique'),jdecode(''),'/189401.html','true',[],'',''],
	['PAGE','237801',jdecode('Hommage+%C3%A0+...'),jdecode(''),'/237801.html','true',[],'',''],
	['PAGE','182501',jdecode('Forum'),jdecode(''),'/182501.html','true',[],'',''],
	['PAGE','57845',jdecode('Livre+d%26%23x27%3Bor'),jdecode(''),'/57845.html','true',[],'',''],
	['PAGE','57846',jdecode('Entr%C3%A9es'),jdecode(''),'/57846.html','false',[],'',''],
	['PAGE','187601',jdecode('Presse'),jdecode(''),'/187601.html','true',[],'',''],
	['PAGE','58105',jdecode('Ecrivain+public+et+...'),jdecode(''),'/58105.html','true',[],'',''],
	['PAGE','74036',jdecode('Archives'),jdecode(''),'/74036.html','true',[],'',''],
	['PAGE','177701',jdecode('Acc%C3%A8s'),jdecode(''),'/177701.html','true',[],'',''],
	['PAGE','177801',jdecode('Ou+suis-je+%3F'),jdecode(''),'/177801.html','true',[],'','']];
var siteelementCount=20;
theSitetree.topTemplateName='Neon';
theSitetree.paletteFamily='CC0000';
theSitetree.keyvisualId='908';
theSitetree.keyvisualName='antiquitaeten2.jpg';
theSitetree.fontsetId='162';
theSitetree.graphicsetId='189';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='000000';
var localeDef={
  language: 'fr',
  country: 'FR'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Neon',
				paletteFamily: 	'CC0000',
				keyvisualId: 	'908',
				keyvisualName: 	'antiquitaeten2.jpg',
				fontsetId: 		'162',
				graphicsetId: 	'189',
				contentColor: 	'FFFFFF',
				contentBGColor: '000000',
				a_color: 		'000000',
				b_color: 		'666666',
				c_color: 		'000000',
				d_color: 		'6699CC',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4597',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4654',
internalId:  '',
customField: '20100128-235804'
};
webappMappings['1002']=webappMappings['1002-57845ABW0X0INXXAO']={
webappId:    '1002',
documentId:  '57845',
internalId:  '57845ABW0X0INXXAO',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4597',
internalId:  '',
customField: '20100128-235259'
};
webappMappings['4001']=webappMappings['4001-19982843']={
webappId:    '4001',
documentId:  '174601',
internalId:  '19982843',
customField: 'language:fr;country:FR;'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '177701',
internalId:  'location',
customField: 'language:fr;country:FR;isIncluded:false;'
};
webappMappings['2002']=webappMappings['2002-routing']={
webappId:    '2002',
documentId:  '177801',
internalId:  'routing',
customField: 'fr_FR'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4681',
internalId:  '',
customField: '20091231-034525'
};
webappMappings['1003']=webappMappings['1003-abw0x0inxxao117743b986d']={
webappId:    '1003',
documentId:  '182501',
internalId:  'abw0x0inxxao117743b986d',
customField: 'fr:FR:'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4708',
internalId:  '',
customField: '20100128-235909'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15466',
internalId:  '',
customField: '20091219-070222'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4762',
internalId:  '',
customField: '20090814-222540'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7105',
internalId:  '',
customField: '20041205-185426'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4789',
internalId:  '',
customField: '20091221-172526'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4816',
internalId:  '',
customField: '20100129-000630'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '174601',
internalId:  '',
customField: '20100129-000949'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '189401',
internalId:  '',
customField: '20091221-173541'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '237801',
internalId:  '',
customField: '20100129-001113'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '182501',
internalId:  '',
customField: '20100129-001308'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57845',
internalId:  '',
customField: '20100129-002020'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57846',
internalId:  '',
customField: '20081217-175858'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '187601',
internalId:  '',
customField: '20100129-002133'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58105',
internalId:  '',
customField: '20091028-134035'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74036',
internalId:  '',
customField: '20091221-234137'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '177701',
internalId:  '',
customField: '20080112-191155'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '177801',
internalId:  '',
customField: '20080112-191213'
};
webappMappings['7008']=webappMappings['7008-2348']={
webappId:    '7008',
documentId:  '4762',
internalId:  '2348',
customField: 'language:fr;country:FR;'
};
var canonHostname = 'hptworkerdb01b.bluewin.ch';
var accountId     = 'ABW0X0INXXAO';
var companyName   = 'Editions+Marc+Yvain';
var htmlTitle	  = 'Editions+Marc+Yvain';
var metaKeywords  = 'Dominique+Blattlin+-+Marc+Yvain+-+Pierre-Ren%C3%A9+Beljean+-+Ecrivain+public+-+Facteur+cheval+-+Georges+Brassens+-+Jean-Marie+Vivier+-+Roger+Blatter+-+Antoine+-+Pierre+Louki+-+Julos+Beaucarne+-+Raoul+de+Godewarsvelde+-+Henri+Tachan+-++Po%C3%A9sie+-+Po%C3%A9sies+-+Litt%C3%A9rature+-+Livres+-+Disques+-+Chanson+fran%C3%A7aise+-+Publications+-+Edition+-++Editions+-+Dialogues+-+Editeur+-+Attach%C3%A9+de+presse+-+Producteur+-++Po%C3%A9sie+vivante+-+Diffusion+-+Pr%C3%A9vert+-+Aragon+-+Brassens+-+A+lAube+dune+nouvelle+nuit+-+LEnfant+et+la+chiromancienne+-+Dis%21+Monsieur...+-+La+Peau+de+Garou...+et+autres+contes+fantastiques+-+Macha+B%C3%A9ranger+-+France+Inter+-+Olivier+Larronde+-+Bernard+Dimey+-+Pierre+Seghers+-+Jos%C3%A9phine+-+G%C3%A9rard+Prothais+-+Jean-Pierre+Huser+-+Michel+Polac+-+Pierre+Mac+Orlan+-+Guy+Authier+-+Jacques+Tornay+-+Groupe+des+Editions+Marc+Yvain+-+Ecrivain+Public+-+';
var metaContents  = 'Livres+-+disques+-+dialogues+-+Edition+-+Po%C3%A9sie+-+Po%C3%A9sies+-+Chanson+fran%C3%A7aise+-+Communication+-+Illustrations+-+Textes+-+publications+-+Le+texte+du+Mois+-+Litt%C3%A9rature+-+nouvelles+-+diffusion+-+musique+-+A+lAube+dune+nouvelle+nuit+-+LEnfant+et+la+chiromancienne+-+Macha+B%C3%A9ranger+-+France+Inter+-+Olivier+Larronde+-+La+peau+de+garou..+et+autres+contes+fantastiques+-+Dis%21+Monsieur...+-+Bernard+Dimey+-+Pierre+Seghers+-+Jos%C3%A9phine+-++G%C3%A9rard+Prothais+-+Jean-Pierre+Huser+-+Michel+Polac+-+Pierre+Mac+Orlan+-+Ecrivain+Public+-';
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();
};
