/* [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','6901',jdecode('Quienes+somos'),jdecode(''),'/6901.html','true',[],''],
	['PAGE','1636',jdecode('Qu%C3%A9+hemos+hecho'),jdecode(''),'/1636.html','true',[],''],
	['PAGE','1501',jdecode('Novedades+y+noticias'),jdecode(''),'/1501.html','true',[],''],
	['PAGE','1573',jdecode('Cat%C3%A1logo'),jdecode(''),'/1573/index.html','true',[ 
		['PAGE','1720',jdecode('colecci%C3%B3n'),jdecode(''),'/1573/1720.html','true',[],''],
		['PAGE','1657',jdecode('maillots'),jdecode(''),'/1573/1657.html','true',[],''],
		['PAGE','1699',jdecode('tut%C3%BAs'),jdecode(''),'/1573/1699.html','true',[],''],
		['PAGE','1594',jdecode('calzado'),jdecode(''),'/1573/1594.html','true',[],''],
		['PAGE','1678',jdecode('t%C3%BAnicas'),jdecode(''),'/1573/1678.html','true',[],''],
		['PAGE','1615',jdecode('complementos'),jdecode(''),'/1573/1615.html','true',[],'']
	],''],
	['PAGE','1762',jdecode('Outlet'),jdecode(''),'/1762.html','true',[],''],
	['PAGE','39001',jdecode('Tienda+online'),jdecode(''),'/39001.html','true',[],''],
	['PAGE','24401',jdecode('Espect%C3%A1culos'),jdecode(''),'/24401.html','true',[],''],
	['PAGE','1783',jdecode('Consejos+para+una+bailarina'),jdecode(''),'/1783/index.html','true',[ 
		['PAGE','1804',jdecode('como+estrenar+puntas'),jdecode(''),'/1783/1804.html','true',[],''],
		['PAGE','1825',jdecode('como+maquillarte'),jdecode(''),'/1783/1825.html','true',[],''],
		['PAGE','1846',jdecode('como+coser+las+zapatillas'),jdecode(''),'/1783/1846.html','true',[],''],
		['PAGE','1867',jdecode('como+peinarte'),jdecode(''),'/1783/1867.html','true',[],'']
	],''],
	['PAGE','1993',jdecode('Webs+de+tu+inter%C3%A9s'),jdecode(''),'/1993.html','true',[],''],
	['PAGE','2014',jdecode('D%C3%B3nde+estamos%3F'),jdecode(''),'/2014.html','true',[],'']];
var siteelementCount=20;
theSitetree.topTemplateName='Alpha';
theSitetree.paletteFamily='479949';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10555';
theSitetree.graphicsetId='10895';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Alpha',
				paletteFamily: 	'479949',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10555',
				graphicsetId: 	'10895',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'479949',
				e_color: 		'479949',
				f_color: 		'479949',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1501',
internalId:  '',
customField: '20090417-135800'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1573',
internalId:  '',
customField: '20090323-140338'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1615',
internalId:  '',
customField: '20090423-134303'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6901',
internalId:  '',
customField: '20090319-122131'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1783',
internalId:  '',
customField: '20090310-190819'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1993',
internalId:  '',
customField: '20090403-132023'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '2014',
internalId:  '',
customField: '20101006-142014'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1762',
internalId:  '',
customField: '20090310-190752'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1636',
internalId:  '',
customField: '20090323-151447'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1657',
internalId:  '',
customField: '20090423-133240'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1699',
internalId:  '',
customField: '20090423-133424'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1594',
internalId:  '',
customField: '20090423-133522'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1678',
internalId:  '',
customField: '20090423-133617'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1720',
internalId:  '',
customField: '20090423-133121'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1804',
internalId:  '',
customField: '20090310-190834'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1825',
internalId:  '',
customField: '20090310-190851'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1846',
internalId:  '',
customField: '20090310-190905'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1867',
internalId:  '',
customField: '20090310-190925'
};
webappMappings['4001']={
webappId:    '4001',
documentId:  '39001',
internalId:  '1066869',
customField: 'language:es;country:ES;'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '24401',
internalId:  '',
customField: '20090402-150036'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '39001',
internalId:  '',
customField: '20090420-124751'
};
var canonHostname = 'localhost';
var accountId     = 'AAK020IN20Z0';
var companyName   = 'Tu+tienda+de+danza';
var htmlTitle	  = 'DanzaT.+Tu+tienda+de+danza';
var metaKeywords  = 'danza%2C+mailllot%2C+tut%C3%BA%2C+puntas%2C+colecci%C3%B3n%2C+complementos%2C+ballet%2C+t%C3%BAnicas%2C+faldas%2C+jazz%2C+hip+hop%2C+Ginadan%2C+punteras%2C+';
var metaContents  = '';
					                                                                    
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 */					                                                            

