/* [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('Home'),jdecode(''),'/4436.html','true',[],''],
	['PAGE','6901',jdecode('Company'),jdecode(''),'/6901/index.html','true',[ 
		['PAGE','11955',jdecode('Our+team'),jdecode(''),'/6901/11955.html','true',[],''],
		['PAGE','6955',jdecode('News'),jdecode(''),'/6901/6955.html','true',[],''],
		['PAGE','12733',jdecode('Investors'),jdecode(''),'/6901/12733.html','true',[],''],
		['PAGE','6982',jdecode('Jobs'),jdecode(''),'/6901/6982.html','true',[],'']
	],''],
	['PAGE','6928',jdecode('Products'),jdecode(''),'/6928/index.html','true',[ 
		['PAGE','12546',jdecode('Demo+Code'),jdecode(''),'/6928/12546.html','true',[],''],
		['PAGE','12578',jdecode('Screen+Shots'),jdecode(''),'/6928/12578.html','true',[],''],
		['PAGE','12609',jdecode('Beta+Program'),jdecode(''),'/6928/12609/index.html','true',[ 
			['PAGE','88508',jdecode('Beta+Program+%28follow+up+page%29'),jdecode(''),'/6928/12609/88508.html','false',[],'']
		],''],
		['PAGE','12640',jdecode('Tech+Forum'),jdecode(''),'/6928/12640.html','true',[],''],
		['PAGE','12671',jdecode('Support+%26+FAQ'),jdecode(''),'/6928/12671.html','true',[],''],
		['PAGE','12702',jdecode('Purchase+On-Line'),jdecode(''),'/6928/12702.html','true',[],'']
	],''],
	['PAGE','7009',jdecode('Contact+Us'),jdecode(''),'/7009/index.html','true',[ 
		['PAGE','87659',jdecode('Contact+Us+%28follow+up+page%29'),jdecode(''),'/7009/87659.html','false',[],''],
		['PAGE','12101',jdecode('Driving+Directions'),jdecode(''),'/7009/12101.html','true',[],''],
		['PAGE','12808',jdecode('Newsletter'),jdecode(''),'/7009/12808.html','true',[],''],
		['PAGE','12839',jdecode('Partners'),jdecode(''),'/7009/12839/index.html','true',[ 
			['PAGE','87637',jdecode('Partners+%28follow+up+page%29'),jdecode(''),'/7009/12839/87637.html','false',[],'']
		],'']
	],'']];
var siteelementCount=20;
theSitetree.topTemplateName='Moonflight';
					                                                                    
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 */					                                                            
