/* [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','4519',jdecode('Home'),jdecode(''),'/4519.html','true',[],'',''],
	['PAGE','4576',jdecode('Qui+sommes-nous%3F'),jdecode(''),'/4576/index.html','true',[ 
		['PAGE','11329',jdecode('Magasin'),jdecode(''),'/4576/11329.html','true',[],'',''],
		['PAGE','11356',jdecode('Atelier'),jdecode(''),'/4576/11356.html','true',[],'','']
	],'',''],
	['PAGE','4657',jdecode('Produits%2C+services'),jdecode(''),'/4657/index.html','true',[ 
		['PAGE','4684',jdecode('Chaussures+Orthop%C3%A9diques'),jdecode(''),'/4657/4684.html','true',[],'',''],
		['PAGE','4711',jdecode('Support+plantaires'),jdecode(''),'/4657/4711.html','true',[],'',''],
		['PAGE','15391',jdecode('Orth%C3%A8ses+et+Proth%C3%A8ses'),jdecode(''),'/4657/15391.html','true',[],'',''],
		['PAGE','12513',jdecode('Bandages'),jdecode(''),'/4657/12513.html','true',[],'',''],
		['PAGE','15418',jdecode('Chaussures+pour+bandages'),jdecode(''),'/4657/15418.html','true',[],'','']
	],'',''],
	['PAGE','15764',jdecode('R%C3%A9alisation'),jdecode(''),'/15764.html','true',[],'',''],
	['PAGE','5404',jdecode('Horaires'),jdecode(''),'/5404.html','true',[],'',''],
	['PAGE','4765',jdecode('Contact'),jdecode(''),'/4765.html','true',[],'',''],
	['PAGE','11733',jdecode('Renseignements'),jdecode(''),'/11733/index.html','true',[ 
		['PAGE','11780',jdecode('Services+%28Folgeseite%29'),jdecode(''),'/11733/11780.html','false',[],'','']
	],'',''],
	['PAGE','4900',jdecode('Emploi'),jdecode(''),'/4900.html','true',[],'',''],
	['PAGE','19005',jdecode('Acc%C3%A8s'),jdecode(''),'/19005.html','true',[],'',''],
	['PAGE','19040',jdecode('Comment+nous+trouver'),jdecode(''),'/19040.html','true',[],'','']];
var siteelementCount=18;
theSitetree.topTemplateName='Reflectance';
theSitetree.paletteFamily='E6E07B';
theSitetree.keyvisualId='3615';
theSitetree.keyvisualName='kv_3615.jpg';
theSitetree.fontsetId='10453';
theSitetree.graphicsetId='10857';
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: 			'Reflectance',
				paletteFamily: 	'E6E07B',
				keyvisualId: 	'3615',
				keyvisualName: 	'kv_3615.jpg',
				fontsetId: 		'10453',
				graphicsetId: 	'10857',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'E6E07B',
				e_color: 		'797641',
				f_color: 		'A09D9D',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4519',
internalId:  '1006',
customField: '1006'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '19005',
internalId:  'location',
customField: 'language:fr;country:FR;isIncluded:false;'
};
webappMappings['2002']=webappMappings['2002-routing']={
webappId:    '2002',
documentId:  '19040',
internalId:  'routing',
customField: 'fr_FR'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4576',
internalId:  '',
customField: '20061011-203335'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4519',
internalId:  '',
customField: '20050508-160247'
};
webappMappings['7008']=webappMappings['7008-9508']={
webappId:    '7008',
documentId:  '11733',
internalId:  '9508',
customField: 'language:fr;country:FR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11329',
internalId:  '',
customField: '20040120-170941'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11356',
internalId:  '',
customField: '20040213-160109'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4657',
internalId:  '',
customField: '20040331-175907'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4684',
internalId:  '',
customField: '20040107-160602'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4711',
internalId:  '',
customField: '20040107-161204'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15391',
internalId:  '',
customField: '20040107-160202'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12513',
internalId:  '',
customField: '20040107-160427'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15418',
internalId:  '',
customField: '20040331-175742'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15764',
internalId:  '',
customField: '20040415-094745'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5404',
internalId:  '',
customField: '20100409-140509'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4765',
internalId:  '',
customField: '20100409-140557'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11733',
internalId:  '',
customField: '20031110-191306'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11780',
internalId:  '',
customField: '20031022-144224'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4900',
internalId:  '',
customField: '20080819-212759'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19005',
internalId:  '',
customField: '20060521-154048'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19040',
internalId:  '',
customField: '20060521-154124'
};
var canonHostname = 'hptworkerdb01b.bluewin.ch';
var accountId     = 'ABW0X0INXES7';
var companyName   = 'DESPLAND+CHAUSSURES';
var htmlTitle	  = '';
var metaKeywords  = 'despland%2Cchaussure%2Corthop%C3%A9die%2Corthop%C3%A9dique%2Csemelles%2Cbottes%2Cbevaix%2Cbottier%2Cbandages';
var metaContents  = 'despland+chaussure%2Cmagasin+de+chaussures%2Cconsultations+orthop%C3%A9diques%2Catelier+orthop%C3%A9dique%2Catelier+de+r%C3%A9parations%2Cemploi+orthop%C3%A9dique';
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();
};

