/* [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','1408',jdecode('ACCUEIL'),jdecode(''),'/1408.html','true',[],''],
	['PAGE','11103',jdecode('QUI+SOMMES+NOUS%3F'),jdecode(''),'/11103.html','true',[],''],
	['PAGE','11390',jdecode('COMMANDER+EN+LIGNE'),jdecode(''),'/11390.html','true',[],''],
	['PAGE','11363',jdecode('NOS+PARTENAIRES...'),jdecode(''),'/11363.html','true',[],''],
	['PAGE','34751',jdecode('NOS+OFFRES...'),jdecode(''),'/34751.html','true',[],'']];
var siteelementCount=5;
theSitetree.topTemplateName='Round';
theSitetree.paletteFamily='CC3333';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='439';
theSitetree.graphicsetId='495';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='e47272';
var theTemplate={
				name: 			'Round',
				paletteFamily: 	'CC3333',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'439',
				graphicsetId: 	'495',
				contentColor: 	'FFFFFF',
				contentBGColor: 'e47272',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'e47272',
				b_color: 		'CC3333',
				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['1006']={
webappId:    '1006',
documentId:  '1408',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1408',
internalId:  '',
customField: '20100730-212309'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '11390',
internalId:  '',
customField: '20100812-162826'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '11390',
internalId:  '11852785',
customField: 'fr:FR:'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '1408',
internalId:  '11896506',
customField: 'fr:FR:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '11103',
internalId:  '',
customField: '20091204-160139'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '11363',
internalId:  '',
customField: '20090927-175231'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '34751',
internalId:  '',
customField: '20100730-212141'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010IN2N2Z';
var companyName   = 'PIZZA+CARRE+CONCEPT';
var htmlTitle	  = 'PIZZA+CARRE';
var metaKeywords  = 'dominos+pizza%2Cdominos+pizza%2C+pizzahut%2Cpizza+carre%2Cpizza+square%2Cidee+pizza%2Cid%C3%A9e+pizza%2Csauce+pizza%2Cmambo+pizza%2Cpizzas%2CPIZZA%2CPIZZERIA%2CPIZZA+CARRE%2CPIZZA+CARREE%2Cpizzacarr%EF%BF%BDe%2Cpizza+carr%EF%BF%BDe%2Cpizza+nice%2Cpizzacarr%EF%BF%BD%2Cpizzacarr%EF%BF%BDe%2Cpizzas+carr%EF%BF%BDes%2Cpizza+carr%EF%BF%BD%2Cpizza+nice%2Cpizz%EF%BF%BDria+sur+nice%2Cpizza+sur+nice%2C+pizz%EF%BF%BDria+%EF%BF%BD+nice%2Cpizz%EF%BF%BDria+a+nice%2Clivraison+de+pizza%2C+livraison+de+pizzas%2CPIZZACARRE%2CRESTAURANT%2CRESTAURANT+SUR+NICE%2CPIZZAS%2CPIZZERIAS%2CLIVRAISONS+A+DOMICILE%2CLIVRAISON+A+DOMICILE%2CPIZZERIA+FRANCHISE%2CSERVICE+DE+LIVRAISON+A+DOMICILE%2CWWW.PIZZA.COM%2CWWW.PIZZAS.COM%2CWWW.PIZZA.FR%2CWWW.RESTAURANT.COM%2CWWW.PIZZACARRE.COM+WWW.RESTAURANTS.COM%2CRESTAURATION%2CNOUVELLE+PIZZA+';
var metaContents  = 'UNIQUE+SUR+NICE.COMMANDEZ+EN+LIGNE+VOS+PIZZAS%2CSALADES%2CDESSERTS%2CETC...NOTRE+CONCEPT+VOUS+PROPOSE+UN+SERVICE+DE+LIVRAISON+A+DOMICILE+DE+PIZZAS+DE+FORME+CARREES...';
					                                                                    
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 */					                                                            
