/* [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','701',jdecode('Pagina+Principal'),jdecode(''),'/701.html','true',[],''],
	['PAGE','12901',jdecode('Qui%C3%A9nes+somos'),jdecode(''),'/12901.html','true',[],''],
	['PAGE','773',jdecode('Servicios'),jdecode(''),'/773.html','true',[],''],
	['PAGE','4985',jdecode('Cont%C3%A1ctanos'),jdecode(''),'/4985/index.html','true',[ 
		['PAGE','12701',jdecode('Cont%C3%A1ctenos+%28follow+up+page%29'),jdecode(''),'/4985/12701.html','false',[],'']
	],''],
	['PAGE','23901',jdecode('Album'),jdecode(''),'/23901.html','true',[],'']];
var siteelementCount=6;
theSitetree.topTemplateName='Business';
theSitetree.paletteFamily='662A00';
theSitetree.keyvisualId='2492';
theSitetree.keyvisualName='blanko.jpg';
theSitetree.fontsetId='419';
theSitetree.graphicsetId='465';
theSitetree.contentColor='020E66';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Business',
				paletteFamily: 	'662A00',
				keyvisualId: 	'2492',
				keyvisualName: 	'blanko.jpg',
				fontsetId: 		'419',
				graphicsetId: 	'465',
				contentColor: 	'020E66',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'662A00',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '701',
internalId:  '',
customField: '20080705-170800'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '773',
internalId:  '',
customField: '20080705-165619'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '23901',
internalId:  '11afdff717a',
customField: 'g.13buuihoj.abihqcal41.1s'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4985',
internalId:  '',
customField: '20080705-153640'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '701',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '23901',
internalId:  '',
customField: '20080707-170539'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '4985',
internalId:  'aars20in3f0n11af375ec40',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '12701',
internalId:  'aars20in3f0n11af375ec40',
customField: 'followUp'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '12901',
internalId:  '',
customField: '20080707-161652'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '12701',
internalId:  '',
customField: '20080705-154249'
};
var canonHostname = 'wsc01a.arsys.es';
var accountId     = 'AARS20IN3F0N';
var companyName   = 'Alisio+Gesti%C3%B3n+de+Ocio+y+Cultura%2CS.L.';
var htmlTitle	  = 'Alisio+Gesti%C3%B3n+de+Ocio+y+Cultura';
var metaKeywords  = 'alisio%2Cocio%2Ccultura%2Cm%C3%BAsica%2Carte%2Cgesti%C3%B3n%2Centretenimiento%2Cdise%C3%B1o%2Cweb%2Casp%2Cinform%C3%A1tica%2Csonido%2Ct%C3%A9cnicos%2Crepresentaci%C3%B3n%2Cestudio%2Cgrabaci%C3%B3n%2Cartistas%2C+espect%C3%A1culos%2C+eventos%2C+culturales%2C+talleres%2C+magos%2C+solistas%2C+festivales%2C%2C+sudamericana%2C+andina%2C+celta%2C+latina%2C+orquesta%2Corquestas%2C+cl%C3%A1sica%2C+folklore%2C+canario%2Cdanza%2C+producci%C3%B3n%2C+art%C3%ADsticas%2C+promoci%C3%B3n%2C+management%2C+conciertos%2C+musicales%2C+timple%2C+jazz%2C+sonido%2C+iluminaci%C3%B3n%2C+escenario%2C+carpas%2C+micros%2C+back+line%2C+stand%2C+stands%2C+ba%C3%B1os+qu%C3%ADmicos%2C+infraestructuras+t%C3%A9cnicas%2C+variedad%2C+decoraci%C3%B3n%2C+pases+de+moda%2C+organizaci%C3%B3n%2C+pintura%2C+certamen%2C+carnavales%2C+t%C3%ADteres%2C+agencia%2C+contrataci%C3%B3n%2C+teatro%2C+video%2C+generadores%2C+sonorizaci%C3%B3n%2C+representantes%2C+agenda%2C+fiesta%2C+congresos%2C+servicio+integral%2C+comunicaci%C3%B3n%2C+booking%2Cpresentadores%2C+presentaciones+de+discos%2C+inauguraciones%2C+carteles%2C+publicidad%2C+video+proyectores';
var metaContents  = 'Gesti%C3%B3n%2C+organizaci%C3%B3n+y+producci%C3%B3n+integral+de+evnetos+y+espect%C3%A1culos';
					                                                                    
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 */					                                                            

