/* [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','1508',jdecode('L%26%23x27%3BAssociation'),jdecode(''),'/1508/index.html','true',[ 
		['PAGE','17102',jdecode('Pr%C3%A9sentation+%28volgende+pagina%29'),jdecode(''),'/1508/17102.html','false',[],'']
	],''],
	['PAGE','1565',jdecode('Ev%C3%A9nements'),jdecode(''),'/1565.html','true',[],'']];
var siteelementCount=3;
theSitetree.topTemplateName='Letter';
theSitetree.paletteFamily='FDEBC1';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10427';
theSitetree.graphicsetId='10750';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Letter',
				paletteFamily: 	'FDEBC1',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10427',
				graphicsetId: 	'10750',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'706F6F',
				e_color: 		'706F6F',
				f_color: 		'706F6F',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '1508',
internalId:  '1006',
customField: '1006'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '1508',
internalId:  'aam010invju510d23201ce2',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '17102',
internalId:  'aam010invju510d23201ce2',
customField: 'followUp'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1508',
internalId:  '',
customField: '20100617-004935'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1565',
internalId:  '',
customField: '20100617-013710'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '17102',
internalId:  '',
customField: '20060818-231149'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INVJU5';
var companyName   = 'Artistes+du+Bout+du+Monde';
var htmlTitle	  = 'Artistes+du+Bout+du+Monde';
var metaKeywords  = 'Grez-sur-loing%2C+Robert+Louis+Stevenson%2C+Loing%2C+p%EF%BF%BDniche%2C+h%EF%BF%BDtel+Chevillon%2C+seine+et+marne%2C+Fanny+Osbourne%2C+hommage%2C+anniversaire+rencontre%2C+seine-et-marne%2C+artistes%2C+fanny+osbourne%2C+randonn%EF%BF%BDe%2C+association%2C+barbizon%2C+jardins+du+prieur%EF%BF%BD%2C+pique-nique%2C+ville+de+grez%2C+salle+sadler%2C+77880%2C+RLS%2C+RLS+%EF%BF%BD+Grez%2C+Treasure+Forest%2Cartiste+peintre%2C+%EF%BF%BDcrivain%2C+%EF%BF%BDles+Samoa%2C+Edimburg%2C+la+belle+am%EF%BF%BDricaine%2C+l%EF%BF%BDle+au+tr%EF%BF%BDsor%2C+scottish%2C+Steam+up+Company%2C+Troll+Company%2C+Following+Robert+Louis+Stevenson+footsteps%2C+Alain+Dugnand%2C+Janice%2C+Gallaway%2C+Bj%EF%BF%BDrn%2C+Donald+McLaughlin%2C+Anne+Waleys%2C+Harvey%2Cjourn%EF%BF%BDes+Stevenson%2CAcad%EF%BF%BDmie+Julian%2C+Isobel+Osbourne%2C+3+d%EF%BF%BDcembre+1894%2C+Edimburg%2C+%EF%BF%BDcrivain+%EF%BF%BDcossais%2Cartistes+du+bout+du+monde%2C+artistesduboutdumonde%2C+bout+du+monde%2C+stevenson+in+Barbizon%2C+hiking+to+Grez%2C+%EF%BF%BDcole+de+grez-sur-loing%2C+gr%EF%BF%BDs+en+g%EF%BF%BDtinais%2C+g%EF%BF%BDtinais%2C+kuroda+seiki%2C+kuroda+grez%2C+travel+to+grez%2C+artistes+colonies%2C+Billaut+sisters%2C+Fondation+Chevillon%2C+rue+wilson%2C+tour+de+ganne%2C+pont+de+pierre+grez%2C+loing+river%2C+Asai+Chu%2C+vivre+%EF%BF%BD+grez%2C+Swedish+foundation%2C+chevillon+foudation%2C+randonn%EF%BF%BDe%2C+chemin+stevenson%2Cfor%EF%BF%BDt+de+fontainebleau';
var metaContents  = 'Activit%EF%BF%BDs+Association+Artistes+du+Bout+du+Monde+situ%EF%BF%BDe+%EF%BF%BD+Grez-sur-Loing.+Conf%EF%BF%BDrences%2C+expos%2C+concours%2C+Journ%EF%BF%BDes+Stevenson...';
					                                                                    
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 */					                                                            

