/* [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','4598',jdecode('Home'),jdecode(''),'/4598.html','true',[],''],
	['PAGE','4655',jdecode('COMPANY'),jdecode(''),'/4655/index.html','true',[ 
		['PAGE','24229',jdecode('LOCATION'),jdecode(''),'/4655/24229.html','true',[],''],
		['PAGE','4844',jdecode('EVENTS'),jdecode(''),'/4655/4844.html','true',[],''],
		['PAGE','9916',jdecode('CONTACT+US+%28follow+up+page%29'),jdecode(''),'/4655/9916.html','false',[],''],
		['PAGE','25290',jdecode('REFERENCES'),jdecode(''),'/4655/25290.html','true',[],''],
		['PAGE','4682',jdecode('COOPERATION'),jdecode(''),'/4655/4682.html','true',[],'']
	],''],
	['PAGE','4709',jdecode('SYSTEMS'),jdecode(''),'/4709/index.html','true',[ 
		['PAGE','4736',jdecode('PICOSTAR'),jdecode(''),'/4709/4736.html','true',[],''],
		['PAGE','4763',jdecode('TriMScope'),jdecode(''),'/4709/4763.html','true',[],''],
		['PAGE','4790',jdecode('TauScope'),jdecode(''),'/4709/4790.html','true',[],'']
	],''],
	['PAGE','4817',jdecode('CAMERAS'),jdecode(''),'/4817/index.html','true',[ 
		['PAGE','17440',jdecode('CCD+CAMERAS'),jdecode(''),'/4817/17440.html','true',[],''],
		['PAGE','17467',jdecode('ICCD+CAMERAS'),jdecode(''),'/4817/17467.html','true',[],''],
		['PAGE','17494',jdecode('IMAGE+INTENSIFIERS'),jdecode(''),'/4817/17494.html','true',[],''],
		['PAGE','20457',jdecode('ACCESSORIES'),jdecode(''),'/4817/20457.html','true',[],'']
	],''],
	['PAGE','25259',jdecode('RESOURCES'),jdecode(''),'/25259/index.html','true',[ 
		['PAGE','25352',jdecode('FLUORESCENCE'),jdecode(''),'/25259/25352.html','true',[],''],
		['PAGE','25959',jdecode('FLUORESCENCE+LIFETIME'),jdecode(''),'/25259/25959.html','true',[],''],
		['PAGE','25990',jdecode('MULTIPHOTON+MICROSCOPY'),jdecode(''),'/25259/25990.html','true',[],''],
		['PAGE','26136',jdecode('FRET'),jdecode(''),'/25259/26136.html','true',[],''],
		['PAGE','26459',jdecode('FRAP'),jdecode(''),'/25259/26459.html','true',[],''],
		['PAGE','26490',jdecode('SHG+Microscopy'),jdecode(''),'/25259/26490.html','true',[],''],
		['PAGE','26552',jdecode('CARS+MICROSCOPY'),jdecode(''),'/25259/26552.html','true',[],''],
		['PAGE','26083',jdecode('TIME-GATED+IMAGING'),jdecode(''),'/25259/26083.html','true',[],''],
		['PAGE','26021',jdecode('SCATTERING+MEDIA'),jdecode(''),'/25259/26021.html','true',[],''],
		['PAGE','26521',jdecode('PUMP+PROBE+IMAGING'),jdecode(''),'/25259/26521.html','true',[],''],
		['PAGE','26052',jdecode('PLASMA+KINETICS'),jdecode(''),'/25259/26052.html','true',[],''],
		['PAGE','30793',jdecode('LIDAR'),jdecode(''),'/25259/30793.html','true',[],''],
		['PAGE','25321',jdecode('LINKS'),jdecode(''),'/25259/25321.html','true',[],'']
	],''],
	['PAGE','4871',jdecode('CONTACT+US'),jdecode(''),'/4871.html','true',[],'']];
var siteelementCount=31;
theSitetree.topTemplateName='Cuy';
					                                                                    
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 */					                                                            
