/* [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','9601',jdecode('Inicio'),jdecode(''),'/9601.html','true',[],''],
	['PAGE','9694',jdecode('Fotograf%C3%ADas'),jdecode(''),'/9694.html','true',[],''],
	['PAGE','9715',jdecode('M%C3%BAsica'),jdecode(''),'/9715/index.html','true',[ 
		['PAGE','9736',jdecode('MP3'),jdecode(''),'/9715/9736.html','true',[],''],
		['PAGE','9757',jdecode('CD'),jdecode(''),'/9715/9757.html','true',[],'']
	],''],
	['PAGE','9778',jdecode('Cont%C3%A1ctenos'),jdecode(''),'/9778/index.html','true',[ 
		['PAGE','11001',jdecode('Cont%C3%A1ctenos+%28follow+up+page%29'),jdecode(''),'/9778/11001.html','false',[],'']
	],''],
	['PAGE','17101',jdecode('JUANCHO+EL+CHARRO'),jdecode(''),'/17101.html','true',[],'']];
var siteelementCount=8;
theSitetree.topTemplateName='cutout';
theSitetree.paletteFamily='F0F1D8';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10350';
theSitetree.graphicsetId='10473';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'cutout',
				paletteFamily: 	'F0F1D8',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10350',
				graphicsetId: 	'10473',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'FFFFFF',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '9601',
internalId:  '',
customField: '20091015-012107'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '9694',
internalId:  '',
customField: '20091015-002107'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '9715',
internalId:  '',
customField: '20091015-002107'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '9778',
internalId:  '',
customField: '20091015-120030'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '17101',
internalId:  '12486dd6b41',
customField: 'g.14i3j4l4d.gpdnat29pe.3o'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '9736',
internalId:  '',
customField: '20091015-002107'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '9757',
internalId:  '',
customField: '20091015-002107'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '9601',
internalId:  '1006',
customField: '1006'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '9778',
internalId:  'aars20inlgfs1245542e100',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '11001',
internalId:  'aars20inlgfs1245542e100',
customField: 'followUp'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '11001',
internalId:  '',
customField: '20091015-005456'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '17101',
internalId:  '',
customField: '20091024-160508'
};
var canonHostname = 'wsc01a.arsys.es';
var accountId     = 'AARS20INLGFS';
var companyName   = 'JUANCHO+EL+CHARRO';
var htmlTitle	  = 'JUANCHO+EL+CHARRO';
var metaKeywords  = 'JUANCHO+EL+CHARRO+MARIACHI+RIOJANO+CON+M%C3%81S+DISCOS+EN+EL+MERCADO+RUIZ+COMPOSITOR+PRODUCTOR+ARREGLISTA+DIRECTOR+MUSICAL';
var metaContents  = 'JUANCHO+EL+CHARRO+MARIACHI+RIOJANO+CON+M%C3%81S+DISCOS+EN+EL+MERCADO+RUIZ+COMPOSITOR+PRODUCTOR+ARREGLISTA+DIRECTOR+MUSICAL';
					                                                                    
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 */					                                                            
