/* [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','1513',jdecode('Home'),jdecode(''),'/1513.html','true',[],''],
	['PAGE','2301',jdecode('Objetivo'),jdecode(''),'/2301.html','true',[],''],
	['PAGE','2328',jdecode('Filosof%C3%ADa+Educativa'),jdecode(''),'/2328.html','true',[],''],
	['PAGE','2355',jdecode('Ventajas+del+Sistema'),jdecode(''),'/2355.html','true',[],''],
	['PAGE','2382',jdecode('Grados'),jdecode(''),'/2382.html','true',[],''],
	['PAGE','2409',jdecode('Servicios+Adicionales'),jdecode(''),'/2409.html','true',[],''],
	['PAGE','2436',jdecode('Instalaciones'),jdecode(''),'/2436.html','true',[],''],
	['PAGE','2463',jdecode('Informes'),jdecode(''),'/2463/index.html','true',[ 
		['PAGE','5325',jdecode('Informes+%28follow+up+page%29'),jdecode(''),'/2463/5325.html','false',[],'']
	],'']];
var siteelementCount=9;
theSitetree.topTemplateName='Alpha';
theSitetree.paletteFamily='D72B2B';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10461';
theSitetree.graphicsetId='10893';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Alpha',
				paletteFamily: 	'D72B2B',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10461',
				graphicsetId: 	'10893',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'D72B2B',
				e_color: 		'D72B2B',
				f_color: 		'D72B2B',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1501']={
webappId:    '1501',
documentId:  '1513',
internalId:  '126500',
customField: '1501'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '2463',
internalId:  'avec10inxe59a62f716f801ad4ba',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '5325',
internalId:  'avec10inxe59a62f716f801ad4ba',
customField: 'followUp'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '1513',
internalId:  '1006',
customField: '1006'
};
var canonHostname = 'diywk02.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INXE59';
var companyName   = 'COLEGIO+BERTALANFFY';
var htmlTitle	  = 'COLEGIO+BERTALANFFY+-+Guarderia+infantil%2C+Day+Care%2C+Maternal+%2C+Primaria+High+Scope';
var metaKeywords  = 'guarderia+infantil+maternal+lactantes+kinder+primaria+high+scope+guarderia+ciudad+de+mexico+DF+colegio+';
var metaContents  = 'Contamos+con+guarderia+infantil+para+lactantes%2C+maternal%2C+day+care%2C+kinder+y+primaria.+Utilizamos+el+innovador+modelo+educativo+High+Scope%2C+que+ejercita+y+desafia+las+capacidades+que+surgen+en+cada+etapa+del+desarrollo%2C+que+estimula+y+ayuda+al+ni%C3%B1o+a+desarrollar+su+patr%C3%B3n+distintivo+de+intereses%2C+talentos+y+metas+a+largo+plazo%3B+y+que+presente+la+experiencia+de+aprendizaje+cuando+el+ni%C3%B1o+se+encuentra+evolutivamente+en+mejores+condiciones+para+dominar%2C+generalizar+y+retener+lo+que+aprende%2C+as%C3%AD+como+relacionarlo+con+las+experiencias+previas+y+las+expectativas+futuras.';
					                                                                    
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 */					                                                            
