/* [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','3694',jdecode('Home'),jdecode(''),'/3694.html','true',[],''],
	['PAGE','3901',jdecode('Chi+Siamo'),jdecode(''),'/3901.html','true',[],''],
	['PAGE','3922',jdecode('Eventi'),jdecode(''),'/3922.html','true',[],''],
	['PAGE','3745',jdecode('Area+Foto'),jdecode(''),'/3745.html','true',[],''],
	['PAGE','3943',jdecode('Dove+Siamo+%26+Contatti'),jdecode(''),'/3943.html','true',[],'']];
var siteelementCount=5;
theSitetree.topTemplateName='Corpus';
theSitetree.paletteFamily='A19A7E';
theSitetree.keyvisualId='8967';
theSitetree.keyvisualName='kv_8967.jpg';
theSitetree.fontsetId='17258';
theSitetree.graphicsetId='12681';
theSitetree.contentColor='313131';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Corpus',
				paletteFamily: 	'A19A7E',
				keyvisualId: 	'8967',
				keyvisualName: 	'kv_8967.jpg',
				fontsetId: 		'17258',
				graphicsetId: 	'12681',
				contentColor: 	'313131',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'bdaf77',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '3694',
internalId:  '',
customField: '20090314-161114'
};
webappMappings['7060']={
webappId:    '7060',
documentId:  '3745',
internalId:  'a5586aed0a20123a86c0b08e729feab3',
customField: 'language:it;country:IT;'
};
webappMappings['7050']={
webappId:    '7050',
documentId:  '3922',
internalId:  '3347',
customField: 'language:it;country:IT;'
};
webappMappings['7008']={
webappId:    '7008',
documentId:  '3943',
internalId:  '4753',
customField: 'language:it;country:IT;'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '3694',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '3694',
internalId:  '6354730',
customField: '1501'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '3901',
internalId:  '',
customField: '20080509-161446'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '3922',
internalId:  '',
customField: '20090314-160439'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '3745',
internalId:  '',
customField: '20090314-162946'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '3943',
internalId:  '',
customField: '20080921-002448'
};
var canonHostname = 'fe2.cm4all.tiscali.sys';
var accountId     = 'ATC030INELQB';
var companyName   = 'Chiesa+Unita+Pentecostale+%22Casa+di+Preghiera%22+Giarre';
var htmlTitle	  = 'web.tiscali.it%2Fchiesaupcigiarre.it';
var metaKeywords  = 'chiesa+upci+religione+dottrina+pastore+reverendo+membri+membro+bibbia+conferenza+';
var metaContents  = 'contenuti+religiosi';
					                                                                    
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 */					                                                            

