/* [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','4597',jdecode('Home'),jdecode(''),'/4597.html','true',[],''],
	['PAGE','14501',jdecode('Contacto'),jdecode(''),'/14501.html','true',[],'']];
var siteelementCount=2;
theSitetree.topTemplateName='Snapshot';
theSitetree.paletteFamily='62549C';
theSitetree.keyvisualId='3630';
theSitetree.keyvisualName='kv_3630.jpg';
theSitetree.fontsetId='10755';
theSitetree.graphicsetId='10875';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='62549C';
var theTemplate={
				name: 			'Snapshot',
				paletteFamily: 	'62549C',
				keyvisualId: 	'3630',
				keyvisualName: 	'kv_3630.jpg',
				fontsetId: 		'10755',
				graphicsetId: 	'10875',
				contentColor: 	'FFFFFF',
				contentBGColor: '62549C',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'FC5E7B',
				e_color: 		'BFBFBF',
				f_color: 		'050001',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4597',
internalId:  '',
customField: '20090919-172119'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '14501',
internalId:  '',
customField: '20090314-003734'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INVSFJ';
var companyName   = '';
var htmlTitle	  = 'Didako+-+Material+Did%C3%A1ctico+-+Equipamentos+para+Creches+e+Escolas';
var metaKeywords  = 'Didako+material+did%C3%A1tico+didako+material+did%C3%A1ctico+equipamentos+jogos+brinquedos+l%C3%BAdicos+aprendizagem+educativos+escolar+educa%C3%A7%C3%A3o+puericultura+psicomotricidade+espumas+puzzles+encaixes+mobili%C3%A1rio+m%C3%B3veis+madeira+pavimentos+recreio+escorregas+baloi%C3%A7os+parques+infantis+inf%C3%A2ncia+ensino+especial+ber%C3%A7%C3%A1rios+creches+jardim+infantil+jardins+de+inf%C3%A2ncia+infant%C3%A1rios+externatos+col%C3%A9gios+escolas+associa%C3%A7%C3%B5es+ATL+IPSS+beb%C3%A9s+crian%C3%A7as+Step+Step2+step2company+Childrens+Factory+BIG+Tecnologias+Educativas%2C+Material+Did%C3%A1ctico%2C+Portugu%C3%AAs%2C+Pr%C3%A9-escolar%2C+Matem%C3%A1tica%2C+LITE%2C+Ensino+B%C3%A1sico%2C+Software+Educativo%2C+Investiga%C3%A7%C3%A3o%2C+Professores%2C+Educadores+livros+enciclop%C3%A9dias+pl%C3%A1stica+trabalhos+manuais+Educa%C3%A7%C3%A3o+especial+Miniland+Litle+Tikes+Goki+Dantoy+Brinquedos+em+Madeira+Exterior+Gin%C3%A1stica+faz+de+conta+cozinhas+quartos+colecionismo+brinquedos+em+lata+miniaturas+++++';
var metaContents  = 'Didako+-+Material+Did%C3%A1tico+%7C+M++A+-+Edi%C3%A7%C3%B5es++Publica%C3%A7%C3%B5es%2C+Lda.+-+Material+Did%C3%A1ctico+Conte%C3%BAdos+Did%C3%A1cticos+e+L%C3%BAdicos+tem+como+miss%C3%A3o+disponibilizar+ferramentas+de+ensino+inovadoras%2C+com+recurso+%C3%A0s+novas+tecnologias%2C+respondendo+a+lacunas+existentes+no+mercado+a+este+n%C3%ADvel.+';
					                                                                    
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 */					                                                            
