/* [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('Home'),jdecode(''),'/4599.html','true',[],''],
	['PAGE','11622',jdecode('O+que+s%C3%A3o+LASER+GAMES%3F'),jdecode(''),'/11622.html','true',[],''],
	['PAGE','4903',jdecode('Quem+Somos'),jdecode(''),'/4903.html','true',[],''],
	['PAGE','35022',jdecode('Actividades+OutDoor'),jdecode(''),'/35022.html','true',[],''],
	['PAGE','40820',jdecode('Intager+-+Laser+5%C2%AA+Gera%C3%A7%C3%A3o'),jdecode(''),'/40820.html','true',[],''],
	['PAGE','4957',jdecode('Equipamentos+e+Locais'),jdecode(''),'/4957/index.html','true',[ 
		['PAGE','4984',jdecode('Equipamentos'),jdecode(''),'/4957/4984.html','true',[],''],
		['PAGE','5011',jdecode('Locais'),jdecode(''),'/4957/5011.html','true',[],''],
		['PAGE','5038',jdecode('O+seu+local'),jdecode(''),'/4957/5038.html','true',[],'']
	],''],
	['PAGE','5065',jdecode('Miss%C3%B5es+%26+Aventuras'),jdecode(''),'/5065.html','true',[],''],
	['PAGE','5200',jdecode('Links+%26+Parceiros'),jdecode(''),'/5200.html','true',[],''],
	['PAGE','5335',jdecode('Pre%C3%A7os'),jdecode(''),'/5335.html','true',[],''],
	['PAGE','10722',jdecode('Pr%C3%A9-Marca%C3%A7%C3%A3o'),jdecode(''),'/10722/index.html','true',[ 
		['PAGE','14721',jdecode('Pr%C3%A9-Marca%C3%A7%C3%A3o+%28volgende+pagina%29'),jdecode(''),'/10722/14721.html','false',[],'']
	],''],
	['PAGE','10749',jdecode('Cart%C3%A3o+Adventurer'),jdecode(''),'/10749.html','true',[],''],
	['PAGE','5362',jdecode('FAQ'),jdecode(''),'/5362.html','true',[],''],
	['PAGE','5389',jdecode('Contactos'),jdecode(''),'/5389/index.html','true',[ 
		['PAGE','14521',jdecode('Contactos+%28volgende+pagina%29'),jdecode(''),'/5389/14521.html','false',[],'']
	],''],
	['PAGE','13222',jdecode('Cria+o+teu+pr%C3%B3prio+Campo'),jdecode(''),'/13222.html','true',[],''],
	['PAGE','25421',jdecode('Galeria+Fotos'),jdecode(''),'/25421.html','true',[],''],
	['PAGE','42820',jdecode('Mapa+de+acesso'),jdecode(''),'/42820.html','true',[],'']];
var siteelementCount=21;
theSitetree.topTemplateName='Movement';
theSitetree.paletteFamily='AC2323';
theSitetree.keyvisualId='1742';
theSitetree.keyvisualName='ebusiness2.jpg';
theSitetree.fontsetId='289';
theSitetree.graphicsetId='356';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='AC2323';
var theTemplate={
				name: 			'Movement',
				paletteFamily: 	'AC2323',
				keyvisualId: 	'1742',
				keyvisualName: 	'ebusiness2.jpg',
				fontsetId: 		'289',
				graphicsetId: 	'356',
				contentColor: 	'FFFFFF',
				contentBGColor: 'AC2323',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'AC2323',
				b_color: 		'480F0F',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '4599',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '11622',
internalId:  '',
customField: '20050322-192326'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4599',
internalId:  '',
customField: '20100314-175843'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '25421',
internalId:  'ff74c4aace',
customField: 'LASER'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '4599',
internalId:  '1449274',
customField: '1501'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '5389',
internalId:  'aam010in2ea3fe67b8f9f6',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '14521',
internalId:  'aam010in2ea3fe67b8f9f6',
customField: 'followUp'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '10722',
internalId:  'aam010in2ea3fe67bc4f2e',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '14721',
internalId:  'aam010in2ea3fe67bc4f2e',
customField: 'followUp'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4903',
internalId:  '',
customField: '20070830-182327'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '35022',
internalId:  '',
customField: '20090822-181510'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4957',
internalId:  '',
customField: '20050322-192857'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4984',
internalId:  '',
customField: '20050322-193307'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5011',
internalId:  '',
customField: '20080907-132419'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5038',
internalId:  '',
customField: '20050322-194556'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5065',
internalId:  '',
customField: '20050322-200943'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5200',
internalId:  '',
customField: '20100414-223905'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5335',
internalId:  '',
customField: '20050614-235452'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '10722',
internalId:  '',
customField: '20050322-202923'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '14721',
internalId:  '',
customField: '20040816-151447'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '10749',
internalId:  '',
customField: '20050322-203025'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5362',
internalId:  '',
customField: '20050322-203149'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5389',
internalId:  '',
customField: '20061215-184028'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '14521',
internalId:  '',
customField: '20040816-151109'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '13222',
internalId:  '',
customField: '20050322-203414'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25421',
internalId:  '',
customField: '20050322-203621'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '40820',
internalId:  '',
customField: '20090822-181006'
};
webappMappings['2001']={
webappId:    '2001',
documentId:  '42820',
internalId:  'location',
customField: 'language:pt;country:PT;isIncluded:false;'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '42820',
internalId:  '',
customField: '20090822-185256'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010IN2EA3';
var companyName   = 'Ac%C3%A7%C3%A3o%2C+Aventura+e+OutDoor';
var htmlTitle	  = 'Laser+Adventures+-+Ac%C3%A7%C3%A3o+Aventura+e+Outdoor';
var metaKeywords  = 'lasergames+laserwars+laser+games+lasertag+outdoor+equipamentos+laser+portugal+paintball+do+futuro+lasergames+paintball+do+futuro+combatlaser';
var metaContents  = 'lasergames+laserwars+laser+games+lasertag+outdoor+equipamentos+laser+portugal+paintball+do+futuro+lasergames+paintball+do+futuro+combatlaser';
					                                                                    
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 */					                                                            
