/* [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('RhinestoneMedia'),jdecode(''),'/4436/index.html','true',[ 
		['PAGE','8400',jdecode('Art+Mission'),jdecode(''),'/4436/8400.html','true',[],'']
	],''],
	['PAGE','38439',jdecode('Art+Video+Portfolio'),jdecode(''),'/38439/index.html','true',[ 
		['PAGE','38663',jdecode('Art+Video'),jdecode(''),'/38439/38663.html','true',[],''],
		['PAGE','38601',jdecode('Collaboration'),jdecode(''),'/38439/38601.html','true',[],''],
		['PAGE','38570',jdecode('Kinetic'),jdecode(''),'/38439/38570.html','true',[],''],
		['PAGE','38539',jdecode('Ambient'),jdecode(''),'/38439/38539.html','true',[],''],
		['PAGE','38632',jdecode('Sculpture'),jdecode(''),'/38439/38632.html','true',[],'']
	],''],
	['PAGE','23739',jdecode('Fine+Art+Portfolio'),jdecode(''),'/23739/index.html','true',[ 
		['PAGE','42143',jdecode('Self+Portrait+Series'),jdecode(''),'/23739/42143.html','true',[],''],
		['PAGE','20340',jdecode('Aftermath+Series'),jdecode(''),'/23739/20340.html','true',[],''],
		['PAGE','44739',jdecode('Gestation'),jdecode(''),'/23739/44739.html','true',[],''],
		['PAGE','37339',jdecode('Texture+Work'),jdecode(''),'/23739/37339.html','true',[],''],
		['PAGE','45839',jdecode('Genetics%2FIdolatry'),jdecode(''),'/23739/45839.html','true',[],'']
	],''],
	['PAGE','18839',jdecode('Mermaid%2FScientist'),jdecode(''),'/18839/index.html','true',[ 
		['PAGE','18866',jdecode('Who+am+I%3F'),jdecode(''),'/18839/18866.html','true',[],'']
	],''],
	['PAGE','18802',jdecode('Definitions'),jdecode(''),'/18802/index.html','true',[ 
		['PAGE','21239',jdecode('New+Media+Art'),jdecode(''),'/18802/21239.html','true',[],''],
		['PAGE','8373',jdecode('Art+Video'),jdecode(''),'/18802/8373.html','true',[],'']
	],''],
	['PAGE','18893',jdecode('Colleagues%2FLinks'),jdecode(''),'/18893.html','true',[],''],
	['PAGE','8427',jdecode('Contact'),jdecode(''),'/8427/index.html','true',[ 
		['PAGE','40352',jdecode('Contact+%28follow+up+page%29'),jdecode(''),'/8427/40352.html','false',[],''],
		['PAGE','18920',jdecode('Credentials'),jdecode(''),'/8427/18920.html','true',[],'']
	],''],
	['PAGE','49739',jdecode('Video+Blog'),jdecode(''),'/49739.html','true',[],'']];
var siteelementCount=24;
theSitetree.topTemplateName='Art';
					                                                                    
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 */					                                                            
