/* [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('Home'),jdecode(''),'/801.html','true',[],''],
	['PAGE','47001',jdecode('News'),jdecode(''),'/47001.html','true',[],''],
	['PAGE','48401',jdecode('Primary+French'),jdecode(''),'/48401/index.html','true',[ 
		['PAGE','54901',jdecode('KS2+teaching+materials'),jdecode(''),'/48401/54901.html','true',[],''],
		['PAGE','54922',jdecode('French+Image+Bank'),jdecode(''),'/48401/54922.html','true',[],''],
		['PAGE','54943',jdecode('OnTarget+French'),jdecode(''),'/48401/54943.html','true',[],''],
		['PAGE','55401',jdecode('Chante+avec+nous'),jdecode(''),'/48401/55401.html','true',[],''],
		['PAGE','58101',jdecode('Ordering'),jdecode(''),'/48401/58101.html','true',[],''],
		['PAGE','74112',jdecode('French+Resource+FAQs'),jdecode(''),'/48401/74112.html','true',[],'']
	],''],
	['PAGE','957',jdecode('MFL+teaching'),jdecode(''),'/957/index.html','true',[ 
		['PAGE','2464',jdecode('General+information'),jdecode(''),'/957/2464.html','true',[],''],
		['PAGE','31401',jdecode('Key+Stage+2'),jdecode(''),'/957/31401.html','true',[],''],
		['PAGE','31422',jdecode('Key+Stage+3'),jdecode(''),'/957/31422.html','true',[],''],
		['PAGE','31443',jdecode('Key+Stage+4'),jdecode(''),'/957/31443.html','true',[],''],
		['PAGE','2443',jdecode('Seminars'),jdecode(''),'/957/2443.html','true',[],''],
		['PAGE','38601',jdecode('Publications'),jdecode(''),'/957/38601.html','true',[],''],
		['PAGE','41701',jdecode('Creative+Education'),jdecode(''),'/957/41701.html','true',[],'']
	],''],
	['PAGE','873',jdecode('Whole-school+ICT'),jdecode(''),'/873/index.html','true',[ 
		['PAGE','936',jdecode('Smart+Technologies'),jdecode(''),'/873/936.html','true',[],''],
		['PAGE','915',jdecode('Promethean'),jdecode(''),'/873/915.html','true',[],''],
		['PAGE','894',jdecode('Polyvision+%C4%93no'),jdecode(''),'/873/894.html','true',[],''],
		['PAGE','2401',jdecode('Other+software'),jdecode(''),'/873/2401.html','true',[],''],
		['PAGE','38643',jdecode('Espresso+%2F+Clipbank'),jdecode(''),'/873/38643.html','true',[],'']
	],''],
	['PAGE','53222',jdecode('Forthcoming+events'),jdecode(''),'/53222.html','true',[],''],
	['PAGE','1125',jdecode('Partners'),jdecode(''),'/1125.html','true',[],''],
	['PAGE','53201',jdecode('YouTube'),jdecode(''),'/53201.html','true',[],''],
	['PAGE','44822',jdecode('Community'),jdecode(''),'/44822.html','true',[],''],
	['PAGE','1104',jdecode('Contact'),jdecode(''),'/1104.html','true',[],'']];
var siteelementCount=28;
theSitetree.topTemplateName='Collage';
theSitetree.paletteFamily='F9C116';
theSitetree.keyvisualId='2466';
theSitetree.keyvisualName='schule.jpg';
theSitetree.fontsetId='406';
theSitetree.graphicsetId='459';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Collage',
				paletteFamily: 	'F9C116',
				keyvisualId: 	'2466',
				keyvisualName: 	'schule.jpg',
				fontsetId: 		'406',
				graphicsetId: 	'459',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'FFFFFF',
				b_color: 		'F9C116',
				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['5000']={
webappId:    '5000',
documentId:  '801',
internalId:  '',
customField: '20100623-190422'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '31443',
internalId:  '',
customField: '20100319-081735'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '873',
internalId:  '',
customField: '20100124-170110'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '55401',
internalId:  '',
customField: '20100316-204229'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '54922',
internalId:  '',
customField: '20100316-204205'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1104',
internalId:  '',
customField: '20090614-131800'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '38601',
internalId:  '',
customField: '20100124-193158'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '894',
internalId:  '',
customField: '20100124-142324'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '58101',
internalId:  '6497656',
customField: 'en:GB:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '957',
internalId:  '',
customField: '20100122-215101'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1125',
internalId:  '',
customField: '20100122-191621'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '894',
internalId:  '5492957',
customField: 'en:GB:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '936',
internalId:  '',
customField: '20100124-142023'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '936',
internalId:  '5492957',
customField: 'en:GB:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '915',
internalId:  '',
customField: '20090909-150916'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '915',
internalId:  '5492957',
customField: 'en:GB:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '2401',
internalId:  '',
customField: '20090909-151039'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '2401',
internalId:  '5494363',
customField: 'en:GB:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '53222',
internalId:  '',
customField: '20100811-143216'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '2464',
internalId:  '',
customField: '20100124-132658'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '54943',
internalId:  '',
customField: '20100316-204215'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '47001',
internalId:  '',
customField: '20100512-104923'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '2443',
internalId:  '',
customField: '20100122-204217'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '2443',
internalId:  '5492219',
customField: 'en:GB:'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '38601',
internalId:  '5492219',
customField: 'en:GB:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '58101',
internalId:  '',
customField: '20100310-223649'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '31401',
internalId:  '',
customField: '20100202-165359'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '31422',
internalId:  '',
customField: '20100124-140414'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '38643',
internalId:  '',
customField: '20100204-090207'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '54901',
internalId:  '',
customField: '20100705-181421'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '41701',
internalId:  '',
customField: '20100202-174721'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '1104',
internalId:  '5492219',
customField: 'en:GB:'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '801',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '53201',
internalId:  '',
customField: '20100124-123009'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '48401',
internalId:  '',
customField: '20100811-140832'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '44822',
internalId:  '',
customField: '20100122-192556'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '74112',
internalId:  '',
customField: '20100512-103955'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INZ4B6';
var companyName   = 'Orangery+Education+Ltd';
var htmlTitle	  = 'Orangery+Education+Ltd+%7C+Specialising+in+ICT+and+MFL+support';
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 */					                                                            
