/* [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','4556',jdecode('Accueil'),jdecode(''), jdecode('%2F4556.html'), 'true',[],'',''],
	['PAGE','13543',jdecode('Am%C3%A9rique+du+Nord'),jdecode(''), jdecode('%2F13543.html'), 'true',[],'',''],
	['PAGE','28029',jdecode('Am%C3%A9rique+Latine'),jdecode(''), jdecode('%2F28029.html'), 'true',[],'',''],
	['PAGE','28056',jdecode('Euro+-+Mediterran%C3%A9e'),jdecode(''), jdecode('%2F28056.html'), 'true',[],'',''],
	['PAGE','28083',jdecode('Asie+'),jdecode(''), jdecode('%2F28083.html'), 'true',[],'',''],
	['PAGE','87135',jdecode('Prod.+frais+Boissons'),jdecode(''), jdecode('%2F87135.html'), 'true',[],'',''],
	['PAGE','13678',jdecode('Epices+du+monde'),jdecode(''), jdecode('%2F13678.html'), 'true',[],'',''],
	['PAGE','40588',jdecode('Caf%C3%A9+-+Th%C3%A9+-+Choco'),jdecode(''), jdecode('%2F40588.html'), 'true',[],'',''],
	['PAGE','51916',jdecode('Vaisselle++-++Cuisine'),jdecode(''), jdecode('%2F51916.html'), 'true',[],'',''],
	['PAGE','44653',jdecode('Encens+-+Cultures'),jdecode(''), jdecode('%2F44653.html'), 'true',[],'',''],
	['PAGE','42688',jdecode('Sant%C3%A9+par+la+nature'),jdecode(''), jdecode('%2F42688.html'), 'true',[],'',''],
	['PAGE','13462',jdecode('Soins+du+corps'),jdecode(''), jdecode('%2F13462.html'), 'true',[],'',''],
	['PAGE','74198',jdecode('Commander'),jdecode(''), jdecode('%2F74198%2Findex.html'), 'true',[ 
		['PAGE','177546',jdecode('Bulletin+de+commande'),jdecode(''), jdecode('%2F74198%2F177546.html'), 'true',[],'','']
	],'',''],
	['PAGE','28245',jdecode('Liens'),jdecode(''), jdecode('%2F28245.html'), 'true',[],'',''],
	['PAGE','16402',jdecode('Adresse%2C+t%C3%A9l%C3%A9phone'),jdecode(''), jdecode('%2F16402.html'), 'true',[],'',''],
	['PAGE','167901',jdecode('Manifestations'),jdecode(''), jdecode('%2F167901.html'), 'true',[],'',''],
	['PAGE','180493',jdecode('Cours+de+cuisine'),jdecode(''), jdecode('%2F180493.html'), 'true',[],'','']];
var siteelementCount=18;
theSitetree.topTemplateName='Seasons_fall';
theSitetree.paletteFamily='ECE1CC';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='21083';
theSitetree.graphicsetId='13182';
theSitetree.contentColor='2E2E2E';
theSitetree.contentBGColor='ECE1CC';
var localeDef={
  language: 'fr',
  country: 'FR'
};
var prodDef={
  wl_name: 'hostpoint',
  product: 'WSCSYSSSSLYTC21F'
};
var theTemplate={
				hasFlashNavigation: 'true',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'true',
				hasCompanyname: 'false',
				name: 			'Seasons_fall',
				paletteFamily: 	'ECE1CC',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'21083',
				graphicsetId: 	'13182',
				contentColor: 	'2E2E2E',
				contentBGColor: 'ECE1CC',
				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:  '4556',
internalId:  '1006',
customField: '1006'
};
webappMappings['7008']=webappMappings['7008-1753']={
webappId:    '7008',
documentId:  '177546',
internalId:  '1753',
customField: 'language:fr;country:FR;'
};
webappMappings['7008']=webappMappings['7008-385']={
webappId:    '7008',
documentId:  '16402',
internalId:  '385',
customField: 'language:fr;country:FR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13543',
internalId:  '',
customField: '20110605-174836'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4556',
internalId:  '',
customField: '20111129-105420'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28029',
internalId:  '',
customField: '20110523-193746'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28056',
internalId:  '',
customField: '20110727-174101'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28083',
internalId:  '',
customField: '20110727-175151'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87135',
internalId:  '',
customField: '20110605-173644'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13678',
internalId:  '',
customField: '20100624-133640'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40588',
internalId:  '',
customField: '20110605-173308'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51916',
internalId:  '',
customField: '20110605-171209'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44653',
internalId:  '',
customField: '20110605-173104'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42688',
internalId:  '',
customField: '20110605-172052'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13462',
internalId:  '',
customField: '20110605-171641'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74198',
internalId:  '',
customField: '20110605-175711'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '177546',
internalId:  '',
customField: '20091030-124442'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28245',
internalId:  '',
customField: '20110727-180510'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16402',
internalId:  '',
customField: '20091024-115506'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '167901',
internalId:  '',
customField: '20111029-111035'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '180493',
internalId:  '',
customField: '20101117-171506'
};
var webAppHostname = 'cgi.webomat.ch:80';
var canonHostname = 'webomat02.hostpoint.ch';
var accountId     = 'AHOPT0IN3RU6';
var companyName   = 'Le+Go%C3%BBt+du+Monde';
var htmlTitle	  = 'Le+Go%C3%BBt+du+Monde';
var metaKeywords  = 'legoutdumonde%2C+Le+Go%C3%BBt+du+Monde+Suisse+La+Chaux+de+Fonds%2C+magasin+alimentation%2C+exotique+internationale%2C+produits+Tha%C3%AFlande%2C+produits+Chine%2C+produits+Inde%2C+productos+latinos+%2Cproduits+P%C3%A9rou%2Cproduits++Bolivie%2Cproduits+Mexique%2Cproduits+Colombie%2Cproduits+Chili%2Cproduits+Venezuela+produits+Argentine%2Cproduits+R%C3%A9publique+dominicaine%2C+produits+du+Canada%2Cproduits+USA%2C+produits+Quebec%2Cproduits+Gr%C3%A8ceproduits%2C+produits+Maroc+%2Cproduits+Tunisie%2C+produits+Japon%2C+produits+Asie%2C+produits+Vietnam%2C+Ginseng%2C+Gingembre+confits%2C+gimgembre%2C+Chanvre%2C+%C3%A9pices%2C+riz%2C+Qu%C3%A9bec+%2CCanada%2C+USA%2C+achat+vente+Produits+frais%2C+encens%2C+baumes%2C+savons%2C+ayurv%C3%A9diques%2C+savons+dAlep%2C+vaisselle%2C+recettes%2C+livres+de+cuisine%2C+%C3%A9rable%2C+saveurs+voyages%2C+importation+grossiste+entreprises%2C+paniers+cadeaux%2C+www.legoutdumonde.ch%2C+achat+en+ligne%2C+vente+correspondance%2C+sirop+d+%C3%A9rable%2C+beurre+d+%C3%A9rable%2C+bonbons+d+%C3%A9rable%2C+liqueur+caribou%2Cliqueur+Sortil%C3%A8ge%2C+gel%C3%A9e+d+%C3%A9rable%2C+curry%2C+yerba+mate%2C+d%C3%A9coration%2C+th%C3%A9s%2C+caf%C3%A9s%2C+baumes+du+tigre+%2CDestination+%2CDolphin%2C+AW+Root+beer%2C+ginger+beer%2C+curry+%2Cth%C3%A9+rouge+tha%C3%AFlandais%2C+biscuits+d+%C3%A9rable+au+sirop+d+%C3%A9rable%2C+farine+m%C3%A9lange+%C3%A0+cr%C3%AApes+pancake+%2CNative+American+Herbal+Tea%2C+maseca%2C+panela%2C+cerveza%2C+ginger+beer%2C+root+beer+AW%2C+Marshmallows%2C+USA+Rocky+mountains+hamacs%2C+caf%C3%A9s%2C+th%C3%A9s%2C+Destination+%2Cchocolats+Dolphin%2C+%C3%A9pices%2C+pures+native+american+herbal+tea+%2Cginseng%2C+s%C3%A9ch%C3%A9%2C++encens+traditionnels+am%C3%A9rindiens+Terre+de+laigle+Eartheagle+Huron+5+Nations+Tibet+Bouddha+drapeaux+pri%C3%A8res%2C+yerba+mate+brazil%2C+feijao%2C+suco+concentrado+maracuja+%2Ccaju+%2Cmango%2C+goiaba%2C+acerola%2C+a%C3%A7ai+%2Ctamarindo%2C+Brahma+%2CSortil%C3%A8ge%2C+slimming+tea%2C+th%C3%A9+minceur%2C+encens+am%C3%A9rindiens%2C+plantes+am%C3%A9rindiennes+%2Cindiens+d+Am%C3%A9rique+%2Cartisanat+am%C3%A9rindien+%2CCD+musique+%2CDVD+livres+%2CAigle+Bleu+Invocation%2C+harina+pan%2Coro+del+inca%2C+epicerie%2C+produits+latino%2C+%C3%A9pices%2C+maseca%2C+harina+pan%2C+colombo%2C+l%C3%A9gumes+thailandais+frais%2C+coriandre%2C+caf%C3%A9+moka%2C+limonade+mortuacienne';
var metaContents  = 'Le+Go%C3%BBt+du+Monde%2C+La+Chaux-de-Fonds.+Alimentation+exotique+et+internationale%2C++Boutique+ambiance+Vente+en+ligne.+Produits+latino%2C+produits+asiatiques%2C+produits+japonais%2C+produits+am%C3%A9ricains%2C+produits+qu%C3%A9becois.+Encens+am%C3%A9rindiens.+Vaisselle.+Cosm%C3%A9tique.+alimentation+internationale%2C+oro+del+inca%2C+epices%2C+thailande%2C+japon%2C+mexique%2C+latino%2C+erable';
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();
};

