/* [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(''),'/4556.html','true',[],'',''],
	['PAGE','13543',jdecode('Am%C3%A9rique+du+Nord'),jdecode(''),'/13543.html','true',[],'',''],
	['PAGE','28029',jdecode('Am%C3%A9rique+Latine'),jdecode(''),'/28029.html','true',[],'',''],
	['PAGE','28056',jdecode('Euro+-+Mediterran%C3%A9e'),jdecode(''),'/28056.html','true',[],'',''],
	['PAGE','28083',jdecode('Asie+'),jdecode(''),'/28083.html','true',[],'',''],
	['PAGE','87135',jdecode('Prod.+frais+Boissons'),jdecode(''),'/87135.html','true',[],'',''],
	['PAGE','13678',jdecode('Epices+du+monde'),jdecode(''),'/13678.html','true',[],'',''],
	['PAGE','40588',jdecode('Caf%C3%A9+-+Th%C3%A9+-+Choco'),jdecode(''),'/40588.html','true',[],'',''],
	['PAGE','51916',jdecode('Vaisselle++-++Cuisine'),jdecode(''),'/51916.html','true',[],'',''],
	['PAGE','44653',jdecode('Encens+-+Cultures'),jdecode(''),'/44653.html','true',[],'',''],
	['PAGE','42688',jdecode('Sant%C3%A9+par+la+nature'),jdecode(''),'/42688.html','true',[],'',''],
	['PAGE','13462',jdecode('Soins+du+corps'),jdecode(''),'/13462.html','true',[],'',''],
	['PAGE','74198',jdecode('Commander'),jdecode(''),'/74198/index.html','true',[ 
		['PAGE','177546',jdecode('Bulletin+de+commande'),jdecode(''),'/74198/177546.html','true',[],'','']
	],'',''],
	['PAGE','28245',jdecode('Liens'),jdecode(''),'/28245.html','true',[],'',''],
	['PAGE','16402',jdecode('Adresse%2C+t%C3%A9l%C3%A9phone'),jdecode(''),'/16402/index.html','true',[ 
		['PAGE','118579',jdecode('CONTACT+-+INFOS+%28Folgeseite%29'),jdecode(''),'/16402/118579.html','true',[],'','']
	],'',''],
	['PAGE','167901',jdecode('Manifestations'),jdecode(''),'/167901.html','true',[],'',''],
	['PAGE','180493',jdecode('Cours+de+cuisine'),jdecode(''),'/180493.html','true',[],'','']];
var siteelementCount=19;
theSitetree.topTemplateName='Produce';
theSitetree.paletteFamily='FFA717';
theSitetree.keyvisualId='5753';
theSitetree.keyvisualName='kv_5753.jpg';
theSitetree.fontsetId='11055';
theSitetree.graphicsetId='11827';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='9EE386';
var localeDef={
  language: 'fr',
  country: 'FR'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Produce',
				paletteFamily: 	'FFA717',
				keyvisualId: 	'5753',
				keyvisualName: 	'kv_5753.jpg',
				fontsetId: 		'11055',
				graphicsetId: 	'11827',
				contentColor: 	'000000',
				contentBGColor: '9EE386',
				a_color: 		'FFA717',
				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:     'false'
			  };
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: '20100213-100534'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4556',
internalId:  '',
customField: '20100305-180913'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28029',
internalId:  '',
customField: '20100213-114905'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28056',
internalId:  '',
customField: '20100224-174253'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28083',
internalId:  '',
customField: '20100213-131446'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87135',
internalId:  '',
customField: '20100226-095505'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13678',
internalId:  '',
customField: '20100224-174845'
};
webappMappings['1501']=webappMappings['1501-12596940']={
webappId:    '1501',
documentId:  '4556',
internalId:  '12596940',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40588',
internalId:  '',
customField: '20100224-175647'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51916',
internalId:  '',
customField: '20100213-133932'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44653',
internalId:  '',
customField: '20100213-153813'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42688',
internalId:  '',
customField: '20100213-154333'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13462',
internalId:  '',
customField: '20100213-154750'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74198',
internalId:  '',
customField: '20090310-173401'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '177546',
internalId:  '',
customField: '20091030-134442'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28245',
internalId:  '',
customField: '20100224-170404'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16402',
internalId:  '',
customField: '20091024-135506'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '118579',
internalId:  '',
customField: '20070222-160927'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '167901',
internalId:  '',
customField: '20100213-095128'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '180493',
internalId:  '',
customField: '20100224-173626'
};
var canonHostname = 'webomat02.hostpoint.ch';
var accountId     = 'AHOPT0IN3RU6';
var companyName   = 'Le+Go%C3%BBt+du+Monde';
var htmlTitle	  = '';
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+liniment%2C+huiles+analg%C3%A9siques%2C+encens+traditionnels+am%C3%A9rindiens+Terre+de+laigle+Eartheagle+Huron+5+Nations+Origami+Flower+Power+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+%2CIndianer+Nordamerika+D%C3%BCfte+Ahorn+produkten+Ahorn+Sirup+indianer+%2C+artisanat+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();
};
