/* [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','301',jdecode('Accueil'),jdecode(''),'/301.html','true',[],'',''],
	['PAGE','352',jdecode('EN+FRANCAIS'),jdecode(''),'/352/index.html','true',[ 
		['PAGE','373',jdecode('HOTEL**'),jdecode(''),'/352/373.html','true',[],'',''],
		['PAGE','394',jdecode('Cadre+et+s%C3%A9curit%C3%A9'),jdecode(''),'/352/394.html','true',[],'',''],
		['PAGE','415',jdecode('Chambres+et+suite'),jdecode(''),'/352/415.html','true',[],'',''],
		['PAGE','436',jdecode('Liste+de+prix'),jdecode(''),'/352/436.html','true',[],'',''],
		['PAGE','76601',jdecode('LE+GITE+RURAL'),jdecode(''),'/352/76601.html','true',[],'',''],
		['PAGE','457',jdecode('RESTAURANT'),jdecode(''),'/352/457.html','true',[],'',''],
		['PAGE','478',jdecode('Cadre+et+facilit%C3%A9s'),jdecode(''),'/352/478.html','true',[],'',''],
		['PAGE','93001',jdecode('Menu+du+moment'),jdecode(''),'/352/93001.html','true',[],'',''],
		['PAGE','17801',jdecode('A+la+carte'),jdecode(''),'/352/17801.html','true',[],'',''],
		['PAGE','17822',jdecode('Les+menus'),jdecode(''),'/352/17822.html','true',[],'',''],
		['PAGE','17843',jdecode('Les+vins'),jdecode(''),'/352/17843.html','true',[],'',''],
		['PAGE','520',jdecode('R%C3%A9ceptions+et+banquets'),jdecode(''),'/352/520.html','true',[],'',''],
		['PAGE','17864',jdecode('Les+menus+%22Mariage%22'),jdecode(''),'/352/17864.html','true',[],'',''],
		['PAGE','17885',jdecode('Les+menus+%22Banquet%22'),jdecode(''),'/352/17885.html','true',[],'',''],
		['PAGE','39601',jdecode('SERVICE+TRAITEUR'),jdecode(''),'/352/39601.html','true',[],'',''],
		['PAGE','94101',jdecode('Plats+pour+les+F%C3%AAtes'),jdecode(''),'/352/94101.html','true',[],'',''],
		['PAGE','39622',jdecode('Les+propositions'),jdecode(''),'/352/39622.html','true',[],'',''],
		['PAGE','40801',jdecode('Les+options'),jdecode(''),'/352/40801.html','true',[],'',''],
		['PAGE','46101',jdecode('GALERIE+PHOTOS'),jdecode(''),'/352/46101.html','true',[],'',''],
		['PAGE','83701',jdecode('No%C3%ABl+%C3%A0+La+Touloubre'),jdecode(''),'/352/83701.html','true',[],'',''],
		['PAGE','80001',jdecode('Deux+ans+d%C3%A9j%C3%A0%21'),jdecode(''),'/352/80001.html','true',[],'',''],
		['PAGE','541',jdecode('LA+REGION'),jdecode(''),'/352/541.html','true',[],'',''],
		['PAGE','562',jdecode('La+Barben+-+P%C3%A9lissanne'),jdecode(''),'/352/562.html','true',[],'',''],
		['PAGE','26101',jdecode('Les+%C3%A9v%C3%A9nements'),jdecode(''),'/352/26101.html','true',[],'',''],
		['PAGE','583',jdecode('CONTACT'),jdecode(''),'/352/583.html','true',[],'',''],
		['PAGE','6101',jdecode('Suivez+le+guide%21'),jdecode(''),'/352/6101.html','true',[],'',''],
		['PAGE','10801',jdecode('Acc%C3%A8s'),jdecode(''),'/352/10801.html','true',[],'',''],
		['PAGE','12606',jdecode('Livre+d%26%23x27%3Bor'),jdecode(''),'/352/12606.html','true',[],'',''],
		['PAGE','12601',jdecode('Entr%C3%A9es'),jdecode(''),'/352/12601.html','false',[],'',''],
		['PAGE','17101',jdecode('Disclaimer'),jdecode(''),'/352/17101.html','true',[],'','']
	],'',''],
	['PAGE','61622',jdecode('ENGLISH'),jdecode(''),'/61622/index.html','true',[ 
		['PAGE','59322',jdecode('Our+philosophy'),jdecode(''),'/61622/59322.html','true',[],'',''],
		['PAGE','59343',jdecode('HOTEL**'),jdecode(''),'/61622/59343.html','true',[],'',''],
		['PAGE','64201',jdecode('Situation+and+security'),jdecode(''),'/61622/64201.html','true',[],'',''],
		['PAGE','64222',jdecode('Rooms+and+suite'),jdecode(''),'/61622/64222.html','true',[],'',''],
		['PAGE','64243',jdecode('Hotel+rates'),jdecode(''),'/61622/64243.html','true',[],'',''],
		['PAGE','59364',jdecode('RESTAURANT'),jdecode(''),'/61622/59364.html','true',[],'',''],
		['PAGE','65701',jdecode('Situation+and+facilities'),jdecode(''),'/61622/65701.html','true',[],'',''],
		['PAGE','65722',jdecode('A+la+carte'),jdecode(''),'/61622/65722.html','true',[],'',''],
		['PAGE','65743',jdecode('Menus'),jdecode(''),'/61622/65743.html','true',[],'',''],
		['PAGE','65764',jdecode('Wines'),jdecode(''),'/61622/65764.html','true',[],'',''],
		['PAGE','67901',jdecode('Reception+and+banquet'),jdecode(''),'/61622/67901.html','true',[],'',''],
		['PAGE','68601',jdecode('Wedding+menu'),jdecode(''),'/61622/68601.html','true',[],'',''],
		['PAGE','68622',jdecode('Banquet+menu'),jdecode(''),'/61622/68622.html','true',[],'',''],
		['PAGE','59385',jdecode('CATERING+SERVICE'),jdecode(''),'/61622/59385.html','true',[],'',''],
		['PAGE','59406',jdecode('Menu+proposals'),jdecode(''),'/61622/59406.html','true',[],'',''],
		['PAGE','59427',jdecode('Other+options'),jdecode(''),'/61622/59427.html','true',[],'',''],
		['PAGE','59448',jdecode('PHOTO+GALLERY'),jdecode(''),'/61622/59448.html','true',[],'',''],
		['PAGE','59469',jdecode('THE+REGION'),jdecode(''),'/61622/59469.html','true',[],'',''],
		['PAGE','68727',jdecode('La+Barben+-+P%C3%A9lissanne'),jdecode(''),'/61622/68727.html','true',[],'',''],
		['PAGE','68748',jdecode('Events'),jdecode(''),'/61622/68748.html','true',[],'',''],
		['PAGE','59490',jdecode('CONTACT'),jdecode(''),'/61622/59490.html','true',[],'',''],
		['PAGE','59511',jdecode('Follow+the+guide'),jdecode(''),'/61622/59511.html','true',[],'',''],
		['PAGE','59532',jdecode('Site+Map'),jdecode(''),'/61622/59532.html','true',[],'',''],
		['PAGE','59553',jdecode('Web+log'),jdecode(''),'/61622/59553.html','true',[],'',''],
		['PAGE','59574',jdecode('Guest+book'),jdecode(''),'/61622/59574.html','true',[],'',''],
		['PAGE','59595',jdecode('Disclaimer'),jdecode(''),'/61622/59595.html','true',[],'','']
	],'','']];
var siteelementCount=59;
theSitetree.topTemplateName='Streamline';
theSitetree.paletteFamily='FDE36E';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10771';
theSitetree.graphicsetId='10858';
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: 			'Streamline',
				paletteFamily: 	'FDE36E',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10771',
				graphicsetId: 	'10858',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'CCA80A',
				e_color: 		'ACABAB',
				f_color: 		'626161',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1501']=webappMappings['1501-1501']={
webappId:    '1501',
documentId:  '301',
internalId:  '1501',
customField: '1501'
};
webappMappings['2002']=webappMappings['2002-routing']={
webappId:    '2002',
documentId:  '6101',
internalId:  'routing',
customField: 'fr_FR'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '10801',
internalId:  'location',
customField: 'language:fr;country:FR;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '352',
internalId:  '',
customField: '20090107-235827'
};
webappMappings['1002']=webappMappings['1002-12606abw0x0in27vx']={
webappId:    '1002',
documentId:  '12606',
internalId:  '12606abw0x0in27vx',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '301',
internalId:  '',
customField: '20100215-180611'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '373',
internalId:  '',
customField: '20071001-100850'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '394',
internalId:  '',
customField: '20071115-092435'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '415',
internalId:  '',
customField: '20070912-164652'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '436',
internalId:  '',
customField: '20100115-222233'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76601',
internalId:  '',
customField: '20080728-174900'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '457',
internalId:  '',
customField: '20090201-173225'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '478',
internalId:  '',
customField: '20071116-075650'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '93001',
internalId:  '',
customField: '20100215-180802'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17801',
internalId:  '',
customField: '20100124-155758'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17822',
internalId:  '',
customField: '20100124-103343'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17843',
internalId:  '',
customField: '20090720-224653'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '520',
internalId:  '',
customField: '20070709-180108'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17864',
internalId:  '',
customField: '20091001-231716'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17885',
internalId:  '',
customField: '20100124-110001'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39601',
internalId:  '',
customField: '20080503-001908'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94101',
internalId:  '',
customField: '20091011-161617'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39622',
internalId:  '',
customField: '20091011-162940'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40801',
internalId:  '',
customField: '20070709-195217'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46101',
internalId:  '',
customField: '20071120-152328'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '83701',
internalId:  '',
customField: '20080327-180829'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80001',
internalId:  '',
customField: '20080327-174353'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '541',
internalId:  '',
customField: '20080518-215427'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '562',
internalId:  '',
customField: '20080327-173832'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26101',
internalId:  '',
customField: '20070927-114451'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '583',
internalId:  '',
customField: '20070709-101613'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6101',
internalId:  '',
customField: '20070112-221603'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10801',
internalId:  '',
customField: '20070113-221330'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12606',
internalId:  '',
customField: '20070129-085118'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12601',
internalId:  '',
customField: '20070112-223441'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17101',
internalId:  '',
customField: '20070206-100219'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61622',
internalId:  '',
customField: '20071115-091121'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59322',
internalId:  '',
customField: '20071115-081816'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59343',
internalId:  '',
customField: '20071115-083346'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64201',
internalId:  '',
customField: '20080527-092541'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64222',
internalId:  '',
customField: '20071115-104413'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64243',
internalId:  '',
customField: '20081023-085039'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59364',
internalId:  '',
customField: '20071115-115650'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65701',
internalId:  '',
customField: '20071116-075025'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65722',
internalId:  '',
customField: '20080804-185059'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65743',
internalId:  '',
customField: '20080804-185240'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65764',
internalId:  '',
customField: '20080802-111627'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '67901',
internalId:  '',
customField: '20071116-095029'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68601',
internalId:  '',
customField: '20071116-102305'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68622',
internalId:  '',
customField: '20071116-110018'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59385',
internalId:  '',
customField: '20071116-154829'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59406',
internalId:  '',
customField: '20071116-160043'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59427',
internalId:  '',
customField: '20071116-161127'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59448',
internalId:  '',
customField: '20071120-154414'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59469',
internalId:  '',
customField: '20071116-171338'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68727',
internalId:  '',
customField: '20080111-151158'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68748',
internalId:  '',
customField: '20071116-095949'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59490',
internalId:  '',
customField: '20071116-174654'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59511',
internalId:  '',
customField: '20071113-175149'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59532',
internalId:  '',
customField: '20071113-175149'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59553',
internalId:  '',
customField: '20071113-175149'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59574',
internalId:  '',
customField: '20071113-175149'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59595',
internalId:  '',
customField: '20071116-173344'
};
webappMappings['1501']=webappMappings['1501-10158401']={
webappId:    '1501',
documentId:  '301',
internalId:  '10158401',
customField: '1501'
};
var canonHostname = 'hptworkerdb01b.bluewin.ch';
var accountId     = 'ABW0X0IN27VX';
var companyName   = 'HOTEL**+ET+RESTAURANT';
var htmlTitle	  = 'H%C3%B4tel+Restaurant+La+Touloubre';
var metaKeywords  = 'h%C3%B4tel%2C+restaurant%2C+la+touloubre%2C+menu%2C+menus%2C+la+barben%2C+banquet%2C+banquets%2C+r%C3%A9ception%2C+r%C3%A9ceptions%2C+p%C3%A9lissanne%2C+logis+de+France%2C+tourisme%2C+s%C3%A9jour%2C+gastronomie%2C+table%2C+gourmande';
var metaContents  = 'Hotel+Logis+de+France+et+restaurant%2C+r%C3%A9gion+La+Barben-P%C3%A9lissanne%2C+table+gourmande+';
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();
};
