/* [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','501',jdecode('BIENVENUE'),jdecode(''),'/501/index.html','true',[ 
		['PAGE','1140',jdecode('CONTACT'),jdecode(''),'/501/1140.html','true',[],''],
		['PAGE','70001',jdecode('GUIDE+TAILLE'),jdecode(''),'/501/70001.html','true',[],''],
		['PAGE','43801',jdecode('COMMANDE'),jdecode(''),'/501/43801.html','true',[],''],
		['PAGE','1077',jdecode('PAIEMENT'),jdecode(''),'/501/1077.html','true',[],''],
		['PAGE','11001',jdecode('LIVRAISON'),jdecode(''),'/501/11001.html','true',[],'']
	],''],
	['PAGE','41601',jdecode('Coll.+Hiver+2010%2F2011'),jdecode(''),'/41601.html','true',[],''],
	['PAGE','22901',jdecode('POINT+DE+VENTE'),jdecode(''),'/22901.html','true',[],''],
	['PAGE','1119',jdecode('Qui+Suis-je%3F'),jdecode(''),'/1119.html','true',[],''],
	['PAGE','1161',jdecode('PARTENAIRES'),jdecode(''),'/1161.html','true',[],''],
	['PAGE','26601',jdecode('MERCI'),jdecode(''),'/26601.html','true',[],''],
	['PAGE','77201',jdecode('ALBUM+PHOTO'),jdecode(''),'/77201.html','true',[],''],
	['PAGE','19606',jdecode('%E2%98%BB+Livre+d%26%23x27%3Bor'),jdecode(''),'/19606/index.html','true',[ 
		['PAGE','19601',jdecode('Entr%C3%A9es'),jdecode(''),'/19606/19601.html','true',[],'']
	],'']];
var siteelementCount=14;
theSitetree.topTemplateName='Hobby1';
theSitetree.paletteFamily='FFFFF3';
theSitetree.keyvisualId='10182';
theSitetree.keyvisualName='kv_10182.jpg';
theSitetree.fontsetId='21085';
theSitetree.graphicsetId='13179';
theSitetree.contentColor='2430C4';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Hobby1',
				paletteFamily: 	'FFFFF3',
				keyvisualId: 	'10182',
				keyvisualName: 	'kv_10182.jpg',
				fontsetId: 		'21085',
				graphicsetId: 	'13179',
				contentColor: 	'2430C4',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				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:  '501',
internalId:  '',
customField: '20100624-161904'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '41601',
internalId:  '',
customField: '20100624-145530'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '43801',
internalId:  '',
customField: '20100303-212738'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '43801',
internalId:  '6445617',
customField: 'fr:FR:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1119',
internalId:  '',
customField: '20100321-125146'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '26601',
internalId:  '',
customField: '20100527-212919'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1077',
internalId:  '',
customField: '20100416-205859'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '11001',
internalId:  '',
customField: '20100114-203615'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1140',
internalId:  '',
customField: '20100114-151033'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1161',
internalId:  '',
customField: '20091221-120132'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '501',
internalId:  '1006',
customField: '1006'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '19606',
internalId:  '19606aam010inznct',
customField: 'action=form&icq=false'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '19601',
internalId:  '19606aam010inznct',
customField: 'action=list'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '19606',
internalId:  '',
customField: '20091105-000337'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '19601',
internalId:  '',
customField: '20091105-000337'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '1140',
internalId:  '6251401',
customField: 'fr:FR:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '22901',
internalId:  '',
customField: '20100412-111616'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '70001',
internalId:  '',
customField: '20100321-125023'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '77201',
internalId:  '1280277256d',
customField: 'g.150176vd2.j5397t3jgu.3o'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '77201',
internalId:  '',
customField: '20100415-192244'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '501',
internalId:  '6270488',
customField: '1501'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INZNCT';
var companyName   = '++++++Au+Fil+de+L%27imaginaire.';
var htmlTitle	  = 'AU+FIL+DE+LIMAGINAIRE++Cr%C3%A9atrice+de+MOde+enfantine';
var metaKeywords  = 'cr%C3%A9ation+enfant%2C+cr%C3%A9atrice+de+mode+enfant%2C+styliste%2C+design%2C+designer%2C+mode+enfant%2C+mode+enfantine%2C+pr%C3%AAt-%C3%A0-porter+fille%2C+pr%C3%AAt-%C3%A0-porter+enfant%2C+v%C3%AAtement+fille%2C+v%C3%AAtement+enfant%2C+robe+fille%2C+jupe+fille%2C+manteau+fille%2C+pantalon+fille%2C+';
var metaContents  = 'Cr%C3%A9atrice+de+Mode+enfantine+pour+princesses+du+2+ans+au+8+ans.+Un+style+subtilement+diff%C3%A9rent%2C+r%C3%A9solument+Craquant%21';
					                                                                    
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 */					                                                            
