/* [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','4554',jdecode('Home'),jdecode(''),'/4554.html','true',[],''],
	['PAGE','16186',jdecode('LASSAN+'),jdecode(''),'/16186/index.html','true',[ 
		['PAGE','16213',jdecode('Quem+somos'),jdecode(''),'/16186/16213.html','true',[],''],
		['PAGE','16321',jdecode('Contactos'),jdecode(''),'/16186/16321.html','true',[],''],
		['PAGE','16702',jdecode('Contacto+%28volgende+pagina%29'),jdecode(''),'/16186/16702.html','false',[],'']
	],''],
	['PAGE','36601',jdecode('IBERL%C3%83+MALHAS'),jdecode(''),'/36601/index.html','true',[ 
		['PAGE','42201',jdecode('PEDIDO+INFORMA%C3%87OES'),jdecode(''),'/36601/42201.html','true',[],'']
	],''],
	['PAGE','16240',jdecode('CLUBE+VIDEO+CINESTAR'),jdecode(''),'/16240/index.html','true',[ 
		['PAGE','23726',jdecode('trailers'),jdecode(''),'/16240/23726.html','true',[],'']
	],''],
	['PAGE','27119',jdecode('REGISTADOS'),jdecode(''),'/27119/index.html','true',[ 
		['PAGE','27202',jdecode('Fotos'),jdecode(''),'/27119/27202.html','true',[],'']
	],''],
	['PAGE','25084',jdecode('OUTROS+LINK'),jdecode(''),'/25084/index.html','true',[ 
		['PAGE','16602',jdecode('Veteranos+Santa+Maria+F.C.+%28volgende+pagina%29'),jdecode(''),'/25084/16602.html','false',[],'']
	],''],
	['PAGE','41106',jdecode('Livro+de+visitas'),jdecode(''),'/41106/index.html','true',[ 
		['PAGE','41101',jdecode('Entradas'),jdecode(''),'/41106/41101.html','true',[],'']
	],'']];
var siteelementCount=15;
theSitetree.topTemplateName='Handy';
theSitetree.paletteFamily='CF21FF';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='93';
theSitetree.graphicsetId='108';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Handy',
				paletteFamily: 	'CF21FF',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'93',
				graphicsetId: 	'108',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'CF21FF',
				b_color: 		'FFED33',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '4554',
internalId:  '1006',
customField: '1006'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '16602',
internalId:  'aam010inlcg311461032dad',
customField: 'followUp'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '16321',
internalId:  'aam010inlcg311461102ac0',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '16702',
internalId:  'aam010inlcg311461102ac0',
customField: 'followUp'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '27202',
internalId:  '11470cc743f',
customField: 'g.12lj33ggv.41kdsotogenl2.6rn80'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '4554',
internalId:  '10390349',
customField: '1501'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '16186',
internalId:  '',
customField: '20071219-151117'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '42201',
internalId:  '12251165',
customField: 'pt:PT:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4554',
internalId:  '',
customField: '20071219-151808'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25084',
internalId:  '',
customField: '20070929-162454'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '16213',
internalId:  '',
customField: '20080118-203518'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '16321',
internalId:  '',
customField: '20070813-231435'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '16702',
internalId:  '',
customField: '20070813-231023'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '41106',
internalId:  '41106aam010inlcg3',
customField: 'action=form&icq=false'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '36601',
internalId:  '',
customField: '20071219-153840'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '42201',
internalId:  '',
customField: '20080829-024702'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '16240',
internalId:  '',
customField: '20070819-185937'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '23726',
internalId:  '',
customField: '20070814-213554'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '27119',
internalId:  '',
customField: '20070816-235024'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '27202',
internalId:  '',
customField: '20070817-003021'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '16602',
internalId:  '',
customField: '20070813-225611'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '36601',
internalId:  '116f2d0a1a4',
customField: 'g.12rpcspgl.27a958gcsrt.0'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '41101',
internalId:  '41106aam010inlcg3',
customField: 'action=list'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '41106',
internalId:  '',
customField: '20080829-004230'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '41101',
internalId:  '',
customField: '20080829-004230'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INLCG3';
var companyName   = 'EMPRESA+TEXTIL+LASSAN+Lda.';
var htmlTitle	  = 'LASSAN+Malhas+Exteriores+iberla+lassan';
var metaKeywords  = 'LASSAN%2Ccamisolas+malhas+texteis+fabricantes+lassan+IBERLA+CAMISOLAS+POLOS+CASACOS+MODA+';
var metaContents  = 'Malhas+exteriores+fabricantes+texteis+confe%EF%BF%BD%EF%BF%BDes+artigos+camisolas+polos+casacos+coletes+lassan++video+clube+dvd+filmes+iberla';
					                                                                    
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 */					                                                            

