/* [nodename, id, name, navigationtext, href, isnavigation, childs[], templatename] */

function jdecode(s) {
    s = s.replace(/\+/g, "%20")
    return unescape(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 theSitetree=[ 
	['PAGE','4599',jdecode('Accueil'),jdecode(''),'/4599.html','true',[],''],
	['PAGE','6222',jdecode('Notre+h%C3%B4tel'),jdecode(''),'/6222.html','true',[],''],
	['PAGE','31701',jdecode('Nos+chambres'),jdecode(''),'/31701.html','true',[],''],
	['PAGE','6306',jdecode('Services'),jdecode(''),'/6306.html','true',[],''],
	['PAGE','6348',jdecode('A+visiter'),jdecode(''),'/6348.html','true',[],''],
	['PAGE','6390',jdecode('Prix+des+chambres'),jdecode(''),'/6390.html','true',[],''],
	['PAGE','6453',jdecode('R%C3%A9servation+en+ligne'),jdecode(''),'/6453.html','true',[],''],
	['PAGE','22901',jdecode('Acc%C3%A8s'),jdecode(''),'/22901.html','true',[],''],
	['PAGE','33001',jdecode('Contact'),jdecode(''),'/33001.html','true',[],''],
	['PAGE','18001',jdecode('Welcome'),jdecode(''),'/18001.html','true',[],''],
	['PAGE','18022',jdecode('The+Hotel'),jdecode(''),'/18022.html','true',[],''],
	['PAGE','18043',jdecode('The+Rooms'),jdecode(''),'/18043.html','true',[],''],
	['PAGE','35801',jdecode('Services'),jdecode(''),'/35801.html','true',[],''],
	['PAGE','34101',jdecode('Visit+surroundings'),jdecode(''),'/34101.html','true',[],''],
	['PAGE','18064',jdecode('Fees+and+conditions'),jdecode(''),'/18064.html','true',[],''],
	['PAGE','18085',jdecode('Booking'),jdecode(''),'/18085.html','true',[],''],
	['PAGE','34122',jdecode('Plan+of+access'),jdecode(''),'/34122.html','true',[],''],
	['PAGE','18106',jdecode('Contact'),jdecode(''),'/18106.html','true',[],'']];
var siteelementCount=18;
theSitetree.topTemplateName='Bigcity_Space';
theSitetree.paletteFamily='3E648B';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='21096';
theSitetree.graphicsetId='13166';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='3E648B';
var theTemplate={
				name: 			'Bigcity_Space',
				paletteFamily: 	'3E648B',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'21096',
				graphicsetId: 	'13166',
				contentColor: 	'FFFFFF',
				contentBGColor: '3E648B',
				hasFlashNavigation: 'true',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'true',
				hasCompanyname: 'false',
				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'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4599',
internalId:  '',
customField: '20111222-154408'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6306',
internalId:  '',
customField: '20110308-013402'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6222',
internalId:  '',
customField: '20110227-212636'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '33001',
internalId:  '13272621',
customField: 'fr:FR:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6348',
internalId:  '',
customField: '20110228-214439'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18001',
internalId:  '',
customField: '20111222-154448'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '4599',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6453',
internalId:  '',
customField: '20120202-091913'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6390',
internalId:  '',
customField: '20111222-162552'
};
webappMappings['2001']={
webappId:    '2001',
documentId:  '22901',
internalId:  'location',
customField: 'language:fr;country:FR;isIncluded:false;'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '22901',
internalId:  '',
customField: '20110307-175817'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18043',
internalId:  '',
customField: '20110320-215414'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '31701',
internalId:  '',
customField: '20110310-195753'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18022',
internalId:  '',
customField: '20110320-214937'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18085',
internalId:  '',
customField: '20120202-091945'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18064',
internalId:  '',
customField: '20110320-222348'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '33001',
internalId:  '',
customField: '20110228-155620'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '4599',
internalId:  '13271996',
customField: '1501'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '35801',
internalId:  '',
customField: '20110320-215644'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '34101',
internalId:  '',
customField: '20110320-221753'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '34122',
internalId:  '',
customField: '20110228-215837'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18106',
internalId:  '',
customField: '20110228-221032'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '18106',
internalId:  '13272933',
customField: 'fr:FR:'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010IN3V7I';
var companyName   = 'HOTEL+BONSEJOUR+MONTMARTRE';
var htmlTitle	  = 'H%C3%B4tel+Bons%C3%A9jour+Montmartre';
var metaKeywords  = 'hotel-bonsejour-montmartre+hotel+bonsejour+montmartre+hotel+bonsejour+paris+hotel+bonsejour+paris+18+eme+au+coeur+de+montmartre+H%C3%B4tel+Bons%C3%A9jour+Montmartre+H%C3%B4tel+Bons%C3%A9jour+Paris+H%C3%B4tel+Bons%C3%A9jour+Montmartre+Paris+18+%C3%A8me+Au+Coeur+de+Montmartre';
var metaContents  = '';
					                                                                    
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;                                                                     
	};                                                                               
/* EOF */					                                                            

