/* [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','801',jdecode('Welcome'),jdecode(''),'/801.html','true',[],''],
	['PAGE','106712',jdecode('Primary+Languages'),jdecode(''),'/106712/index.html','true',[ 
		['PAGE','106733',jdecode('French+resources'),jdecode(''),'/106712/106733.html','true',[],''],
		['PAGE','106754',jdecode('Spanish+resources'),jdecode(''),'/106712/106754.html','true',[],''],
		['PAGE','111812',jdecode('Place+an+order'),jdecode(''),'/106712/111812.html','true',[],''],
		['PAGE','114512',jdecode('Useful+links'),jdecode(''),'/106712/114512.html','true',[],'']
	],''],
	['PAGE','106775',jdecode('Training+%26+Consultancy'),jdecode(''),'/106775/index.html','true',[ 
		['PAGE','137912',jdecode('Recent+feedback'),jdecode(''),'/106775/137912.html','true',[],'']
	],''],
	['PAGE','111833',jdecode('Classroom+%26%23x27%3Btoys%26%23x27%3B'),jdecode(''),'/111833/index.html','true',[ 
		['PAGE','113575',jdecode('Useful+links'),jdecode(''),'/111833/113575.html','true',[],'']
	],''],
	['PAGE','106859',jdecode('Clipbank'),jdecode(''),'/106859.html','true',[],''],
	['PAGE','106838',jdecode('Espresso+Primary'),jdecode(''),'/106838.html','true',[],''],
	['PAGE','106901',jdecode('Polyvision'),jdecode(''),'/106901/index.html','true',[ 
		['PAGE','113512',jdecode('Useful+links'),jdecode(''),'/106901/113512.html','true',[],'']
	],''],
	['PAGE','106817',jdecode('Promethean'),jdecode(''),'/106817/index.html','true',[ 
		['PAGE','113533',jdecode('Useful+links'),jdecode(''),'/106817/113533.html','true',[],'']
	],''],
	['PAGE','106796',jdecode('Smart+Technologies'),jdecode(''),'/106796/index.html','true',[ 
		['PAGE','113554',jdecode('Useful+links'),jdecode(''),'/106796/113554.html','true',[],'']
	],''],
	['PAGE','106922',jdecode('+About+Orangery'),jdecode(''),'/106922.html','true',[],''],
	['PAGE','106943',jdecode('Subsidiaries'),jdecode(''),'/106943.html','true',[],''],
	['PAGE','106964',jdecode('Training+Partners'),jdecode(''),'/106964.html','true',[],''],
	['PAGE','110812',jdecode('Past+Clients'),jdecode(''),'/110812.html','true',[],''],
	['PAGE','106985',jdecode('Publications'),jdecode(''),'/106985.html','true',[],''],
	['PAGE','107006',jdecode('International'),jdecode(''),'/107006.html','true',[],''],
	['PAGE','107027',jdecode('Contact'),jdecode(''),'/107027.html','true',[],'']];
var siteelementCount=25;
theSitetree.topTemplateName='Global';
theSitetree.paletteFamily='006600';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='87';
theSitetree.graphicsetId='104';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Global',
				paletteFamily: 	'006600',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'87',
				graphicsetId: 	'104',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'176B03',
				b_color: 		'669900',
				c_color: 		'000000',
				d_color: 		'E0EEE3',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '801',
internalId:  '',
customField: '20110808-111839'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '113533',
internalId:  '',
customField: '20110807-135741'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '113554',
internalId:  '',
customField: '20110807-135144'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '107027',
internalId:  '5492219',
customField: 'en:GB:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '107027',
internalId:  '',
customField: '20110804-185047'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '114512',
internalId:  '',
customField: '20110807-184611'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '106901',
internalId:  '',
customField: '20110807-124302'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '111833',
internalId:  '',
customField: '20110807-185734'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '106922',
internalId:  '',
customField: '20110808-222510'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '106943',
internalId:  '',
customField: '20110807-123607'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '106964',
internalId:  '',
customField: '20110807-124251'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '106985',
internalId:  '',
customField: '20110805-222904'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '107006',
internalId:  '',
customField: '20110808-114839'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '137912',
internalId:  '',
customField: '20120111-103848'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '106712',
internalId:  '',
customField: '20110807-191034'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '106733',
internalId:  '',
customField: '20110830-212303'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '106754',
internalId:  '',
customField: '20110807-182852'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '106775',
internalId:  '',
customField: '20110811-120755'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '106796',
internalId:  '',
customField: '20110807-134620'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '111812',
internalId:  '',
customField: '20110807-182952'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '113575',
internalId:  '',
customField: '20110808-112103'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '110812',
internalId:  '',
customField: '20110811-120612'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '106817',
internalId:  '',
customField: '20110807-135151'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '106838',
internalId:  '',
customField: '20110808-123126'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '106859',
internalId:  '',
customField: '20110808-123229'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '801',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '113512',
internalId:  '',
customField: '20110808-222925'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '111812',
internalId:  '6497656',
customField: 'en:GB:'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INZ4B6';
var companyName   = 'Orangery+Education+Ltd';
var htmlTitle	  = 'Orangery+Education+Ltd';
var metaKeywords  = 'The+Language+Show%2C+ICT%2C+MFL%2C+Key+Stage+2%2C+Key+Stage+3%2C+KS2%2C+KS3%2C+Framework%2C+Languages%2C+Interactive+Whiteboard%2C+Smartboard%2C+Promethean%2C+New+Secondary+Curriculum%2C+National+Curriculum%2C+Steve+Mulgrew%2C+Polyvision+eno%2C+INSET%2C+teachers%2C+Asset+Languages%2C+Primary+Languages+resources%2C+National+Strategies%2C+SLN%2C+Durham%2C+Primary+Languages+Show%2C+CILT%2C+Tools+for+Schools%2C+KS2+QCA+MFL%2C+Primary+French';
var metaContents  = 'Information%2C+downloads+and+training+courses+in+two+key+areas+-+MFL+teaching%2C+and+the+use+of+ICT+across+the+curriculum.';
					                                                                    
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 */					                                                            

