/* [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','4436',jdecode('ML+MURALS+'),jdecode(''),'/4436.html','true',[],''],
	['PAGE','120811',jdecode('Residential'),jdecode(''),'/120811/index.html','true',[ 
		['PAGE','40801',jdecode('++Characters'),jdecode(''),'/120811/40801.html','true',[],''],
		['PAGE','134966',jdecode('Ocean+Themes'),jdecode(''),'/120811/134966.html','true',[],''],
		['PAGE','58819',jdecode('++Nature+Themes'),jdecode(''),'/120811/58819.html','true',[],''],
		['PAGE','66775',jdecode('+Culture+Themes'),jdecode(''),'/120811/66775.html','true',[],''],
		['PAGE','119590',jdecode('Religious+Themes'),jdecode(''),'/120811/119590.html','true',[],''],
		['PAGE','59419',jdecode('++Pop+Culture+Themes'),jdecode(''),'/120811/59419.html','true',[],''],
		['PAGE','64924',jdecode('++Trompe+l%26%23x27%3Boeil+'),jdecode(''),'/120811/64924.html','true',[],''],
		['PAGE','54419',jdecode('++Sports'),jdecode(''),'/120811/54419.html','true',[],'']
	],''],
	['PAGE','47019',jdecode('Commercial'),jdecode(''),'/47019/index.html','true',[ 
		['PAGE','50422',jdecode('Schools'),jdecode(''),'/47019/50422.html','true',[],''],
		['PAGE','37701',jdecode('Restaurants+and+lounges'),jdecode(''),'/47019/37701.html','true',[],''],
		['PAGE','119555',jdecode('Outdoor+Murals'),jdecode(''),'/47019/119555.html','true',[],''],
		['PAGE','55719',jdecode('Other+Businesses'),jdecode(''),'/47019/55719.html','true',[],''],
		['PAGE','145184',jdecode('Signs+and+Logos'),jdecode(''),'/47019/145184.html','true',[],'']
	],''],
	['PAGE','142630',jdecode('Philanthropy'),jdecode(''),'/142630.html','true',[],''],
	['PAGE','119102',jdecode('We+also+offer'),jdecode(''),'/119102/index.html','true',[ 
		['PAGE','40204',jdecode('++Commission+Paintings'),jdecode(''),'/119102/40204.html','true',[],''],
		['PAGE','41004',jdecode('++Original+Paintings'),jdecode(''),'/119102/41004.html','true',[],''],
		['PAGE','46119',jdecode('++Sets+and+Furniture'),jdecode(''),'/119102/46119.html','true',[],'']
	],''],
	['PAGE','64724',jdecode('The+Company'),jdecode(''),'/64724.html','true',[],''],
	['PAGE','45004',jdecode('Pricing'),jdecode(''),'/45004.html','true',[],''],
	['PAGE','44607',jdecode('Testimonials'),jdecode(''),'/44607.html','true',[],''],
	['PAGE','42204',jdecode('Contact+'),jdecode(''),'/42204.html','true',[],'']];
var siteelementCount=25;
theSitetree.topTemplateName='Logg';
					                                                                    
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 */					                                                            
