/* [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','4599',jdecode('P%C3%81GINA+INICIAL'),jdecode(''),'/4599.html','true',[],''],
	['PAGE','26322',jdecode('MODELISMO+FERROVI%C3%81RIO+-+1'),jdecode(''),'/26322/index.html','true',[ 
		['PAGE','69101',jdecode('FLEISCHMANN'),jdecode(''),'/26322/69101.html','true',[],''],
		['PAGE','69001',jdecode('ROCO'),jdecode(''),'/26322/69001.html','true',[],''],
		['PAGE','68901',jdecode('FALLER'),jdecode(''),'/26322/68901.html','true',[],''],
		['PAGE','42185',jdecode('OUTRAS+MARCAS'),jdecode(''),'/26322/42185.html','true',[],''],
		['PAGE','45901',jdecode('PRODU%C3%87%C3%83O+PR%C3%93PRIA'),jdecode(''),'/26322/45901.html','true',[],''],
		['PAGE','42227',jdecode('SERVI%C3%87OS+T%C3%89CNICOS'),jdecode(''),'/26322/42227.html','true',[],''],
		['PAGE','42248',jdecode('MONTAGEM+MAQUETES'),jdecode(''),'/26322/42248.html','true',[],'']
	],''],
	['PAGE','65901',jdecode('MODELISMO+MILITAR+-+2'),jdecode(''),'/65901.html','true',[],''],
	['PAGE','42395',jdecode('MODELISMO+TELECOMANDADO+-+3'),jdecode(''),'/42395.html','true',[],''],
	['PAGE','42416',jdecode('MODELISMO+KITS+-+4'),jdecode(''),'/42416.html','true',[],''],
	['PAGE','42479',jdecode('MODELISMO+COLEC%C3%87%C3%82O+-+5'),jdecode(''),'/42479.html','true',[],''],
	['PAGE','42500',jdecode('BRINQUEDOS+-+6'),jdecode(''),'/42500/index.html','true',[ 
		['PAGE','42521',jdecode('LEGO'),jdecode(''),'/42500/42521.html','true',[],''],
		['PAGE','42542',jdecode('JOGOS'),jdecode(''),'/42500/42542.html','true',[],''],
		['PAGE','42563',jdecode('EXTERIOR'),jdecode(''),'/42500/42563.html','true',[],''],
		['PAGE','42584',jdecode('PUZZLES'),jdecode(''),'/42500/42584.html','true',[],''],
		['PAGE','42605',jdecode('PR%C3%89-ESCOLAR'),jdecode(''),'/42500/42605.html','true',[],''],
		['PAGE','42626',jdecode('DIVERSOS'),jdecode(''),'/42500/42626.html','true',[],'']
	],''],
	['PAGE','42668',jdecode('COLEC%C3%87%C3%95ES+ESPECIFICAS+-+7'),jdecode(''),'/42668/index.html','true',[ 
		['PAGE','42689',jdecode('HELLO+KITTY'),jdecode(''),'/42668/42689.html','true',[],''],
		['PAGE','42710',jdecode('FERRARI'),jdecode(''),'/42668/42710.html','true',[],''],
		['PAGE','42731',jdecode('LINHA+ESCOLAR'),jdecode(''),'/42668/42731.html','true',[],'']
	],''],
	['PAGE','42773',jdecode('CARNAVAL+e+HALLOWEEN+-+8'),jdecode(''),'/42773/index.html','true',[ 
		['PAGE','53701',jdecode('CRIAN%C3%87AS'),jdecode(''),'/42773/53701.html','true',[],''],
		['PAGE','53722',jdecode('ADULTOS'),jdecode(''),'/42773/53722.html','true',[],''],
		['PAGE','53743',jdecode('ACESS%C3%93RIOS'),jdecode(''),'/42773/53743.html','true',[],'']
	],''],
	['PAGE','42857',jdecode('NOVIDADES+-+9'),jdecode(''),'/42857.html','true',[],''],
	['PAGE','42878',jdecode('PROMO%C3%87%C3%95ES+-+10'),jdecode(''),'/42878.html','true',[],''],
	['PAGE','42899',jdecode('CONDI%C3%87%C3%95ES+DE+VENDA+-+11'),jdecode(''),'/42899.html','true',[],''],
	['PAGE','42920',jdecode('CHEQUE+BRINDE+-+12'),jdecode(''),'/42920.html','true',[],''],
	['PAGE','42941',jdecode('CONTACTOS+-+13'),jdecode(''),'/42941.html','true',[],''],
	['PAGE','42962',jdecode('ONDE+ESTAMOS+-+14'),jdecode(''),'/42962.html','true',[],''],
	['PAGE','42983',jdecode('INGL%C3%8AS+-+ESPANHOL+-+15'),jdecode(''),'/42983.html','true',[],'']];
var siteelementCount=35;
theSitetree.topTemplateName='Stylus';
theSitetree.paletteFamily='B0CBD6';
theSitetree.keyvisualId='2054';
theSitetree.keyvisualName='blanko.jpg';
theSitetree.fontsetId='330';
theSitetree.graphicsetId='383';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Stylus',
				paletteFamily: 	'B0CBD6',
				keyvisualId: 	'2054',
				keyvisualName: 	'blanko.jpg',
				fontsetId: 		'330',
				graphicsetId: 	'383',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'B0CBD6',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '68901',
internalId:  '',
customField: '20090405-234024'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '4599',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4599',
internalId:  '',
customField: '20090405-214322'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '65901',
internalId:  '12057c8e29f',
customField: 'g.141bsa8rp.53c5rvtpi.1s'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '68901',
internalId:  '1205848e363',
customField: 'g.141c4f39t.8ttupvp9a.1s'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '42227',
internalId:  '',
customField: '20090405-232812'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '69101',
internalId:  '',
customField: '20100501-183550'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '69001',
internalId:  '',
customField: '20100501-183417'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '42248',
internalId:  '',
customField: '20100313-165239'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '26322',
internalId:  '',
customField: '20090405-214343'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '42185',
internalId:  '',
customField: '20090405-205714'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '65901',
internalId:  '',
customField: '20091114-185331'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '4599',
internalId:  '6977274',
customField: '1501'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '42395',
internalId:  '',
customField: '20090405-215247'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '42416',
internalId:  '',
customField: '20090405-220238'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '69001',
internalId:  '12058574d60',
customField: 'g.141c4ikff.e54p4u4hfv.1s'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '42479',
internalId:  '',
customField: '20090405-203804'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '42500',
internalId:  '',
customField: '20090405-233227'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '42521',
internalId:  '',
customField: '20090405-233022'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '42542',
internalId:  '',
customField: '20090405-222229'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '42563',
internalId:  '',
customField: '20090405-222729'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '42584',
internalId:  '',
customField: '20090405-233148'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '42605',
internalId:  '',
customField: '20090405-223822'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '42626',
internalId:  '',
customField: '20090405-224253'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '42668',
internalId:  '',
customField: '20090405-224542'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '42689',
internalId:  '',
customField: '20090405-224934'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '42710',
internalId:  '',
customField: '20090405-233807'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '42731',
internalId:  '',
customField: '20090405-225750'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '69101',
internalId:  '1205865f7a6',
customField: 'g.141c5f5bs.crddl6d92v.1s'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '42773',
internalId:  '',
customField: '20090405-230427'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '53743',
internalId:  '',
customField: '20090405-230741'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '42857',
internalId:  '',
customField: '20100703-184335'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '42878',
internalId:  '',
customField: '20100703-184508'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '42899',
internalId:  '',
customField: '20090404-175706'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '42920',
internalId:  '',
customField: '20090405-232111'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '42941',
internalId:  '',
customField: '20100109-174620'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '42962',
internalId:  '',
customField: '20090405-232322'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '42983',
internalId:  '',
customField: '20090405-234229'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '45901',
internalId:  '1202f03c4fe',
customField: 'g.140ng3og7.h43d2rkf3u.0'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '45901',
internalId:  '',
customField: '20090404-173636'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '53722',
internalId:  '',
customField: '20090405-230557'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '53701',
internalId:  '',
customField: '20090405-230613'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010IN3FQ4';
var companyName   = 'NETOYS+-+Brindes+e+Brinquedos%2C+Lda';
var htmlTitle	  = 'WWW.Netoys-Modelismo.com';
var metaKeywords  = 'Comboios%2C+Modelismo+ferrovi%EF%BF%BDrio%2C+brinquedos%2C+hobby%2C+maquetes';
var metaContents  = 'Loja+de+Modelismo+Ferrovi%EF%BF%BDrio%2C+Kits%2C+Brinquedos%2C+Comoios%2C+Radio+Control%2C+Montagem+Maquetes%2C+carnaval%2C+Hobby';
					                                                                    
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 */					                                                            
