/* [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','44737',jdecode('Business+Solutions'),jdecode(''),'/44737/index.html','true',[ 
		['PAGE','31545',jdecode('Corprate+Services'),jdecode(''),'/44737/31545.html','true',[],''],
		['PAGE','86986',jdecode('Corprate+Cloud+Service'),jdecode(''),'/44737/86986.html','true',[],'']
	],''],
	['PAGE','88358',jdecode('Business+Continuity+Plan'),jdecode(''),'/88358.html','true',[],''],
	['PAGE','31576',jdecode('Case+Studies'),jdecode(''),'/31576/index.html','true',[ 
		['PAGE','87358',jdecode('Copier+Fax+Printer'),jdecode(''),'/31576/87358.html','true',[],'']
	],''],
	['PAGE','16334',jdecode('Productivity+Tips'),jdecode(''),'/16334/index.html','true',[ 
		['PAGE','31641',jdecode('Microsoft+Exchange'),jdecode(''),'/16334/31641.html','true',[],''],
		['PAGE','88079',jdecode('DNS+server'),jdecode(''),'/16334/88079.html','true',[],''],
		['PAGE','31796',jdecode('Printers'),jdecode(''),'/16334/31796.html','true',[],''],
		['PAGE','31765',jdecode('Backup+%26+Raid+Solutions'),jdecode(''),'/16334/31765.html','true',[],''],
		['PAGE','41186',jdecode('Fax+%26+Copier'),jdecode(''),'/16334/41186.html','true',[],''],
		['PAGE','31734',jdecode('Multi+Monitor+Solutions'),jdecode(''),'/16334/31734.html','true',[],'']
	],''],
	['PAGE','16226',jdecode('About+Us'),jdecode(''),'/16226/index.html','true',[ 
		['PAGE','41220',jdecode('Brief+History'),jdecode(''),'/16226/41220.html','true',[],''],
		['PAGE','30836',jdecode('Why+SR+NETWROK+%3F'),jdecode(''),'/16226/30836.html','true',[],''],
		['PAGE','21401',jdecode('Contact'),jdecode(''),'/16226/21401.html','true',[],'']
	],''],
	['PAGE','89180',jdecode('Contact'),jdecode(''),'/89180/index.html','true',[ 
		['PAGE','89331',jdecode('Contact+%28follow+up+page%29'),jdecode(''),'/89180/89331.html','false',[],'']
	],''],
	['PAGE','31703',jdecode('IT+Trend'),jdecode(''),'/31703/index.html','true',[ 
		['PAGE','41958',jdecode('SMEs'),jdecode(''),'/31703/41958.html','true',[],'']
	],''],
	['PAGE','31607',jdecode('Home+Users+Solutions'),jdecode(''),'/31607.html','true',[],''],
	['PAGE','86904',jdecode('Weblog'),jdecode(''),'/86904.html','true',[],'']];
var siteelementCount=24;
theSitetree.topTemplateName='Alpha';
					                                                                    
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 */					                                                            

