/* [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('Home'),jdecode(''),'/501.html','true',[],''],
	['PAGE','552',jdecode('Qui%C3%A9nes+somos'),jdecode(''),'/552.html','true',[],''],
	['PAGE','573',jdecode('Qu%C3%A9+hacemos'),jdecode(''),'/573.html','true',[],''],
	['PAGE','594',jdecode('Informaci%C3%B3n+drogas'),jdecode(''),'/594/index.html','true',[ 
		['PAGE','615',jdecode('Drogas+%2B+frecuentes'),jdecode(''),'/594/615.html','true',[],''],
		['PAGE','636',jdecode('Drogas+de+s%C3%ADntesis'),jdecode(''),'/594/636.html','true',[],''],
		['PAGE','657',jdecode('Otras+drogas'),jdecode(''),'/594/657.html','true',[],'']
	],''],
	['PAGE','678',jdecode('Recursos+tratamiento'),jdecode(''),'/678/index.html','true',[ 
		['PAGE','9601',jdecode('Madrid+capital'),jdecode(''),'/678/9601.html','true',[],''],
		['PAGE','9622',jdecode('Comunidad+de+Madrid'),jdecode(''),'/678/9622.html','true',[],''],
		['PAGE','9643',jdecode('Castilla+La+Mancha'),jdecode(''),'/678/9643.html','true',[],''],
		['PAGE','9664',jdecode('Otras+Comunidades+Aut%C3%B3nomas'),jdecode(''),'/678/9664.html','true',[],'']
	],''],
	['PAGE','9685',jdecode('S.I.O.D.+Contactanos'),jdecode(''),'/9685.html','true',[],''],
	['PAGE','9706',jdecode('C%C3%B3mo+colaborar'),jdecode(''),'/9706.html','true',[],''],
	['PAGE','14901',jdecode('Noticias+y+convocatorias'),jdecode(''),'/14901.html','true',[],''],
	['PAGE','9748',jdecode('Enlaces'),jdecode(''),'/9748.html','true',[],''],
	['PAGE','9769',jdecode('Preguntas+frecuentes'),jdecode(''),'/9769.html','true',[],''],
	['PAGE','9832',jdecode('Aviso+legal'),jdecode(''),'/9832.html','true',[],'']];
var siteelementCount=18;
theSitetree.topTemplateName='Galerie';
theSitetree.paletteFamily='336699';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='73';
theSitetree.graphicsetId='94';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Galerie',
				paletteFamily: 	'336699',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'73',
				graphicsetId: 	'94',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'336699',
				b_color: 		'D8F8F8',
				c_color: 		'000000',
				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: '20090705-172853'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '594',
internalId:  '',
customField: '20090531-194204'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '552',
internalId:  '',
customField: '20090705-191356'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '573',
internalId:  '',
customField: '20090705-175119'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '615',
internalId:  '',
customField: '20090713-160010'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '636',
internalId:  '',
customField: '20090705-190248'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '657',
internalId:  '',
customField: '20090706-170225'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '678',
internalId:  '',
customField: '20090707-170144'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '9601',
internalId:  '',
customField: '20090707-165933'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '9622',
internalId:  '',
customField: '20090531-231557'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '501',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '9643',
internalId:  '',
customField: '20090705-171620'
};
webappMappings['3030']={
webappId:    '3030',
documentId:  '14901',
internalId:  '14901',
customField: 'language:es;country:ES;'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '14901',
internalId:  '',
customField: '20090707-123453'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '9664',
internalId:  '',
customField: '20090705-171730'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '9685',
internalId:  '',
customField: '20090713-155517'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '9706',
internalId:  '',
customField: '20090705-182054'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '9832',
internalId:  '',
customField: '20090707-123942'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '9748',
internalId:  '',
customField: '20090629-161116'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '9769',
internalId:  '',
customField: '20090601-004307'
};
var canonHostname = 'wsc01a.arsys.es';
var accountId     = 'AARS20INL9H2';
var companyName   = 'www.drogasinformate.org';
var htmlTitle	  = 'Asociaci%C3%B3n+Epsilon+-+Intervenci%C3%B3n+en+drogodependencias';
var metaKeywords  = 'Asociaci%C3%B3n+Epsilon%2C+Epsilon%2C+drogas%2C+drogodependencia%2C+adicci%C3%B3n%2C+drogodependiente%2C+tratamiento%2C+desintoxicaci%C3%B3n%2C+rehabilitaci%C3%B3n%2C+reinserci%C3%B3n%2C+sensibilizaci%C3%B3n%2C+orientaci%C3%B3n%2C+formaci%C3%B3n+en+drogas%2C+recursos+de+tratamiento%2C+C.A.D.%2C+C.A.I.D.%2C+U.C.A.%2C+alcohol%2C+tabaco%2C+cannabis%2C+coca%C3%ADna%2C+hero%C3%ADna%2C+%C3%A9xtasis%2C+GHB%2C+%C3%A9xtasis+l%C3%ADquido%2C+speed%2C+pastillas%2C+polvo+de+%C3%A1ngel%2C+ketamina%2C+LSD%2C+popper%2C+setas+alucin%C3%B3genas%2C+acompa%C3%B1amiento+terap%C3%A9utico.';
var metaContents  = 'Somos+una+entidad+sin+%C3%A1nimo+de+lucro+de+%C3%A1mbito+estatal%2C+sin+vinculaci%C3%B3n+ni+adscripci%C3%B3n+a+grupos+pol%C3%ADticos+o+religiosos%2C+que+pretende+contribuir+a+la+reducci%C3%B3n+de+los+efectos+negativos+del+consumo+de+drogas.+Esta+p%C3%A1gina+da+informaci%C3%B3n+de+las+distintas+drogas+y+los+recursos+para+los+consumidores+de+%C3%A9stas.';
					                                                                    
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 */					                                                            
