/* [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','4466',jdecode('Home'),jdecode(''),'/4466.html','true',[],''],
	['PAGE','12801',jdecode('Fused+Glass'),jdecode(''),'/12801/index.html','true',[ 
		['PAGE','12828',jdecode('Fused+Glass+2'),jdecode(''),'/12801/12828.html','true',[],''],
		['PAGE','12855',jdecode('Fused+Glass+3'),jdecode(''),'/12801/12855.html','true',[],''],
		['PAGE','24430',jdecode('Fused+Glass+4'),jdecode(''),'/12801/24430.html','true',[],'']
	],''],
	['PAGE','13201',jdecode('Stained+Glass'),jdecode(''),'/13201/index.html','true',[ 
		['PAGE','13228',jdecode('Stained+Glass+2'),jdecode(''),'/13201/13228.html','true',[],''],
		['PAGE','13255',jdecode('Stained+Glass+3'),jdecode(''),'/13201/13255.html','true',[],''],
		['PAGE','18701',jdecode('Stained+Glass+4'),jdecode(''),'/13201/18701.html','true',[],''],
		['PAGE','20401',jdecode('Stained+Glass+5'),jdecode(''),'/13201/20401.html','true',[],''],
		['PAGE','26501',jdecode('Stained+Glass+6'),jdecode(''),'/13201/26501.html','true',[],'']
	],''],
	['PAGE','11963',jdecode('Repair+and+Restoration'),jdecode(''),'/11963/index.html','true',[ 
		['PAGE','15101',jdecode('Restoration+2'),jdecode(''),'/11963/15101.html','true',[],''],
		['PAGE','16630',jdecode('Restoration+3'),jdecode(''),'/11963/16630.html','true',[],''],
		['PAGE','20364',jdecode('Restoration+4'),jdecode(''),'/11963/20364.html','true',[],''],
		['PAGE','27008',jdecode('Restoration+5'),jdecode(''),'/11963/27008.html','true',[],'']
	],''],
	['PAGE','19901',jdecode('Architectural+Salvage'),jdecode(''),'/19901/index.html','true',[ 
		['PAGE','21064',jdecode('Architectural+Salvage+2'),jdecode(''),'/19901/21064.html','true',[],''],
		['PAGE','28214',jdecode('Architectural+Salvage+3'),jdecode(''),'/19901/28214.html','true',[],'']
	],''],
	['PAGE','13732',jdecode('Glass+Awards'),jdecode(''),'/13732/index.html','true',[ 
		['PAGE','25215',jdecode('Glass+Awards+2'),jdecode(''),'/13732/25215.html','true',[],''],
		['PAGE','27871',jdecode('Glass+Awards+3'),jdecode(''),'/13732/27871.html','true',[],'']
	],''],
	['PAGE','28401',jdecode('Sandblasting+Etching'),jdecode(''),'/28401/index.html','true',[ 
		['PAGE','11932',jdecode('Sandblasting+Etching+2'),jdecode(''),'/28401/11932.html','true',[],''],
		['PAGE','28645',jdecode('Sandblasting+Etching+3'),jdecode(''),'/28401/28645.html','true',[],'']
	],''],
	['PAGE','14301',jdecode('Glass+Bowls'),jdecode(''),'/14301/index.html','true',[ 
		['PAGE','19001',jdecode('Glass+Bowls+2'),jdecode(''),'/14301/19001.html','true',[],'']
	],''],
	['PAGE','13701',jdecode('Glass+Tiles'),jdecode(''),'/13701/index.html','true',[ 
		['PAGE','18101',jdecode('Glass+Tiles+2'),jdecode(''),'/13701/18101.html','true',[],''],
		['PAGE','22101',jdecode('Glass+Tiles+3'),jdecode(''),'/13701/22101.html','true',[],''],
		['PAGE','23501',jdecode('How+To+Fix+Glass+Tiles'),jdecode(''),'/13701/23501.html','true',[],'']
	],''],
	['PAGE','21866',jdecode('Lighting'),jdecode(''),'/21866/index.html','true',[ 
		['PAGE','25051',jdecode('Lighting+2'),jdecode(''),'/21866/25051.html','true',[],''],
		['PAGE','25504',jdecode('Lighting+3'),jdecode(''),'/21866/25504.html','true',[],'']
	],''],
	['PAGE','18406',jdecode('Mirrors'),jdecode(''),'/18406.html','true',[],''],
	['PAGE','16917',jdecode('Night+Classes'),jdecode(''),'/16917.html','true',[],''],
	['PAGE','11994',jdecode('Contact'),jdecode(''),'/11994/index.html','true',[ 
		['PAGE','17902',jdecode('Location'),jdecode(''),'/11994/17902.html','true',[],''],
		['PAGE','26001',jdecode('Slideshow'),jdecode(''),'/11994/26001.html','true',[],''],
		['PAGE','26056',jdecode('Prints+and+Posters'),jdecode(''),'/11994/26056.html','true',[],''],
		['PAGE','20201',jdecode('Galleries+%2F+Links'),jdecode(''),'/11994/20201.html','true',[],'']
	],'']];
var siteelementCount=41;
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 */					                                                            
