/* [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','1508',jdecode('Inicio'),jdecode(''),'/1508.html','true',[],''],
	['PAGE','195137',jdecode('DONATIVOS'),jdecode(''),'/195137.html','true',[],''],
	['PAGE','17507',jdecode('Complexo+Desportivo'),jdecode(''),'/17507.html','true',[],''],
	['PAGE','1828',jdecode('Patrocinadores'),jdecode(''),'/1828.html','true',[],''],
	['PAGE','1855',jdecode('Org%C3%A3os+Sociais'),jdecode(''),'/1855.html','true',[],''],
	['PAGE','1936',jdecode('Contactos'),jdecode(''),'/1936.html','true',[],''],
	['PAGE','29607',jdecode('Classifica%C3%A7%C3%B5es'),jdecode(''),'/29607.html','true',[],''],
	['PAGE','166037',jdecode('Futebol+Senior'),jdecode(''),'/166037.html','true',[],''],
	['PAGE','10907',jdecode('Futebol+Forma%C3%A7%C3%A3o'),jdecode(''),'/10907/index.html','true',[ 
		['PAGE','10961',jdecode('Juvenis'),jdecode(''),'/10907/10961.html','true',[],''],
		['PAGE','10934',jdecode('Infantis+Sub-12'),jdecode(''),'/10907/10934.html','true',[],''],
		['PAGE','171737',jdecode('Escolas+Sub-10'),jdecode(''),'/10907/171737.html','true',[],'']
	],''],
	['PAGE','43837',jdecode('Futebol+Feminino'),jdecode(''),'/43837.html','true',[],''],
	['PAGE','10561',jdecode('Futsal'),jdecode(''),'/10561/index.html','true',[ 
		['PAGE','10588',jdecode('S%C3%A9niores'),jdecode(''),'/10561/10588.html','true',[],''],
		['PAGE','10615',jdecode('Juniores'),jdecode(''),'/10561/10615.html','true',[],'']
	],''],
	['PAGE','90237',jdecode('Automobilismo'),jdecode(''),'/90237.html','true',[],''],
	['PAGE','97037',jdecode('Atletismo'),jdecode(''),'/97037.html','true',[],''],
	['PAGE','36537',jdecode('Calend%C3%A1rios+de+provas'),jdecode(''),'/36537.html','true',[],''],
	['PAGE','15707',jdecode('Estatutos'),jdecode(''),'/15707.html','true',[],''],
	['PAGE','11807',jdecode('Palmar%C3%A9s'),jdecode(''),'/11807.html','true',[],''],
	['PAGE','14708',jdecode('Album+de+Fotos'),jdecode(''),'/14708.html','true',[],''],
	['PAGE','198242',jdecode('Livro+de+visitas'),jdecode(''),'/198242/index.html','true',[ 
		['PAGE','198237',jdecode('Entradas'),jdecode(''),'/198242/198237.html','true',[],'']
	],'']];
var siteelementCount=24;
theSitetree.topTemplateName='Soccer';
theSitetree.paletteFamily='FFFD63';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10499';
theSitetree.graphicsetId='11116';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='000000';
var theTemplate={
				name: 			'Soccer',
				paletteFamily: 	'FFFD63',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10499',
				graphicsetId: 	'11116',
				contentColor: 	'FFFFFF',
				contentBGColor: '000000',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'FFFD63',
				e_color: 		'FFFD63',
				f_color: 		'FFFD63',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '1508',
internalId:  '1006',
customField: '1006'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '14708',
internalId:  '10c7e060f96',
customField: 'g.12lf93ka7.2m56k4ab7kk8m.6rn80'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '198237',
internalId:  '198242aam010invwtp',
customField: 'action=list'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '1508',
internalId:  '7585815',
customField: '1501'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '198237',
internalId:  '',
customField: '20100110-010850'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1508',
internalId:  '',
customField: '20100821-170758'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1828',
internalId:  '',
customField: '20091002-234225'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1855',
internalId:  '',
customField: '20091002-234854'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1936',
internalId:  '',
customField: '20100612-115827'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '10907',
internalId:  '',
customField: '20100710-072044'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '10961',
internalId:  '',
customField: '20100710-072154'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '10934',
internalId:  '',
customField: '20100710-072430'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '10561',
internalId:  '',
customField: '20081101-141829'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '10588',
internalId:  '',
customField: '20090614-184833'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '10615',
internalId:  '',
customField: '20090614-184920'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '43837',
internalId:  '',
customField: '20100710-072540'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '29607',
internalId:  '',
customField: '20100319-132349'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '36537',
internalId:  '',
customField: '20100311-232640'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '97037',
internalId:  '',
customField: '20090405-155327'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '15707',
internalId:  '',
customField: '20060811-185640'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '17507',
internalId:  '',
customField: '20091105-171043'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '11807',
internalId:  '',
customField: '20091119-021829'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '14708',
internalId:  '',
customField: '20061102-135932'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '171737',
internalId:  '',
customField: '20100710-072402'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '198242',
internalId:  '198242aam010invwtp',
customField: 'action=form&icq=false'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '90237',
internalId:  '',
customField: '20100226-004647'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '198242',
internalId:  '',
customField: '20100112-003259'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '166037',
internalId:  '',
customField: '20100710-071949'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '195137',
internalId:  '',
customField: '20100607-151006'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INVWTP';
var companyName   = 'FUTEBOL+CLUBE+VALE+FORMOSO';
var htmlTitle	  = 'vale+formoso';
var metaKeywords  = 'Vale+Formoso+Furnas+A%EF%BF%BDores';
var metaContents  = 'Futebol+Clube+Vale+Formoso+Furnas+S%EF%BF%BDo+Miguel+A%EF%BF%BDores';
					                                                                    
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 */					                                                            
