/* [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','801',jdecode('Accueil'),jdecode(''),'/801.html','true',[],''],
	['PAGE','274212',jdecode('La+Boutique'),jdecode(''),'/274212.html','true',[],''],
	['PAGE','24901',jdecode('Adultes+Cavalier'),jdecode(''),'/24901/index.html','true',[ 
		['PAGE','82601',jdecode('Easy+rider+'),jdecode(''),'/24901/82601.html','true',[],''],
		['PAGE','81801',jdecode('Boomer+'),jdecode(''),'/24901/81801.html','true',[],''],
		['PAGE','82622',jdecode('Divine+'),jdecode(''),'/24901/82622.html','true',[],''],
		['PAGE','82664',jdecode('Cendrillon+'),jdecode(''),'/24901/82664.html','true',[],''],
		['PAGE','82685',jdecode('Eydene+'),jdecode(''),'/24901/82685.html','true',[],'']
	],''],
	['PAGE','5201',jdecode('Chiots+cavalier'),jdecode(''),'/5201/index.html','true',[ 
		['PAGE','63901',jdecode('standard'),jdecode(''),'/5201/63901.html','true',[],''],
		['PAGE','63922',jdecode('caract%C3%A8re'),jdecode(''),'/5201/63922.html','true',[],''],
		['PAGE','63943',jdecode('toilettage'),jdecode(''),'/5201/63943.html','true',[],''],
		['PAGE','63964',jdecode('tarifs'),jdecode(''),'/5201/63964.html','true',[],'']
	],''],
	['PAGE','50864',jdecode('+Adultes+shih+tzu'),jdecode(''),'/50864/index.html','true',[ 
		['PAGE','145701',jdecode('dawson'),jdecode(''),'/50864/145701.html','true',[],''],
		['PAGE','145722',jdecode('abigaelle'),jdecode(''),'/50864/145722.html','true',[],'']
	],''],
	['PAGE','50822',jdecode('Chiots+shih+tzu'),jdecode(''),'/50822/index.html','true',[ 
		['PAGE','63985',jdecode('standard'),jdecode(''),'/50822/63985.html','true',[],''],
		['PAGE','64006',jdecode('caract%C3%A8re'),jdecode(''),'/50822/64006.html','true',[],''],
		['PAGE','64027',jdecode('toilettage'),jdecode(''),'/50822/64027.html','true',[],''],
		['PAGE','64048',jdecode('tarifs'),jdecode(''),'/50822/64048.html','true',[],'']
	],''],
	['PAGE','45301',jdecode('Mariages'),jdecode(''),'/45301.html','true',[],''],
	['PAGE','24922',jdecode('Album+photos'),jdecode(''),'/24922.html','true',[],''],
	['PAGE','24943',jdecode('Des+nouvelles'),jdecode(''),'/24943.html','true',[],''],
	['PAGE','54901',jdecode('L%26%23x27%3BElevage'),jdecode(''),'/54901.html','true',[],''],
	['PAGE','76401',jdecode('A+placer'),jdecode(''),'/76401/index.html','true',[ 
		['PAGE','144701',jdecode('.'),jdecode(''),'/76401/144701.html','true',[],'']
	],''],
	['PAGE','240712',jdecode('LIENS'),jdecode(''),'/240712.html','true',[],''],
	['PAGE','88306',jdecode('Livre+d%26%23x27%3Bor'),jdecode(''),'/88306/index.html','true',[ 
		['PAGE','88301',jdecode('Entr%C3%A9es'),jdecode(''),'/88306/88301.html','true',[],'']
	],'']];
var siteelementCount=30;
theSitetree.topTemplateName='Baby';
theSitetree.paletteFamily='E2E8FF';
theSitetree.keyvisualId='9899';
theSitetree.keyvisualName='kv_9899.jpg';
theSitetree.fontsetId='17692';
theSitetree.graphicsetId='13050';
theSitetree.contentColor='6969FF';
theSitetree.contentBGColor='E2E8FF';
var theTemplate={
				name: 			'Baby',
				paletteFamily: 	'E2E8FF',
				keyvisualId: 	'9899',
				keyvisualName: 	'kv_9899.jpg',
				fontsetId: 		'17692',
				graphicsetId: 	'13050',
				contentColor: 	'6969FF',
				contentBGColor: 'E2E8FF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'F9E0BF',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '801',
internalId:  '',
customField: '20120121-173625'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5201',
internalId:  '',
customField: '20120121-173537'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '801',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '24901',
internalId:  '',
customField: '20111223-205533'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '801',
internalId:  '4000808',
customField: '1501'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '82601',
internalId:  '',
customField: '20091012-130609'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '81801',
internalId:  '',
customField: '20090128-212723'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '24922',
internalId:  '',
customField: '20100131-143100'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '24943',
internalId:  '',
customField: '20120129-140313'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '76401',
internalId:  '',
customField: '20101115-221136'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '45301',
internalId:  '',
customField: '20111026-171728'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '50822',
internalId:  '',
customField: '20110929-155900'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '50864',
internalId:  '',
customField: '20110428-082223'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '54901',
internalId:  '',
customField: '20100131-142214'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '63901',
internalId:  '',
customField: '20081222-181250'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '63922',
internalId:  '',
customField: '20081226-163427'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '63943',
internalId:  '',
customField: '20090216-190150'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '63964',
internalId:  '',
customField: '20110419-140500'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '63985',
internalId:  '',
customField: '20100201-163605'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '64006',
internalId:  '',
customField: '20081227-180448'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '64027',
internalId:  '',
customField: '20091025-140113'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '64048',
internalId:  '',
customField: '20100821-094314'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '82622',
internalId:  '',
customField: '20091012-125821'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '82664',
internalId:  '',
customField: '20090218-170540'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '82685',
internalId:  '',
customField: '20091012-125939'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '240712',
internalId:  '',
customField: '20111103-143426'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '145722',
internalId:  '',
customField: '20091013-175202'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '144701',
internalId:  '',
customField: '20091013-135231'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '145701',
internalId:  '',
customField: '20091013-175255'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '88306',
internalId:  '88306aam010inlhog',
customField: 'action=form&icq=false'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '88301',
internalId:  '88306aam010inlhog',
customField: 'action=list'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '88306',
internalId:  '',
customField: '20090213-195149'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '88301',
internalId:  '',
customField: '20090213-195149'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '274212',
internalId:  '',
customField: '20120103-173329'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INLHOG';
var companyName   = 'Le+Domaine+de+Justival+';
var htmlTitle	  = 'cavalier+king+charles+du+domaine+de+justival';
var metaKeywords  = '%C3%A9levage+de+cavalier+king+charles++cavaliers+king+charles++le+domaine+de+justival++justival';
var metaContents  = '%C3%A9levage+de+chiens';
					                                                                    
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 */					                                                            

