/* [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('Inicio-Hasiera'),jdecode(''),'/501.html','true',[],''],
	['PAGE','33201',jdecode('PROGRAMA'),jdecode(''),'/33201/index.html','true',[ 
		['PAGE','33222',jdecode('Lunes+26-05-08'),jdecode(''),'/33201/33222.html','true',[],''],
		['PAGE','33243',jdecode('Martes+27-05-08'),jdecode(''),'/33201/33243.html','true',[],''],
		['PAGE','33264',jdecode('Mi%C3%A9rc.+28-05-08'),jdecode(''),'/33201/33264.html','true',[],''],
		['PAGE','33285',jdecode('Jueves+29-05-08'),jdecode(''),'/33201/33285.html','true',[],''],
		['PAGE','33306',jdecode('Viernes+30-05-08'),jdecode(''),'/33201/33306.html','true',[],''],
		['PAGE','33327',jdecode('Sabado+31-05-08'),jdecode(''),'/33201/33327.html','true',[],'']
	],''],
	['PAGE','18601',jdecode('CASTELLANO'),jdecode(''),'/18601/index.html','true',[ 
		['PAGE','18643',jdecode('Historial'),jdecode(''),'/18601/18643.html','true',[],''],
		['PAGE','18706',jdecode('Programaci%C3%B3n'),jdecode(''),'/18601/18706.html','true',[],''],
		['PAGE','39101',jdecode('Ganadores+08'),jdecode(''),'/18601/39101.html','true',[],''],
		['PAGE','18664',jdecode('Bases'),jdecode(''),'/18601/18664.html','true',[],''],
		['PAGE','18685',jdecode('Inscripci%C3%B3n'),jdecode(''),'/18601/18685.html','true',[],''],
		['PAGE','18727',jdecode('%C2%A1ESCUELAS%21'),jdecode(''),'/18601/18727.html','true',[],''],
		['PAGE','18748',jdecode('Links'),jdecode(''),'/18601/18748.html','true',[],'']
	],''],
	['PAGE','18769',jdecode('EUSKARA'),jdecode(''),'/18769/index.html','true',[ 
		['PAGE','18811',jdecode('Ibilbidea'),jdecode(''),'/18769/18811.html','true',[],''],
		['PAGE','18874',jdecode('Programazioa'),jdecode(''),'/18769/18874.html','true',[],''],
		['PAGE','18832',jdecode('Oinarriak'),jdecode(''),'/18769/18832.html','true',[],''],
		['PAGE','18853',jdecode('Inskripzio+orria'),jdecode(''),'/18769/18853.html','true',[],''],
		['PAGE','18895',jdecode('ESKOLAK%21'),jdecode(''),'/18769/18895.html','true',[],''],
		['PAGE','18916',jdecode('Links'),jdecode(''),'/18769/18916.html','true',[],'']
	],'']];
var siteelementCount=23;
theSitetree.topTemplateName='Akropolis';
theSitetree.paletteFamily='5E5E5E';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10344';
theSitetree.graphicsetId='10448';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='5e5e5e';
var theTemplate={
				name: 			'Akropolis',
				paletteFamily: 	'5E5E5E',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10344',
				graphicsetId: 	'10448',
				contentColor: 	'FFFFFF',
				contentBGColor: '5e5e5e',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'5E5E5E',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '501',
internalId:  '',
customField: '20080304-175734'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18601',
internalId:  '',
customField: '20080304-161744'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18643',
internalId:  '',
customField: '20080304-162023'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18664',
internalId:  '',
customField: '20080304-162704'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18727',
internalId:  '',
customField: '20080304-162843'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18685',
internalId:  '',
customField: '20080220-181956'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18706',
internalId:  '',
customField: '20080516-091524'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18748',
internalId:  '',
customField: '20080306-164136'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18769',
internalId:  '',
customField: '20080305-120604'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18811',
internalId:  '',
customField: '20080305-120343'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18832',
internalId:  '',
customField: '20080305-120816'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18853',
internalId:  '',
customField: '20080305-114921'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18874',
internalId:  '',
customField: '20080516-091717'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18895',
internalId:  '',
customField: '20080305-120929'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18916',
internalId:  '',
customField: '20080306-164552'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '39101',
internalId:  '',
customField: '20080602-125852'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '33201',
internalId:  '',
customField: '20080516-091832'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '33222',
internalId:  '',
customField: '20080514-230801'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '33243',
internalId:  '',
customField: '20080514-222424'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '33264',
internalId:  '',
customField: '20080514-223250'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '33285',
internalId:  '',
customField: '20080514-224256'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '33306',
internalId:  '',
customField: '20080514-225431'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '33327',
internalId:  '',
customField: '20080514-225923'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '501',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '501',
internalId:  '3222152',
customField: '1501'
};
var canonHostname = 'wsc01a.arsys.es';
var accountId     = 'AARS20IN38GF';
var companyName   = 'FESTIVAL+DE+CORTOMETRAJES+DE+ERANDIO';
var htmlTitle	  = 'Festival+de+Cortometrajes+de+Erandio';
var metaKeywords  = 'festival+de+cine++festival+de+cortometrajes++cortometrajes+de+humor++cortometrajes+documentales++Erandio++cortometrajes+bilbao++cortometrajes+bizkaia++cortometrajes+pa%C3%ADs+vasco++actividades+culturales+erandio++cultura+erandio';
var metaContents  = 'FESTIVAL+DE+CINEMA%2C+CORTOMETRAJES+DE+HUMOR+Y+DOCUMENTALES';
					                                                                    
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 */					                                                            
