/* [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','1101',jdecode('Home'),jdecode(''),'/1101.html','true',[],''],
	['PAGE','23501',jdecode('PCS++Intel+Pentium'),jdecode(''),'/23501.html','true',[],''],
	['PAGE','1152',jdecode('PCS+ADM'),jdecode(''),'/1152.html','true',[],''],
	['PAGE','23522',jdecode('PCS+HP'),jdecode(''),'/23522.html','true',[],''],
	['PAGE','23585',jdecode('Notebooks+Asus'),jdecode(''),'/23585.html','true',[],''],
	['PAGE','23606',jdecode('Notebooks+Sony'),jdecode(''),'/23606.html','true',[],''],
	['PAGE','23564',jdecode('Notebooks+Fujitsu+Siemens'),jdecode(''),'/23564.html','true',[],''],
	['PAGE','23627',jdecode('Notebooks+LG'),jdecode(''),'/23627.html','true',[],''],
	['PAGE','23648',jdecode('Monitores+TFT+'),jdecode(''),'/23648.html','true',[],''],
	['PAGE','69101',jdecode('TV%2C+LCD%2C+Plasma'),jdecode(''),'/69101.html','true',[],''],
	['PAGE','70601',jdecode('DVD-Brenner'),jdecode(''),'/70601.html','true',[],''],
	['PAGE','94833',jdecode('Festplatten'),jdecode(''),'/94833.html','true',[],''],
	['PAGE','96812',jdecode('Grafikkarten'),jdecode(''),'/96812.html','true',[],''],
	['PAGE','102712',jdecode('Lautsprecher'),jdecode(''),'/102712.html','true',[],''],
	['PAGE','25101',jdecode('Imprensa'),jdecode(''),'/25101.html','true',[],''],
	['PAGE','46607',jdecode('Mapa+de+acesso'),jdecode(''),'/46607.html','true',[],'']];
var siteelementCount=16;
theSitetree.topTemplateName='Time';
theSitetree.paletteFamily='000066';
theSitetree.keyvisualId='2297';
theSitetree.keyvisualName='edv.jpg';
theSitetree.fontsetId='269';
theSitetree.graphicsetId='335';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Time',
				paletteFamily: 	'000066',
				keyvisualId: 	'2297',
				keyvisualName: 	'edv.jpg',
				fontsetId: 		'269',
				graphicsetId: 	'335',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000066',
				b_color: 		'EC9E28',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1101',
internalId:  '',
customField: '20100205-144431'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1152',
internalId:  '',
customField: '20071210-231818'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '1101',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '70601',
internalId:  '',
customField: '20071101-224924'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '46607',
internalId:  '',
customField: '20071018-085706'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '23501',
internalId:  '',
customField: '20071210-183715'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '23522',
internalId:  '',
customField: '20071210-231913'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '94833',
internalId:  '',
customField: '20080223-231715'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '23564',
internalId:  '',
customField: '20071211-180504'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '23585',
internalId:  '',
customField: '20071022-212656'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '23606',
internalId:  '',
customField: '20071019-081634'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '23627',
internalId:  '',
customField: '20071018-081818'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '23648',
internalId:  '',
customField: '20071210-232258'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25101',
internalId:  '',
customField: '20090305-110515'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '69101',
internalId:  '',
customField: '20071210-233956'
};
webappMappings['2001']={
webappId:    '2001',
documentId:  '46607',
internalId:  'location',
customField: 'language:pt;country:PT;isIncluded:false;'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '96812',
internalId:  '',
customField: '20071102-094302'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '102712',
internalId:  '',
customField: '20071103-005105'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INLN0R';
var companyName   = 'QUALIDADE+%26+TECNOLOGIA';
var htmlTitle	  = 'Computadores+Troncosta';
var metaKeywords  = '';
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 */					                                                            
