/* [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','4597',jdecode('Home'),jdecode(''),'/4597.html','true',[],''],
	['PAGE','4654',jdecode('RosieMay+Memorial+Fund'),jdecode(''),'/4654.html','true',[],''],
	['PAGE','4708',jdecode('Latest+News'),jdecode(''),'/4708/index.html','true',[ 
		['PAGE','52901',jdecode('Australian+News'),jdecode(''),'/4708/52901.html','true',[],'']
	],''],
	['PAGE','46301',jdecode('The+Rosie+May+Home'),jdecode(''),'/46301/index.html','true',[ 
		['PAGE','43532',jdecode('Sponsor+a+Child'),jdecode(''),'/46301/43532.html','true',[],''],
		['PAGE','43599',jdecode('Sponsor+a+Child+%28follow+up+page%29'),jdecode(''),'/46301/43599.html','false',[],'']
	],''],
	['PAGE','57601',jdecode('Rosie+May+Academy'),jdecode(''),'/57601/index.html','true',[ 
		['PAGE','97401',jdecode('Master+Class'),jdecode(''),'/57601/97401.html','true',[],''],
		['PAGE','97901',jdecode('Booking+Form'),jdecode(''),'/57601/97901.html','true',[],'']
	],''],
	['PAGE','84801',jdecode('Volunteer+Page'),jdecode(''),'/84801/index.html','true',[ 
		['PAGE','84822',jdecode('Register+as+Volunteer'),jdecode(''),'/84801/84822.html','true',[],''],
		['PAGE','102101',jdecode('Volunteer+Day'),jdecode(''),'/84801/102101.html','true',[],'']
	],''],
	['PAGE','51301',jdecode('Dance+for+Rosie+May'),jdecode(''),'/51301/index.html','true',[ 
		['PAGE','91001',jdecode('Dance+Comp+Entry'),jdecode(''),'/51301/91001.html','true',[],'']
	],''],
	['PAGE','22701',jdecode('The+Rosie+May+Day+Ball'),jdecode(''),'/22701/index.html','true',[ 
		['PAGE','23728',jdecode('Sponsors'),jdecode(''),'/22701/23728.html','true',[],''],
		['PAGE','25401',jdecode('Celebrity+Auction'),jdecode(''),'/22701/25401.html','true',[],'']
	],''],
	['PAGE','26601',jdecode('Rosie+May+Childrens+Ball'),jdecode(''),'/26601.html','true',[],''],
	['PAGE','15201',jdecode('CD+Brown+Eyed+Girl'),jdecode(''),'/15201.html','true',[],''],
	['PAGE','4735',jdecode('Rosie+May+age+10'),jdecode(''),'/4735/index.html','true',[ 
		['PAGE','4789',jdecode('Poems'),jdecode(''),'/4735/4789.html','true',[],''],
		['PAGE','33401',jdecode('Rosie+May%26%23x27%3Bs+House'),jdecode(''),'/4735/33401.html','true',[],'']
	],''],
	['PAGE','4816',jdecode('Book+of+Condolence'),jdecode(''),'/4816/index.html','true',[ 
		['PAGE','10101',jdecode('Submit+an+entry'),jdecode(''),'/4816/10101/index.html','true',[ 
			['PAGE','11008',jdecode('Submit+an+entry+%28follow+up+page%29'),jdecode(''),'/4816/10101/11008.html','false',[],'']
		],''],
		['PAGE','10128',jdecode('Read+the+book'),jdecode(''),'/4816/10128.html','true',[],'']
	],''],
	['PAGE','4897',jdecode('Links'),jdecode(''),'/4897.html','true',[],''],
	['PAGE','4924',jdecode('Contact'),jdecode(''),'/4924/index.html','true',[ 
		['PAGE','12008',jdecode('Contact+%28follow+up+page%29'),jdecode(''),'/4924/12008.html','false',[],'']
	],'']];
var siteelementCount=30;
theSitetree.topTemplateName='Roses';
theSitetree.paletteFamily='FFFBF2';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10444';
theSitetree.graphicsetId='10823';
theSitetree.contentColor='C44343';
theSitetree.contentBGColor='FFFBF2';
var theTemplate={
				name: 			'Roses',
				paletteFamily: 	'FFFBF2',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10444',
				graphicsetId: 	'10823',
				contentColor: 	'C44343',
				contentBGColor: 'FFFBF2',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'787878',
				e_color: 		'9D584B',
				f_color: 		'9D584B',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1001']={
webappId:    '1001',
documentId:  '10101',
internalId:  'aam010in27ijfb55a98cf0',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '11008',
internalId:  'aam010in27ijfb55a98cf0',
customField: 'followUp'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '4597',
internalId:  '1006',
customField: '1006'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '4924',
internalId:  'aam010in27ijfb6482a7b6',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '12008',
internalId:  'aam010in27ijfb6482a7b6',
customField: 'followUp'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '4597',
internalId:  '947977',
customField: '1501'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4654',
internalId:  '',
customField: '20091222-212208'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '43532',
internalId:  'aam010in27ij107d8eca278',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '43599',
internalId:  'aam010in27ij107d8eca278',
customField: 'followUp'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4597',
internalId:  '',
customField: '20091011-205227'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4708',
internalId:  '',
customField: '20100213-234333'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '52901',
internalId:  '',
customField: '20090726-194345'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '46301',
internalId:  '',
customField: '20100131-202747'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '43532',
internalId:  '',
customField: '20070722-161136'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '43599',
internalId:  '',
customField: '20051128-230945'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '57601',
internalId:  '',
customField: '20090129-143901'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '51301',
internalId:  '',
customField: '20100219-234745'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '22701',
internalId:  '',
customField: '20070624-005931'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '23728',
internalId:  '',
customField: '20050616-225257'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25401',
internalId:  '',
customField: '20050503-121304'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '26601',
internalId:  '',
customField: '20070624-005716'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '15201',
internalId:  '',
customField: '20080224-150425'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4735',
internalId:  '',
customField: '20040628-022205'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4789',
internalId:  '',
customField: '20040504-011126'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '33401',
internalId:  '',
customField: '20060109-221851'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4816',
internalId:  '',
customField: '20050426-074617'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '10101',
internalId:  '',
customField: '20040316-235017'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '11008',
internalId:  '',
customField: '20040316-225246'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '10128',
internalId:  '',
customField: '20100131-172022'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4897',
internalId:  '',
customField: '20090207-175322'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4924',
internalId:  '',
customField: '20080224-150251'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '12008',
internalId:  '',
customField: '20040319-200435'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '84801',
internalId:  '',
customField: '20091103-223404'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '84822',
internalId:  '',
customField: '20080730-005233'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '84822',
internalId:  '12198041',
customField: 'en:GB:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '91001',
internalId:  '',
customField: '20100120-234340'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '91001',
internalId:  '12456940',
customField: 'en:GB:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '97401',
internalId:  '',
customField: '20091222-210522'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '97901',
internalId:  '',
customField: '20091011-204946'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '97901',
internalId:  '12821590',
customField: 'en:GB:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '102101',
internalId:  '',
customField: '20100131-212202'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010IN27IJ';
var companyName   = 'Rosie+May+Storrie';
var htmlTitle	  = 'Rosie+May+Storrie+Official+Web+Site';
var metaKeywords  = 'Rosie%2C+May%2C+Storrie%2CMemorial+Fund%2CCharity%2C+Rosie+May%2C+Rosie+May+Storrie%2C+murdered%2C+age+10%2CAuction+Bid%2C+volunteer%2C+sri+lanka%2C+Mark+Evans+Eurovision';
var metaContents  = 'news%2C+charity%2C+Rosie+May+Storrie%2C+murder%2C+condolence%2C+memorial+fund%2C+Auction%2C+Bid%2C+volunteer%2C+sri+lanka';
					                                                                    
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 */					                                                            
