/* [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','401',jdecode('PRESENTACI%C3%93N'),jdecode(''),'/401.html','true',[],''],
	['PAGE','452',jdecode('CONSTITUCI%C3%93N'),jdecode(''),'/452.html','true',[],''],
	['PAGE','473',jdecode('C.M.P.'),jdecode(''),'/473.html','true',[],''],
	['PAGE','515',jdecode('CONCEPTOS+GENERALES'),jdecode(''),'/515.html','true',[],''],
	['PAGE','494',jdecode('PUBLICACIONES'),jdecode(''),'/494.html','true',[],''],
	['PAGE','536',jdecode('BOLETINES+INFORMATIVOS'),jdecode(''),'/536.html','true',[],''],
	['PAGE','557',jdecode('CONTACTO+%2F+LINKS'),jdecode(''),'/557.html','true',[],'']];
var siteelementCount=7;
theSitetree.topTemplateName='Holiday';
theSitetree.paletteFamily='925395';
theSitetree.keyvisualId='6142';
theSitetree.keyvisualName='kv_6142.jpg';
theSitetree.fontsetId='11133';
theSitetree.graphicsetId='11927';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='AD68B0';
var theTemplate={
				name: 			'Holiday',
				paletteFamily: 	'925395',
				keyvisualId: 	'6142',
				keyvisualName: 	'kv_6142.jpg',
				fontsetId: 		'11133',
				graphicsetId: 	'11927',
				contentColor: 	'FFFFFF',
				contentBGColor: 'AD68B0',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20100831-181339'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '452',
internalId:  '',
customField: '20081010-195755'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '473',
internalId:  '',
customField: '20081213-000729'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '494',
internalId:  '',
customField: '20100602-205028'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '515',
internalId:  '',
customField: '20090521-173909'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '536',
internalId:  '',
customField: '20100622-192332'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '557',
internalId:  '',
customField: '20100901-202833'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '557',
internalId:  '953009',
customField: 'es:ES:'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
var canonHostname = 'localhost';
var accountId     = 'AAK020IN20J5';
var companyName   = 'G.E.I.M.M.E.';
var htmlTitle	  = 'G.E.I.M.M.E.';
var metaKeywords  = 'Martinismo%2C+Saint-Martin%2C+Elus+Cohen%2C+Pasqually%2C+Willermoz%2C+Rosa+Cruz%2C+Masoner%C3%ADa%2C+Priorato%2C+Teosof%C3%ADa%2C+Te%C3%BArgia%2C+Magia%2C+Alquimia%2C+Oraci%C3%B3n%2C+Cristianismo%2C+Gnosi%2C+Gnosticismo%2C+Iglesia';
var metaContents  = 'Grupo+de+Estudios+e+Investigaciones+Martinistas++Martinezistas+de+Espa%C3%B1a';
					                                                                    
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 */					                                                            
