/* [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','1437',jdecode('Home'),jdecode(''),'/1437.html','true',[],''],
	['PAGE','17501',jdecode('Biography'),jdecode(''),'/17501.html','true',[],''],
	['PAGE','17555',jdecode('Oil'),jdecode(''),'/17555.html','true',[],''],
	['PAGE','22203',jdecode('Watercolour'),jdecode(''),'/22203.html','true',[],''],
	['PAGE','22230',jdecode('Gouache'),jdecode(''),'/22230.html','true',[],''],
	['PAGE','22257',jdecode('Graphite'),jdecode(''),'/22257.html','true',[],''],
	['PAGE','22284',jdecode('Crayon+'),jdecode(''),'/22284.html','true',[],''],
	['PAGE','22311',jdecode('Charcoal'),jdecode(''),'/22311.html','true',[],''],
	['PAGE','22338',jdecode('Indian+Ink'),jdecode(''),'/22338.html','true',[],''],
	['PAGE','22365',jdecode('Pen'),jdecode(''),'/22365.html','true',[],''],
	['PAGE','22392',jdecode('Sculpture'),jdecode(''),'/22392.html','true',[],''],
	['PAGE','22419',jdecode('Medals'),jdecode(''),'/22419.html','true',[],''],
	['PAGE','22446',jdecode('Public+Art'),jdecode(''),'/22446.html','true',[],''],
	['PAGE','22473',jdecode('Memories'),jdecode(''),'/22473.html','true',[],''],
	['PAGE','22500',jdecode('Awards'),jdecode(''),'/22500.html','true',[],''],
	['PAGE','22527',jdecode('Buy'),jdecode(''),'/22527.html','true',[],''],
	['PAGE','22554',jdecode('Links'),jdecode(''),'/22554.html','true',[],''],
	['PAGE','57603',jdecode('Links+Exchange'),jdecode(''),'/57603.html','true',[],''],
	['PAGE','22702',jdecode('Guestbook'),jdecode(''),'/22702/index.html','true',[ 
		['PAGE','22703',jdecode('Entrances'),jdecode(''),'/22702/22703.html','true',[],'']
	],'']];
var siteelementCount=20;
theSitetree.topTemplateName='Movement';
theSitetree.paletteFamily='3E6E72';
theSitetree.keyvisualId='1819';
theSitetree.keyvisualName='kv_dummy.jpg';
theSitetree.fontsetId='289';
theSitetree.graphicsetId='354';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='3E6E72';
var theTemplate={
				name: 			'Movement',
				paletteFamily: 	'3E6E72',
				keyvisualId: 	'1819',
				keyvisualName: 	'kv_dummy.jpg',
				fontsetId: 		'289',
				graphicsetId: 	'354',
				contentColor: 	'FFFFFF',
				contentBGColor: '3E6E72',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'3E6E72',
				b_color: 		'101C1D',
				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:  '1437',
internalId:  '1006',
customField: '1006'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '22702',
internalId:  '22702aam010in3yaa',
customField: 'action=form&icq=false'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '22703',
internalId:  '22702aam010in3yaa',
customField: 'action=list'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1437',
internalId:  '',
customField: '20070101-042335'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010IN3YAA';
var companyName   = 'Pereira+da+Silva+Art+Gallery';
var htmlTitle	  = 'Pereira+da+Silva+Art+Gallery';
var metaKeywords  = 'Biography%2C+Memories%2C+Public+Artworks%2C+Medals%2C+Awards%2C+Sculpture%2C+Paintings%2C+Oil%2C+Watercolor%2C+Gouache%2CGraphite%2C+Drawings%2C+Indian+Ink%2C+Pen+on+Paper%2C+Crayon%2C+Charcoal%2C+Manuel+Pereira+da+Silva%2C+Sculptor+Manuel+Pereira+da+Silva%2C+Pereira+da+Silva+Art+Gallery%2C+Contemporary+Art%2C+Portuguese+Artist%2C+European+Art%2C+European+Artist%2C+Abstract+Art%2C+Figurative+Art%2C+Art+Gallery%2C';
var metaContents  = 'Biography%2C+Memories%2C+Public+Artworks%2C+Medals%2C+Awards%2C+Sculpture%2C+Paintings%2C+Oil%2C+Watercolour%2C+Gouache%2CGraphite%2C+Drawings%2C+Indian+Ink%2C+Pen+on+Paper%2C+Crayon%2C+Charcoal%2C+Manuel+Pereira+da+Silva%2C';
					                                                                    
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 */					                                                            
