/* [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','401',jdecode('Page+d%26%23x27%3Baccueil'),jdecode(''), jdecode('%2F401.html'), 'true',[],'',''],
	['PAGE','96501',jdecode('Nouvel+horaire'),jdecode(''), jdecode('%2F96501.html'), 'true',[],'',''],
	['PAGE','89101',jdecode('Les+News'),jdecode(''), jdecode('%2F89101.html'), 'true',[],'',''],
	['PAGE','96801',jdecode('Lissage+japonais'),jdecode(''), jdecode('%2F96801.html'), 'true',[],'',''],
	['PAGE','452',jdecode('Visagisme'),jdecode(''), jdecode('%2F452.html'), 'true',[],'',''],
	['PAGE','515',jdecode('Onglerie'),jdecode(''), jdecode('%2F515.html'), 'true',[],'',''],
	['PAGE','89701',jdecode('Espace+Messieurs'),jdecode(''), jdecode('%2F89701.html'), 'true',[],'',''],
	['PAGE','90001',jdecode('Goldwell'),jdecode(''), jdecode('%2F90001.html'), 'true',[],'',''],
	['PAGE','90801',jdecode('Concours+Goldwell+2010'),jdecode(''), jdecode('%2F90801.html'), 'true',[],'',''],
	['PAGE','494',jdecode('Nos+formations'),jdecode(''), jdecode('%2F494.html'), 'false',[],'',''],
	['PAGE','40901',jdecode('Services+%26+prix'),jdecode(''), jdecode('%2F40901.html'), 'true',[],'',''],
	['PAGE','4701',jdecode('Contact'),jdecode(''), jdecode('%2F4701%2Findex.html'), 'true',[ 
		['PAGE','13801',jdecode('Contact%28follow+up+page%29'),jdecode(''), jdecode('%2F4701%2F13801.html'), 'false',[],'','']
	],'','']];
var siteelementCount=13;
theSitetree.topTemplateName='Shadows';
theSitetree.paletteFamily='EEB6FC';
theSitetree.keyvisualId='1835';
theSitetree.keyvisualName='generationen.jpg';
theSitetree.fontsetId='313';
theSitetree.graphicsetId='367';
theSitetree.contentColor='555555';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'fr',
  country: 'FR'
};
var prodDef={
  wl_name: 'bluewin',
  product: 'WSCBLUSSSLYTC2MS'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Shadows',
				paletteFamily: 	'EEB6FC',
				keyvisualId: 	'1835',
				keyvisualName: 	'generationen.jpg',
				fontsetId: 		'313',
				graphicsetId: 	'367',
				contentColor: 	'555555',
				contentBGColor: 'FFFFFF',
				a_color: 		'EEB6FC',
				b_color: 		'000000',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89701',
internalId:  '',
customField: '20090708-180933'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20110820-104342'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['7008']=webappMappings['7008-6524']={
webappId:    '7008',
documentId:  '4701',
internalId:  '6524',
customField: 'language:fr;country:FR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89101',
internalId:  '',
customField: '20090708-172905'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '90001',
internalId:  '',
customField: '20090708-173136'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '452',
internalId:  '',
customField: '20110201-211222'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '494',
internalId:  '',
customField: '20071130-131101'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '515',
internalId:  '',
customField: '20061031-111244'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40901',
internalId:  '',
customField: '20110201-210831'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4701',
internalId:  '',
customField: '20110820-103727'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13801',
internalId:  '',
customField: '20061010-124912'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '90801',
internalId:  '',
customField: '20110201-215847'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '96501',
internalId:  '',
customField: '20110820-081449'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '96801',
internalId:  '',
customField: '20110820-084918'
};
var webAppHostname = 'cgi.hpt001.bluewin.ch:80';
var canonHostname = 'hptworkerdb01a.bluewin.ch';
var accountId     = 'ABW0X0IN2WEE';
var companyName   = 'Coiffure+Esprit+d%27Aquarelle';
var htmlTitle	  = 'Coiffure+Esprit+dAquarelle';
var metaKeywords  = 'HEADcoiffure%2FHEAD+HEADhaute+coiffure%2FHEAD+HEADcoiffeur%2FHEAD+HEADcoiffeur+dames%2FHEAD+HEADcoiffeur+femmes%2FHEAD+HEADcoiffeur+messieurs%2FHEAD+HEADcoiffeur+hommes%2FHEAD+HEADcoiffeur+enfants%2FHEAD+HEADb%C3%A9b%C3%A9%2FHEAD+HEADado%2FHEAD+HEADcoiffeur+adolescent%2FHEAD+HEADsalon%2FHEAD+HEADesprit+daquarelle%2FHEAD+HEADesprit+aquarelle%2FHEAD+HEADcatherine+chardonnens%2FHEAD+HEADdomdidier%2FHEAD+HEADsuisse%2FHEAD+HEADromande%2FHEAD+HEADbroye%2FHEAD+HEADfribourg%2FHEAD+HEADmaitrise+f%C3%A9d%C3%A9rale%2FHEAD+HEADexperte%2FHEAD+HEADcheveux%2FHEAD+HEADchevelure%2FHEAD+HEADsoin+capillaire%2FHEAD+HEADshampoing%2FHEAD+HEADtraitement%2FHEAD+HEADcoupe%2FHEAD+HEADbrushing%2FHEAD+HEADs%C3%A9chage%2FHEAD+HEADmise+en+plis%2FHEAD+HEADteinture%2FHEAD+HEADcoloration%2FHEAD+HEADcouleur%2FHEAD+HEADextensions%2FHEAD+HEADproduits%2FHEAD+HEADprofessionnel%2FHEAD+HEADlor%C3%A9al%2FHEAD+HEADs%C3%A9bastian%2FHEAD+HEADk%C3%A9rastase%2FHEAD+HEADgreat+lenghts%2FHEAD+HEADconseil%2FHEAD+HEADvisagisme%2FHEAD+HEADclaude+julliard%2FHEAD+HEADlook%2FHEAD+HEADrelooking%2FHEAD+HEADtendances%2FHEAD+HEADforme%2FHEAD+HEADonglerie%2FHEAD+HEADongle%2FHEAD+HEADmain%2FHEAD+HEADmariage%2FHEAD+HEADnouvel+an%2FHEAD+HEADanniversaire%2FHEAD+HEADb%C3%A9nichon%2FHEAD+HEADstyle%2FHEAD+HEADstyling%2FHEAD+HEADstylling%2FHEAD+HEADcr%C3%A9ateur%2FHEAD+HEADcr%C3%A9ation%2FHEAD+HEADcr%C3%A9atrice%2FHEAD+HEADluxure%2FHEAD+HEADavarice%2FHEAD+HEADcol%C3%A8re%2FHEAD+HEADparesse%2FHEAD+HEADgourmandise%2FHEAD+HEADenvie%2FHEAD+HEADorgueil%2FHEAD+HEADtribal%2FHEAD+';
var metaContents  = 'Coiffure+Esprit+dAquarelle+est+un+salon+de+coiffure+Tendances+implant%C3%A9+%C3%A0+Domdidier+dans+la+Broye+fribougeoise.+Cr%C3%A9ation+de+coiffures%2C+visagisme%2C+onglerie+sont+pour+Esprit+dAquarelle+plus+que+des+m%C3%A9tiers%2C+ce+sont+des+vocations.+Sp%C3%A9cialiste+de+pose+dextensions+Great+Lenghts%2C+Esprit+dAquarelle+propose+des+produits+professionnels+lOr%C3%A9al%2C+K%C3%A9rastase%2C+S%C3%A9bastian+ainsi+que+tous+les+produits+destin%C3%A9s+aux+soins+de+cheveux.+Les+services+sont+destin%C3%A9s+aux+dames+et+aux+messieurs+ainsi+quaux+enfants.';
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();
};

