/* [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','701',jdecode('HOME'),jdecode(''),'/701.html','true',[],''],
	['PAGE','752',jdecode('WHO+WE+ARE'),jdecode(''),'/752.html','true',[],''],
	['PAGE','773',jdecode('OUTSOURCING'),jdecode(''),'/773.html','true',[],''],
	['PAGE','794',jdecode('SERVICES'),jdecode(''),'/794/index.html','true',[ 
		['PAGE','5101',jdecode('EMPLOYEE+RELATIONS'),jdecode(''),'/794/5101.html','true',[],''],
		['PAGE','6301',jdecode('HEALTH+%26+SAFETY'),jdecode(''),'/794/6301.html','true',[],''],
		['PAGE','6322',jdecode('RECRUITMENT+%26+SELECTION'),jdecode(''),'/794/6322.html','true',[],''],
		['PAGE','6343',jdecode('WSIB'),jdecode(''),'/794/6343.html','true',[],''],
		['PAGE','6364',jdecode('LABOR+RELATIONS'),jdecode(''),'/794/6364.html','true',[],''],
		['PAGE','6385',jdecode('LEAN+MANUFACTURING'),jdecode(''),'/794/6385.html','true',[],''],
		['PAGE','6406',jdecode('TRAINING'),jdecode(''),'/794/6406.html','true',[],''],
		['PAGE','6427',jdecode('ORGANIZATION+STRUCTURE'),jdecode(''),'/794/6427.html','true',[],'']
	],''],
	['PAGE','815',jdecode('EMPLOYMENT+OPPORTUNITIES'),jdecode(''),'/815.html','true',[],''],
	['PAGE','6801',jdecode('NEWS'),jdecode(''),'/6801.html','true',[],''],
	['PAGE','836',jdecode('CONTACT+US'),jdecode(''),'/836.html','true',[],''],
	['PAGE','11901',jdecode('PRIVACY+POLICY'),jdecode(''),'/11901.html','true',[],''],
	['PAGE','12501',jdecode('RESUMES'),jdecode(''),'/12501.html','true',[],'']];
var siteelementCount=17;
theSitetree.topTemplateName='Logg';
theSitetree.paletteFamily='3D4B78';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='426';
theSitetree.graphicsetId='468';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='3D4B78';
var theTemplate={
				name: 			'Logg',
				paletteFamily: 	'3D4B78',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'426',
				graphicsetId: 	'468',
				contentColor: 	'FFFFFF',
				contentBGColor: '3D4B78',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'3D4B78',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1501']={
webappId:    '1501',
documentId:  '701',
internalId:  '246227',
customField: '1501'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '701',
internalId:  '',
customField: '20070602-122612'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '11901',
internalId:  '',
customField: '20070412-205529'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '752',
internalId:  '',
customField: '20070104-130856'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '773',
internalId:  '',
customField: '20070110-222445'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '794',
internalId:  '',
customField: '20070110-224927'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6406',
internalId:  '',
customField: '20070110-223115'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5101',
internalId:  '',
customField: '20070104-133554'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6301',
internalId:  '',
customField: '20070110-222632'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6322',
internalId:  '',
customField: '20070110-222624'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6343',
internalId:  '',
customField: '20070110-222946'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6364',
internalId:  '',
customField: '20061206-075940'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6385',
internalId:  '',
customField: '20070110-224623'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6427',
internalId:  '',
customField: '20070110-223022'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '815',
internalId:  '',
customField: '20070110-224657'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6801',
internalId:  '',
customField: '20070110-224752'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '836',
internalId:  '',
customField: '20070104-131259'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '12501',
internalId:  '',
customField: '20070502-104122'
};
var canonHostname = 'wsc.sibername.com';
var accountId     = 'ASIB10INXEAV';
var companyName   = 'Capital+Outsourcing+Solutions';
var htmlTitle	  = 'www.capitaloutsourcingsolutions.com';
var metaKeywords  = '';
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 */					                                                            
