/* [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','601',jdecode('EMPRESA'),jdecode(''),'/601.html','true',[],''],
	['PAGE','673',jdecode('SERVICIOS'),jdecode(''),'/673.html','true',[],''],
	['PAGE','15101',jdecode('GALER%C3%8DA+DE+IM%C3%81GENES'),jdecode(''),'/15101.html','true',[],''],
	['PAGE','715',jdecode('CAT%C3%81LOGO'),jdecode(''),'/715.html','true',[],''],
	['PAGE','736',jdecode('CONTACTO'),jdecode(''),'/736.html','true',[],'']];
var siteelementCount=5;
theSitetree.topTemplateName='NewYork';
theSitetree.paletteFamily='660000';
theSitetree.keyvisualId='996';
theSitetree.keyvisualName='handwerk.jpg';
theSitetree.fontsetId='171';
theSitetree.graphicsetId='197';
theSitetree.contentColor='666666';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'NewYork',
				paletteFamily: 	'660000',
				keyvisualId: 	'996',
				keyvisualName: 	'handwerk.jpg',
				fontsetId: 		'171',
				graphicsetId: 	'197',
				contentColor: 	'666666',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'660000',
				c_color: 		'000000',
				d_color: 		'990000',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '601',
internalId:  '',
customField: '20090529-094145'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '673',
internalId:  '',
customField: '20090529-094435'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '15101',
internalId:  '',
customField: '20090610-130304'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '715',
internalId:  '',
customField: '20090529-094503'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '736',
internalId:  '',
customField: '20090528-064143'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '601',
internalId:  '1006',
customField: '1006'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '15101',
internalId:  '121c9d1f4a5',
customField: 'g.147510a4f.pst52an96.3o'
};
var canonHostname = 'wsc01a.arsys.es';
var accountId     = 'AARS20INL09T';
var companyName   = '...+cuidamos+su+imagen';
var htmlTitle	  = 'DISE%C3%91O+Y+MONTAJE+DE+STANDS+PARA+FERIAS-CONGRESOS-EVENTOS++++++EUROSTAND+DISE%C3%91O+S.L.+-+ZARAGOZA';
var metaKeywords  = 'stand%2C+zaragoza%2C+mobiliario%2C+dise%C3%B1o%2C+ferias%2C+congresos%2C+modular%2C+montaje%2C+decoraci%C3%B3n%2C+exposici%C3%B3n%2C+eventos%2C+alquiler%2C+display%2C+escenario%2C+vinilo%2C+';
var metaContents  = 'Construcci%C3%B3n+y+montaje+de+stands+para+ferias%2C+congresos%2C+y+exposiciones.+Arquitectura+ef%C3%ADmera.+Proyectos+integrales%2C+planos+e+infograf%C3%ADas.+Stands+llave+en+mano.+Dise%C3%B1os+en+carpinter%C3%ADa+ferial+y+materiales+modulares.+Alquiler+de+mobiliario%2C+audiovisuales%2C+rotulacion+en+vinilo%2C+impresion+digital%2C+mostradores%2C+cerramientos%2C+carpas%2C+paneles+de+p%C3%B3ster.';
					                                                                    
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 */					                                                            
