/* [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','4598',jdecode('Home'),jdecode(''),'/4598.html','true',[],''],
	['PAGE','7201',jdecode('Produits'),jdecode(''),'/7201/index.html','true',[ 
		['PAGE','7228',jdecode('Presse+d%26%23x27%3Bentreprise'),jdecode(''),'/7201/7228.html','true',[],''],
		['PAGE','7255',jdecode('Contenus+Internet'),jdecode(''),'/7201/7255.html','true',[],''],
		['PAGE','7282',jdecode('R%C3%A9daction+corporate'),jdecode(''),'/7201/7282.html','true',[],'']
	],''],
	['PAGE','11601',jdecode('Parcours'),jdecode(''),'/11601.html','true',[],''],
	['PAGE','4901',jdecode('Contact'),jdecode(''),'/4901.html','true',[],'']];
var siteelementCount=7;
theSitetree.topTemplateName='Fragment';
theSitetree.paletteFamily='D8CFB1';
theSitetree.keyvisualId='3450';
theSitetree.keyvisualName='kv_3450.jpg';
theSitetree.fontsetId='10646';
theSitetree.graphicsetId='10763';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Fragment',
				paletteFamily: 	'D8CFB1',
				keyvisualId: 	'3450',
				keyvisualName: 	'kv_3450.jpg',
				fontsetId: 		'10646',
				graphicsetId: 	'10763',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'D8CFB1',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'6E6237',
				e_color: 		'6E6237',
				f_color: 		'6E6237',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4598',
internalId:  '',
customField: '20091005-121400'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7201',
internalId:  '',
customField: '20080801-114140'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7255',
internalId:  '',
customField: '20090306-111531'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7228',
internalId:  '',
customField: '20090306-110714'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7282',
internalId:  '',
customField: '20090306-111620'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '11601',
internalId:  '',
customField: '20080801-114712'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4901',
internalId:  '',
customField: '20090306-112604'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INEIYN';
var companyName   = 'COMMUNICATION+EDITORIALE';
var htmlTitle	  = 'Bruno+Mathon%2C+communication+%C3%A9ditoriale+web+et+print';
var metaKeywords  = 'communication+%EF%BF%BDditoriale%2C+conseil+%EF%BF%BDditorial%2C+presse+dentreprise%2C+contenus+Internet%2C+web-tv%2C+vid%C3%A9os+pour+le+web%2C+interviews+vid%C3%A9o%2C+conception+et+r%EF%BF%BDdaction%2C+consultant+%EF%BF%BDditorial%2C+journaliste%2C+r%EF%BF%BDdacteur%2C+photographe%2C+Paris%2C+Marseille';
var metaContents  = 'communication+%EF%BF%BDditoriale%2C+conseil+%EF%BF%BDditorial%2C+presse+dentreprise%2C+contenus+Internet%2C+r%EF%BF%BDdaction+de+contenus+Internet%2C+r%EF%BF%BDalisation+de+contenus+Internet%2C+conception+et+r%EF%BF%BDdaction+de+tous+vos+supports+%EF%BF%BDcrits%2C+plaquettes%2C+journaux+dentreprise%2C+vid%C3%A9os+pour+le+web%2C+interviews+vid%C3%A9o%2C+reportages+vid%C3%A9os%2C+web-tv%2C+lettres+dinformation%2C+livres%2C+d%EF%BF%BDpliants%2C+rapports+annuels%2C+communiqu%EF%BF%BDs+de+presse%2C+dossiers+de+presse%2C+annonces+publicitaires%2C+brochures+commerciales%2C+reportages%2C+interviews%2C+photos+num%EF%BF%BDriques%2C+sites+internet%2C+contenus+Internet%2C+newsletters%2C+blogs%2C+weblogs%2C+Paris%2C+Marseille%2C+Grand+Sud';
					                                                                    
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 */					                                                            
