/* [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','16128',jdecode('Firm'),jdecode(''),'/16128.html','true',[],''],
	['PAGE','16155',jdecode('Solutions'),jdecode(''),'/16155/index.html','true',[ 
		['PAGE','16808',jdecode('Business+Intelligence'),jdecode(''),'/16155/16808.html','true',[],''],
		['PAGE','16290',jdecode('Application+Solutions'),jdecode(''),'/16155/16290.html','true',[],''],
		['PAGE','16710',jdecode('Quality+Assurance'),jdecode(''),'/16155/16710.html','true',[],''],
		['PAGE','16741',jdecode('IT+Outsourcing'),jdecode(''),'/16155/16741.html','true',[],''],
		['PAGE','16772',jdecode('Program+Management'),jdecode(''),'/16155/16772.html','true',[],'']
	],''],
	['PAGE','22110',jdecode('Clients'),jdecode(''),'/22110/index.html','true',[ 
		['PAGE','165625',jdecode('Clients+%28follow+up+page%29'),jdecode(''),'/22110/165625.html','false',[],'']
	],''],
	['PAGE','22141',jdecode('Alliances'),jdecode(''),'/22141/index.html','true',[ 
		['PAGE','165529',jdecode('Alliances+%28follow+up+page%29'),jdecode(''),'/22141/165529.html','false',[],'']
	],''],
	['PAGE','16263',jdecode('News+%26+Articles'),jdecode(''),'/16263.html','true',[],''],
	['PAGE','22176',jdecode('Contact'),jdecode(''),'/22176/index.html','true',[ 
		['PAGE','22335',jdecode('Contact+%28follow+up+page%29'),jdecode(''),'/22176/22335.html','false',[],''],
		['PAGE','22230',jdecode('Careers'),jdecode(''),'/22176/22230/index.html','true',[ 
			['PAGE','22372',jdecode('Career+%28follow+up+page%29'),jdecode(''),'/22176/22230/22372.html','false',[],'']
		],'']
	],'']];
var siteelementCount=17;
theSitetree.topTemplateName='Commander';
					                                                                    
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 */					                                                            
