/* [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','4499',jdecode('Home'),jdecode(''),'/4499.html','true',[],''],
	['PAGE','7636',jdecode('About+us'),jdecode(''),'/7636.html','true',[],''],
	['PAGE','4583',jdecode('Our+services'),jdecode(''),'/4583/index.html','true',[ 
		['PAGE','39034',jdecode('Consultancy'),jdecode(''),'/4583/39034.html','true',[],''],
		['PAGE','39055',jdecode('Interim+Management'),jdecode(''),'/4583/39055.html','true',[],''],
		['PAGE','39076',jdecode('Projects+%26+Programmes'),jdecode(''),'/4583/39076.html','true',[],'']
	],''],
	['PAGE','6803',jdecode('Our+clients'),jdecode(''),'/6803.html','true',[],''],
	['PAGE','37834',jdecode('Our+partners'),jdecode(''),'/37834.html','true',[],''],
	['PAGE','4610',jdecode('Contact+us'),jdecode(''),'/4610.html','true',[],''],
	['PAGE','6503',jdecode('Company+information'),jdecode(''),'/6503.html','true',[],'']];
var siteelementCount=10;
theSitetree.topTemplateName='Stylus';
theSitetree.paletteFamily='DB7A7A';
theSitetree.keyvisualId='1961';
theSitetree.keyvisualName='agentur.jpg';
theSitetree.fontsetId='328';
theSitetree.graphicsetId='386';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Stylus',
				paletteFamily: 	'DB7A7A',
				keyvisualId: 	'1961',
				keyvisualName: 	'agentur.jpg',
				fontsetId: 		'328',
				graphicsetId: 	'386',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'DB7A7A',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '4499',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4499',
internalId:  '',
customField: '20100810-145608'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4610',
internalId:  '',
customField: '20110105-134040'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '37834',
internalId:  '',
customField: '20100925-134917'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4583',
internalId:  '',
customField: '20110105-134340'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6803',
internalId:  '',
customField: '20100718-134312'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6503',
internalId:  '',
customField: '20110105-134002'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7636',
internalId:  '',
customField: '20110105-134226'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '39034',
internalId:  '',
customField: '20100218-112239'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '39055',
internalId:  '',
customField: '20110105-134425'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '39076',
internalId:  '',
customField: '20110105-134512'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010IN2TCY';
var companyName   = 'PKK+CONSULTING';
var htmlTitle	  = 'PKK+Consulting';
var metaKeywords  = 'IT+Service+Management%2C+ITSM%2C+ITIL%2C+Consultancy%2C+Consultant%2C+Interim+Management%2C+Programme%2C+Project%2C+Programme+Management%2C+Project+Management%2C+Infrastructure%3A';
var metaContents  = '';
					                                                                    
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 */					                                                            

