/* [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','80901',jdecode('Christian+Schwager'),jdecode(''),'/80901.html','true',[],''],
	['PAGE','301701',jdecode('%3EAlbert'),jdecode(''),'/301701.html','true',[],''],
	['PAGE','301722',jdecode('Francine'),jdecode(''),'/301722.html','true',[],''],
	['PAGE','301743',jdecode('Christine'),jdecode(''),'/301743.html','true',[],''],
	['PAGE','301764',jdecode('Anne'),jdecode(''),'/301764.html','true',[],''],
	['PAGE','301785',jdecode('Sylvie'),jdecode(''),'/301785.html','true',[],''],
	['PAGE','301806',jdecode('Laurent'),jdecode(''),'/301806.html','true',[],''],
	['PAGE','301827',jdecode('Charles+Schwager'),jdecode(''),'/301827.html','true',[],''],
	['PAGE','303701',jdecode('Peter+Schwager'),jdecode(''),'/303701.html','true',[],''],
	['PAGE','315501',jdecode('Lisa+Schwager'),jdecode(''),'/315501.html','true',[],''],
	['PAGE','328201',jdecode('L+Schwager'),jdecode(''),'/328201.html','true',[],'']];
var siteelementCount=11;
theSitetree.topTemplateName='Circulation';
theSitetree.paletteFamily='FC2323';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10587';
theSitetree.graphicsetId='10561';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='000000';
var theTemplate={
				name: 			'Circulation',
				paletteFamily: 	'FC2323',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10587',
				graphicsetId: 	'10561',
				contentColor: 	'FFFFFF',
				contentBGColor: '000000',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'FFFFFF',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '80901',
internalId:  '',
customField: '20110412-152917'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '301701',
internalId:  '',
customField: '20110503-153012'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '301722',
internalId:  '',
customField: '20110503-153047'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '301785',
internalId:  '',
customField: '20110503-153134'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '301764',
internalId:  '',
customField: '20110410-223147'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '301827',
internalId:  '',
customField: '20110410-224929'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '80901',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '301743',
internalId:  '',
customField: '20110410-223057'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '301806',
internalId:  '',
customField: '20110503-155810'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '303701',
internalId:  '',
customField: '20110410-225118'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '315501',
internalId:  '',
customField: '20110410-225210'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '80901',
internalId:  '12147388',
customField: '1501'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '328201',
internalId:  '',
customField: '20110410-225657'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INVDT7';
var companyName   = 'Christian+Schwager';
var htmlTitle	  = 'Schwager';
var metaKeywords  = 'schwager%2Cchristian+schwager%2Claurent+schwager%2Csylvie+dubois+schwager%2Calbert+schwager%2Cfrancine+lejeune+schwager%2Ccharles+schwager%2Cpeter+schwager%2Clisa+schwager%2Cl.schwager';
var metaContents  = 'schwager%2C+christian+schwager%2C+laurent+schwager%2C+sylvie+dubois+schwager%2C+albert+schwager%2C+francine+lejeune+schwager%2C+charles+schwager%2C+peter+schwager%2C+lisa+schwager%2C+l+schwager';
					                                                                    
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 */					                                                            

