/* [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','4478',jdecode('Mi+Mundo+de+la+Pipa'),jdecode(''),'/4478.html','true',[],''],
	['PAGE','4535',jdecode('Cuidados+de+la+Pipa'),jdecode(''),'/4535.html','true',[],''],
	['PAGE','4562',jdecode('Art%C3%ADculos'),jdecode(''),'/4562.html','true',[],'']];
var siteelementCount=3;
theSitetree.topTemplateName='Stitch';
theSitetree.paletteFamily='EDEDED';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10769';
theSitetree.graphicsetId='10794';
theSitetree.contentColor='666565';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Stitch',
				paletteFamily: 	'EDEDED',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10769',
				graphicsetId: 	'10794',
				contentColor: 	'666565',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'969595',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '4478',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4478',
internalId:  '',
customField: '20081003-235243'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4562',
internalId:  '',
customField: '20091227-150242'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4535',
internalId:  '',
customField: '20080914-120347'
};
var canonHostname = 'llwc535-new.servidoresdns.net';
var accountId     = 'Aas010INEES6';
var companyName   = 'www.pedroadan.es';
var htmlTitle	  = '%C2%B7Pedro+Ad%C3%A1n%C2%B7';
var metaKeywords  = 'Pedro+Antonio+Ad%C3%A1n%2CPedro+Ad%C3%A1n%2C+www.pedroadan.es%2C+Pedro%2C+Ad%C3%A1n%2C+Fern%C3%A1ndez%2C+Pedro+Antonio+Ad%C3%A1n+Fern%C3%A1ndez%2C+Pedro+A.+Ad%C3%A1n+Fern%C3%A1ndez%2C+ad%C3%A1n+fern%C3%A1ndez%2Cpipa%2C+Puertollano%2C+Pipa%2C+Pipaclub%2C+Pipa+Club%2C+Fotograf%C3%ADa%2C+Opini%C3%B3n%2C+BMW%2C+moto%2C+brezo%2C+cachimba%2C+espumar+de+mar%2C+Baulenas%2C+Rafa+Mart%C3%ADn%2C+Bonet%2C+Pipaclub%2C+Soler%2C+Peterson%2C+Vauen%2C+Molina%2C+Aldo+Morelli%2C+Astley%C2%B4s%2C+Comoy%C2%B4s%2C+Bruken%2C+Salvatella%2C+Commodore%2C+Mastro+de+Paja%2C+Pierluigi%2C+Alexander%2C+Zavvos%2C+Alexarder+Zavvos%2C+Segimon%2C+Sigmund%2C+Freud%2C+Sigmund+Freud%2C+Saludnatur%2C+Foro%2C+Formosa%2C+Foro+Formosa%2C+Ruidera%2C+Tabaco+de+pipa%2C+Tabaco';
var metaContents  = 'P%C3%A1gina+personal+de+Pedro+Antonio+Ad%C3%A1n+Fern%C3%A1ndez%2C+Gur%C3%BA+de+la+sociedad+de+la+Pipa+en+Espa%C3%B1a.+Es+tambi%C3%A9n+un+referente+a+nivel+internacional+de+pipafumadores+que+siguen+sus+m%C3%A9todos+de+como+fumar+y+cuidar+la+pipa.+Visitar+su+p%C3%A1gina+es+un+paso+m%C3%A1s+para+conocerle+mejor.+En+esta+p%C3%A1gina+habla+de+su+principal+afici%C3%B3n%2C+el+mundo+de+la+pipa%2C+y+expone+sus+opiniones+y+experiencias+sobre+este+fascinante+mundo.Fumar+en+pipa%2C+no+es+un+h%C3%A1bito%2C+ni+tan+siquiera+un+vicio%2C+como+muchos+lo+calificar%C3%ADan+de+manera+gratuita%2C+es+parte+de+un+estilo+de+vida.+Un+fumador+de+pipa+tiene+una+visi%C3%B3n+muy+especial+de+la+vida%2C+ni+mejor%2C+ni+peor+que+la+de+los+dem%C3%A1s%2C+simplemente+distinta...Los+fumadores+de+pipa+viven+m%C3%A1s+y+mejor%2C+porque+para+ellos+el+tiempo+pasa+m%C3%A1s+despacio%2C+disfrutan+de+cada+segundo+de+su+existencia%2C+como+otros+no+tienen+oportunidad.El+tabaco+de+pipa+no+es+m%C3%A1s+nocivo+que+la+poluci%C3%B3n+ambiental+o+la+contaminaci%C3%B3n+industrial+que+sufrimos+en+muchos+lugares.+La+tolerancia+del+fumador+de+pipa+es+siempre+mod%C3%A9lica%2C+por+ello+siempre+exige+respeto+de+los+dem%C3%A1s%2C+cuando+menos+el+que+ellos+dispensan+a+los+no+fumadores.';
					                                                                    
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 */					                                                            
