/* [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','11',jdecode('Home'),jdecode(''),'/11.html','true',[],''],
	['PAGE','1236',jdecode('Aparelhos'),jdecode(''),'/1236/index.html','true',[ 
		['PAGE','1245',jdecode('Palm+Zire+71'),jdecode(''),'/1236/1245.html','true',[],''],
		['PAGE','1254',jdecode('Palm+Zire+72'),jdecode(''),'/1236/1254.html','true',[],''],
		['PAGE','1263',jdecode('Palm+Tungsten+E'),jdecode(''),'/1236/1263.html','true',[],''],
		['PAGE','1272',jdecode('Palm+Tungsten+T'),jdecode(''),'/1236/1272.html','true',[],''],
		['PAGE','1281',jdecode('Palm+Tungsten+W'),jdecode(''),'/1236/1281.html','true',[],''],
		['PAGE','1290',jdecode('Palm+Tungsten+C'),jdecode(''),'/1236/1290.html','true',[],'']
	],''],
	['PAGE','1299',jdecode('Pe%C3%A7as'),jdecode(''),'/1299/index.html','true',[ 
		['PAGE','1308',jdecode('Palm+Zire+71'),jdecode(''),'/1299/1308.html','true',[],''],
		['PAGE','1317',jdecode('Palm+Zire+72'),jdecode(''),'/1299/1317.html','true',[],''],
		['PAGE','1326',jdecode('Palm+Tungsten+E'),jdecode(''),'/1299/1326.html','true',[],''],
		['PAGE','1335',jdecode('Palm+Tungsten+T'),jdecode(''),'/1299/1335.html','true',[],''],
		['PAGE','1344',jdecode('Palm+Tungsten+W'),jdecode(''),'/1299/1344.html','true',[],''],
		['PAGE','1353',jdecode('Palm+Tungsten+C'),jdecode(''),'/1299/1353.html','true',[],'']
	],''],
	['PAGE','1389',jdecode('Livro+de+visitas%2FF%C3%B3rum'),jdecode(''),'/1389/index.html','true',[ 
		['PAGE','1388',jdecode('Servi%C3%A7o+de+bilhetes'),jdecode(''),'/1389/1388.html','true',[],'']
	],'']];
var siteelementCount=17;
theSitetree.topTemplateName='Kreis';
theSitetree.paletteFamily='4D4CD2';
theSitetree.keyvisualId='588';
theSitetree.keyvisualName='computer.jpg';
theSitetree.fontsetId='125';
theSitetree.graphicsetId='140';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='000000';
var theTemplate={
				name: 			'Kreis',
				paletteFamily: 	'4D4CD2',
				keyvisualId: 	'588',
				keyvisualName: 	'computer.jpg',
				fontsetId: 		'125',
				graphicsetId: 	'140',
				contentColor: 	'FFFFFF',
				contentBGColor: '000000',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'4D4CD2',
				b_color: 		'7794F8',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '11',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '11',
internalId:  '1258149',
customField: '1501'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '1389',
internalId:  '1389AVEC10IN2E0V',
customField: 'action=form&icq=false'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '1388',
internalId:  '1389AVEC10IN2E0V',
customField: 'action=list'
};
var canonHostname = 'diywk02.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10IN2E0V';
var companyName   = 'PalmExpress';
var htmlTitle	  = 'Pe%C3%A7as+para+Palm+%2C+Assist.+Tecnica+%2C+Blackberry%2C+Ipod+%2C+Ipaq+%2C+Clie+%2C+Axim+%2C+Palm+%2C+Zire+%2C+tungsten+%2C+treo+%2C+lifedrive+%2C';
var metaKeywords  = 'palm++ipod+axim+clie++ipaq+hp++pe%C3%A7as+++treo+tungsten++zire++lifedrive+%2C++t3+%2C++lcd+%2C++digitizer+%2C++tela+de+toque+%2C++baterias+%2C++nano+%2C++mini+%2C++photo+%2C++pda+%2C++pocket+%3B+flat+cable%3B+carregador+%2C+case+%2C+carca%C3%A7a+%2C+hd+%2C+placa+m%C3%A3e';
var metaContents  = '+Palm+++Ipaq++Sony++Clie++Dell++Axim+e+Ipod+';
					                                                                    
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 */					                                                            
