/* [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','19227',jdecode('ACCUEIL'),jdecode(''), jdecode('%2F19227.html'), 'true',[],'',''],
	['PAGE','16872',jdecode('LE+COIN+BOUTIQUE'),jdecode(''), jdecode('%2F16872%2Findex.html'), 'true',[ 
		['PAGE','74601',jdecode('Tendance+industrielle'),jdecode(''), jdecode('%2F16872%2F74601.html'), 'true',[],'',''],
		['PAGE','74622',jdecode('Esprit+campagne'),jdecode(''), jdecode('%2F16872%2F74622.html'), 'true',[],'',''],
		['PAGE','77601',jdecode('Shabby+Chic'),jdecode(''), jdecode('%2F16872%2F77601.html'), 'true',[],'',''],
		['PAGE','77622',jdecode('Souffle+color%C3%A9'),jdecode(''), jdecode('%2F16872%2F77622.html'), 'true',[],'','']
	],'',''],
	['PAGE','16899',jdecode('LE+COIN+ATELIER'),jdecode(''), jdecode('%2F16899.html'), 'true',[],'',''],
	['PAGE','16980',jdecode('LE+COIN+BIJOUX'),jdecode(''), jdecode('%2F16980.html'), 'true',[],'',''],
	['PAGE','16926',jdecode('LE+COIN+AMBIANCE'),jdecode(''), jdecode('%2F16926.html'), 'true',[],'',''],
	['PAGE','43901',jdecode('LE+COIN+NEWS'),jdecode(''), jdecode('%2F43901%2Findex.html'), 'true',[ 
		['PAGE','110801',jdecode('Cours+de+patine'),jdecode(''), jdecode('%2F43901%2F110801.html'), 'true',[],'',''],
		['PAGE','110822',jdecode('Newsletters'),jdecode(''), jdecode('%2F43901%2F110822.html'), 'true',[],'',''],
		['PAGE','110843',jdecode('Wishes'),jdecode(''), jdecode('%2F43901%2F110843.html'), 'true',[],'','']
	],'',''],
	['PAGE','43701',jdecode('LE+COIN+M%C3%89DIA'),jdecode(''), jdecode('%2F43701%2Findex.html'), 'true',[ 
		['PAGE','103001',jdecode('T%C3%A9l%C3%A9vision'),jdecode(''), jdecode('%2F43701%2F103001.html'), 'true',[],'',''],
		['PAGE','100501',jdecode('Saison+2007'),jdecode(''), jdecode('%2F43701%2F100501.html'), 'true',[],'',''],
		['PAGE','102722',jdecode('Saison+2008'),jdecode(''), jdecode('%2F43701%2F102722.html'), 'true',[],'',''],
		['PAGE','102743',jdecode('Saison+2009'),jdecode(''), jdecode('%2F43701%2F102743.html'), 'true',[],'',''],
		['PAGE','102764',jdecode('Saison+2010'),jdecode(''), jdecode('%2F43701%2F102764.html'), 'true',[],'',''],
		['PAGE','100522',jdecode('Radio'),jdecode(''), jdecode('%2F43701%2F100522.html'), 'true',[],'',''],
		['PAGE','100543',jdecode('Presse'),jdecode(''), jdecode('%2F43701%2F100543.html'), 'true',[],'','']
	],'',''],
	['PAGE','106701',jdecode('LE+COIN+DU+BLOG'),jdecode(''), jdecode('%2F106701.html'), 'true',[],'',''],
	['PAGE','108843',jdecode('LE+COIN+EN+OR'),jdecode(''), jdecode('%2F108843.html'), 'true',[],'',''],
	['PAGE','17034',jdecode('LE+COIN+CONTACT'),jdecode(''), jdecode('%2F17034.html'), 'true',[],'',''],
	['PAGE','19356',jdecode('LE+COIN+ACC%C3%88S'),jdecode(''), jdecode('%2F19356.html'), 'true',[],'',''],
	['PAGE','31901',jdecode('PLAN+D%26%23x27%3BACC%C3%88S'),jdecode(''), jdecode('%2F31901.html'), 'true',[],'','']];
var siteelementCount=26;
theSitetree.topTemplateName='Icon';
theSitetree.paletteFamily='9FAF91';
theSitetree.keyvisualId='3427';
theSitetree.keyvisualName='kv_3427.jpg';
theSitetree.fontsetId='10650';
theSitetree.graphicsetId='10742';
theSitetree.contentColor='666666';
theSitetree.contentBGColor='B8C3AE';
var localeDef={
  language: 'fr',
  country: 'FR'
};
var prodDef={
  wl_name: 'bluewin',
  product: 'WSCBLUSSSLYTC2MX'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Icon',
				paletteFamily: 	'9FAF91',
				keyvisualId: 	'3427',
				keyvisualName: 	'kv_3427.jpg',
				fontsetId: 		'10650',
				graphicsetId: 	'10742',
				contentColor: 	'666666',
				contentBGColor: 'B8C3AE',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '19356',
internalId:  'location',
customField: 'language:fr;country:FR;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19227',
internalId:  '',
customField: '20120108-184700'
};
webappMappings['1501']=webappMappings['1501-2425293']={
webappId:    '1501',
documentId:  '19227',
internalId:  '2425293',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16872',
internalId:  '',
customField: '20111122-005153'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16899',
internalId:  '',
customField: '20110328-210719'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16926',
internalId:  '',
customField: '20120108-200815'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16980',
internalId:  '',
customField: '20110404-011537'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17034',
internalId:  '',
customField: '20120108-185131'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19356',
internalId:  '',
customField: '20110403-121538'
};
webappMappings['2002']=webappMappings['2002-routing']={
webappId:    '2002',
documentId:  '31901',
internalId:  'routing',
customField: 'fr_FR'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31901',
internalId:  '',
customField: '20110403-121436'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '100501',
internalId:  '',
customField: '20110624-235220'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '106701',
internalId:  '',
customField: '20110707-200806'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '19227',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43901',
internalId:  '',
customField: '20111229-220300'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43701',
internalId:  '',
customField: '20110602-231010'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74622',
internalId:  '',
customField: '20120108-190324'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74601',
internalId:  '',
customField: '20120104-005515'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77622',
internalId:  '',
customField: '20120108-191507'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77601',
internalId:  '',
customField: '20120108-191434'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '100543',
internalId:  '',
customField: '20110613-215347'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '100522',
internalId:  '',
customField: '20110624-235711'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '102722',
internalId:  '',
customField: '20110603-001549'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '103001',
internalId:  '',
customField: '20110602-231725'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '102743',
internalId:  '',
customField: '20110603-014253'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '102764',
internalId:  '',
customField: '20110624-235404'
};
webappMappings['1002']=webappMappings['1002-108843abw0x0inxlid']={
webappId:    '1002',
documentId:  '108843',
internalId:  '108843abw0x0inxlid',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '108843',
internalId:  '',
customField: '20110905-103358'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '110801',
internalId:  '-',
customField: '20111122-010556'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '110822',
internalId:  '-',
customField: '20111122-010556'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '110843',
internalId:  '-',
customField: '20120104-003611'
};
var webAppHostname = 'cgi.hpt001.bluewin.ch:80';
var canonHostname = 'hptworkerdb01a.bluewin.ch';
var accountId     = 'ABW0X0INXLID';
var companyName   = '%22LE+COIN+SOUS+L%27ESCALIER%22+BOUTIQUE-ATELIER';
var htmlTitle	  = 'Le+Coin+sous+l%27Escalier';
var metaKeywords  = 'patine%2C+cours%2C+cours+patine%2Cboutique%2C+boutique+d%C3%A9co%2C+meubles+patin%C3%A9s%2C+meubles%2C+d%C3%A9co%2C+d%C3%A9coration+d%27int%C3%A9rieur%2C+bijoux%2C+atelier%2C+talisman%2C+t%C3%A9l%C3%A9vision%2C+dolce+vita%2C+tsr%2C+cathy%2C+molaschi%2C+cathy+molaschi%2C+le+coin+sous+l%27escalier%2C+blog%2C+lausanne%2C+suisse%0D%0A%0D%0A%0D%0A%0D%0A';
var metaContents  = 'bijoux%2C+collier%2C+patine%2C+d%C3%A9co%2C+atelier%2C+boutique%2C+boutique+d%C3%A9co%2C+le+coin+sous+l%27escalier%2C+cathy+molaschi%2C+d%C3%A9coration%2C+meubles+patin%C3%A9s%2C+objets+de+d%C3%A9coration%2C+cours+de+patine%2C+talisman%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A';
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();
};

