/* [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','4596',jdecode('Home'),jdecode(''),'/4596.html','true',[],''],
	['PAGE','4788',jdecode('News'),jdecode(''),'/4788/index.html','true',[ 
		['PAGE','5301',jdecode('US+Patent+Issued'),jdecode(''),'/4788/5301.html','true',[],''],
		['PAGE','5355',jdecode('Mahler+Concerts+'),jdecode(''),'/4788/5355.html','true',[],''],
		['PAGE','35501',jdecode('Australian+Patent'),jdecode(''),'/4788/35501.html','true',[],''],
		['PAGE','35101',jdecode('New+%26%23x27%3Bsuper-vitamins%26%23x27%3B'),jdecode(''),'/4788/35101.html','true',[],''],
		['PAGE','33501',jdecode('Thiolatocobalamins'),jdecode(''),'/4788/33501.html','true',[],''],
		['PAGE','32201',jdecode('European+Patent'),jdecode(''),'/4788/32201.html','true',[],''],
		['PAGE','15101',jdecode('Case+presentations'),jdecode(''),'/4788/15101.html','true',[],''],
		['PAGE','29201',jdecode('US+License+issued'),jdecode(''),'/4788/29201.html','true',[],'']
	],''],
	['PAGE','33001',jdecode('Cerefolin+NAC'),jdecode(''),'/33001.html','true',[],''],
	['PAGE','4680',jdecode('Intellectual+Property'),jdecode(''),'/4680/index.html','true',[ 
		['PAGE','4707',jdecode('Further+details'),jdecode(''),'/4680/4707/index.html','true',[ 
			['PAGE','9602',jdecode('GS-B12+%28follow+up+page%29'),jdecode(''),'/4680/4707/9602.html','false',[],'']
		],'']
	],''],
	['PAGE','5328',jdecode('Publications'),jdecode(''),'/5328.html','true',[],''],
	['PAGE','4653',jdecode('Research+Associates'),jdecode(''),'/4653.html','true',[],''],
	['PAGE','10701',jdecode('Metabolism'),jdecode(''),'/10701.html','true',[],''],
	['PAGE','26101',jdecode('Background'),jdecode(''),'/26101.html','true',[],''],
	['PAGE','32253',jdecode('Future+plans'),jdecode(''),'/32253.html','true',[],''],
	['PAGE','14401',jdecode('About+COBALZ'),jdecode(''),'/14401/index.html','true',[ 
		['PAGE','19404',jdecode('Andrew+McCaddon'),jdecode(''),'/14401/19404.html','true',[],''],
		['PAGE','19466',jdecode('Bjorn+Regland'),jdecode(''),'/14401/19466.html','true',[],''],
		['PAGE','19528',jdecode('Nicola+Brasch'),jdecode(''),'/14401/19528.html','true',[],''],
		['PAGE','19497',jdecode('Peter+Hudson'),jdecode(''),'/14401/19497.html','true',[],''],
		['PAGE','19435',jdecode('Gareth+Davies'),jdecode(''),'/14401/19435.html','true',[],'']
	],''],
	['PAGE','4842',jdecode('Contact'),jdecode(''),'/4842.html','true',[],'']];
var siteelementCount=26;
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 */					                                                            
