/* [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('Principal'),jdecode(''),'/501/index.html','true',[ 
		['PAGE','15701',jdecode('Memoria+2008'),jdecode(''),'/501/15701.html','true',[],'']
	],''],
	['PAGE','12601',jdecode('Actividades'),jdecode(''),'/12601/index.html','true',[ 
		['PAGE','20701',jdecode('I+Encuentro.+Conclusiones'),jdecode(''),'/12601/20701.html','true',[],'']
	],''],
	['PAGE','5822',jdecode('Hist%C3%B3rico'),jdecode(''),'/5822.html','true',[],''],
	['PAGE','7001',jdecode('Colaboradores'),jdecode(''),'/7001.html','true',[],''],
	['PAGE','7022',jdecode('Hazte+UnoM%C3%A1s'),jdecode(''),'/7022/index.html','true',[ 
		['PAGE','8301',jdecode('Solicitud'),jdecode(''),'/7022/8301/index.html','true',[ 
			['PAGE','8601',jdecode('Solicitud+%28follow+up+page%29'),jdecode(''),'/7022/8301/8601.html','false',[],'']
		],'']
	],''],
	['PAGE','7043',jdecode('Contacto'),jdecode(''),'/7043.html','true',[],'']];
var siteelementCount=10;
theSitetree.topTemplateName='Cuy';
theSitetree.paletteFamily='F3FAFB';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='385';
theSitetree.graphicsetId='437';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='F3FAFB';
var theTemplate={
				name: 			'Cuy',
				paletteFamily: 	'F3FAFB',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'385',
				graphicsetId: 	'437',
				contentColor: 	'000000',
				contentBGColor: 'F3FAFB',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'F3FAFB',
				b_color: 		'A9C9CD',
				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['5000']={
webappId:    '5000',
documentId:  '501',
internalId:  '',
customField: '20090412-205148'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '20701',
internalId:  '',
customField: '20090412-215003'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5822',
internalId:  '',
customField: '20081006-181219'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7022',
internalId:  '',
customField: '20080919-162545'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7043',
internalId:  '',
customField: '20090412-210207'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7001',
internalId:  '',
customField: '20080922-221540'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '8301',
internalId:  '',
customField: '20080919-162335'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '8301',
internalId:  'aars20inv1em11c7afc7956',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '8601',
internalId:  'aars20inv1em11c7afc7956',
customField: 'followUp'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '8601',
internalId:  '',
customField: '20080919-162118'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '12601',
internalId:  '',
customField: '20090412-214832'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '15701',
internalId:  '',
customField: '20090412-215210'
};
var canonHostname = 'wsc01a.arsys.es';
var accountId     = 'AARS20INV1EM';
var companyName   = 'Asociaci%C3%B3n+UnoM%C3%81S';
var htmlTitle	  = 'Asociaci%C3%B3n+UnoM%C3%81S';
var metaKeywords  = '';
var metaContents  = '';
					                                                                    
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 */					                                                            
