/* [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','4518',jdecode('Home'),jdecode(''),'/4518.html','true',[],''],
	['PAGE','4575',jdecode('About+Mark'),jdecode(''),'/4575.html','true',[],''],
	['PAGE','4602',jdecode('Contact'),jdecode(''),'/4602/index.html','true',[ 
		['PAGE','14924',jdecode('Contact+%28follow+up+page%29'),jdecode(''),'/4602/14924.html','false',[],'']
	],''],
	['PAGE','30465',jdecode('Technicians'),jdecode(''),'/30465/index.html','true',[ 
		['PAGE','4629',jdecode('Shade+taking'),jdecode(''),'/30465/4629/index.html','true',[ 
			['PAGE','30893',jdecode('Shade+taking+%28follow+up+page%29'),jdecode(''),'/30465/4629/30893.html','false',[],'']
		],''],
		['PAGE','28308',jdecode('inLab+basic'),jdecode(''),'/30465/28308.html','true',[],''],
		['PAGE','28339',jdecode('inLab+advanced+'),jdecode(''),'/30465/28339.html','true',[],'']
	],''],
	['PAGE','30957',jdecode('Surgeons'),jdecode(''),'/30957/index.html','true',[ 
		['PAGE','30989',jdecode('EvEnTS'),jdecode(''),'/30957/30989.html','true',[],''],
		['PAGE','31020',jdecode('Ongoing+education'),jdecode(''),'/30957/31020.html','true',[],'']
	],''],
	['PAGE','13344',jdecode('Discussions'),jdecode(''),'/13344.html','true',[],''],
	['PAGE','14023',jdecode('Testimonials'),jdecode(''),'/14023.html','true',[],''],
	['PAGE','14050',jdecode('Published+Works'),jdecode(''),'/14050/index.html','true',[ 
		['PAGE','30300',jdecode('restoration+selection'),jdecode(''),'/14050/30300.html','true',[],''],
		['PAGE','29148',jdecode('The+VM+range'),jdecode(''),'/14050/29148.html','true',[],''],
		['PAGE','15523',jdecode('Principles+of+Shade+Matching'),jdecode(''),'/14050/15523.html','true',[],''],
		['PAGE','18623',jdecode('Aesthetic+Protocols'),jdecode(''),'/14050/18623.html','true',[],''],
		['PAGE','20578',jdecode('Duceragold+crowns'),jdecode(''),'/14050/20578.html','true',[],''],
		['PAGE','25523',jdecode('DuceraGold+Part+2'),jdecode(''),'/14050/25523.html','true',[],''],
		['PAGE','29262',jdecode('Efficiency+in+the+dental+laboratory'),jdecode(''),'/14050/29262.html','true',[],''],
		['PAGE','29293',jdecode('CADCAM+technology'),jdecode(''),'/14050/29293.html','true',[],''],
		['PAGE','31248',jdecode('Teams'),jdecode(''),'/14050/31248.html','true',[],'']
	],''],
	['PAGE','4737',jdecode('Links'),jdecode(''),'/4737.html','true',[],''],
	['PAGE','13086',jdecode('Feedback'),jdecode(''),'/13086/index.html','true',[ 
		['PAGE','13087',jdecode('Read+Guestbook'),jdecode(''),'/13086/13087.html','true',[],'']
	],''],
	['PAGE','18023',jdecode('Course+Photographs'),jdecode(''),'/18023/index.html','true',[ 
		['PAGE','17024',jdecode('6+%26+7+March+2004'),jdecode(''),'/18023/17024.html','true',[],''],
		['PAGE','24188',jdecode('8+%26+9+May+2004'),jdecode(''),'/18023/24188.html','true',[],'']
	],'']];
var siteelementCount=30;
theSitetree.topTemplateName='Disco';
					                                                                    
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 */					                                                            
