/* [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','4607',jdecode('Inicio'),jdecode(''),'/4607.html','true',[],''],
	['PAGE','4664',jdecode('%C2%BFQu%C3%A9+es+ASVIGAL%3F'),jdecode(''),'/4664.html','true',[],''],
	['PAGE','4718',jdecode('Centros+de+Coru%C3%B1a+'),jdecode(''),'/4718.html','true',[],''],
	['PAGE','5328',jdecode('Cent.+de+Pontevedra+'),jdecode(''),'/5328.html','true',[],''],
	['PAGE','4772',jdecode('Centros+de++Lugo'),jdecode(''),'/4772.html','true',[],''],
	['PAGE','5301',jdecode('Centros+de+Orense'),jdecode(''),'/5301.html','true',[],''],
	['PAGE','5355',jdecode('NOTICIAS'),jdecode(''),'/5355.html','true',[],'']];
var siteelementCount=7;
theSitetree.topTemplateName='Impulse';
theSitetree.paletteFamily='7FBEAE';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10652';
theSitetree.graphicsetId='10676';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='7FBEAE';
var theTemplate={
				name: 			'Impulse',
				paletteFamily: 	'7FBEAE',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10652',
				graphicsetId: 	'10676',
				contentColor: 	'000000',
				contentBGColor: '7FBEAE',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'478575',
				e_color: 		'296254',
				f_color: 		'25856C',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4607',
internalId:  '',
customField: '20111019-173433'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4664',
internalId:  '',
customField: '20110609-105659'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4718',
internalId:  '',
customField: '20111123-152502'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4772',
internalId:  '',
customField: '20110927-084409'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5301',
internalId:  '',
customField: '20110923-151923'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5328',
internalId:  '',
customField: '20111124-143236'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5355',
internalId:  '',
customField: '20110925-114254'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '4607',
internalId:  '1006',
customField: '1006'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INL1YC';
var companyName   = 'ASVIGAL';
var htmlTitle	  = 'ASOCIACI%C3%93N+DE+VOLUNTARIOS+DE+INFORM%C3%81TICA+DE+GALICIA';
var metaKeywords  = 'Voluntariado++Personas+mayores++Inform%C3%A1tica';
var metaContents  = 'Voluntarios+de+inform%C3%A1tica+de+Galicia';
					                                                                    
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 */					                                                            

