/* [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','1508',jdecode('Home'),jdecode(''),'/1508.html','true',[],''],
	['PAGE','55401',jdecode('Book+Printing+Services'),jdecode(''),'/55401/index.html','true',[ 
		['PAGE','115306',jdecode('Book+Printing+Prices+A5'),jdecode(''),'/55401/115306.html','true',[],''],
		['PAGE','144204',jdecode('Book+Printing+Prices+A4'),jdecode(''),'/55401/144204.html','true',[],'']
	],''],
	['PAGE','55101',jdecode('Thesis+%26+Dissertation'),jdecode(''),'/55101.html','true',[],''],
	['PAGE','84106',jdecode('Digital+Printing+Service'),jdecode(''),'/84106.html','true',[],''],
	['PAGE','55701',jdecode('Printers+%26+Finishing'),jdecode(''),'/55701.html','true',[],''],
	['PAGE','55755',jdecode('Library+Bookbinding'),jdecode(''),'/55755/index.html','true',[ 
		['PAGE','78406',jdecode('Newspaper+Binding'),jdecode(''),'/55755/78406.html','true',[],''],
		['PAGE','80406',jdecode('Reference+Re-binding'),jdecode(''),'/55755/80406.html','true',[],'']
	],''],
	['PAGE','55782',jdecode('Book+Conservation'),jdecode(''),'/55782.html','true',[],''],
	['PAGE','111706',jdecode('Estimate+Request'),jdecode(''),'/111706.html','true',[],''],
	['PAGE','55809',jdecode('Contact+Details'),jdecode(''),'/55809.html','true',[],''],
	['PAGE','55836',jdecode('How+to+find+us'),jdecode(''),'/55836.html','true',[],''],
	['PAGE','82106',jdecode('Information'),jdecode(''),'/82106.html','true',[],''],
	['PAGE','55863',jdecode('Bookbinding+Links'),jdecode(''),'/55863.html','true',[],'']];
var siteelementCount=16;
theSitetree.topTemplateName='Collage';
theSitetree.paletteFamily='D43A3A';
theSitetree.keyvisualId='2444';
theSitetree.keyvisualName='bildung.jpg';
theSitetree.fontsetId='404';
theSitetree.graphicsetId='460';
theSitetree.contentColor='2F325F';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Collage',
				paletteFamily: 	'D43A3A',
				keyvisualId: 	'2444',
				keyvisualName: 	'bildung.jpg',
				fontsetId: 		'404',
				graphicsetId: 	'460',
				contentColor: 	'2F325F',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'FFFFFF',
				b_color: 		'D43A3A',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1501']={
webappId:    '1501',
documentId:  '1508',
internalId:  '8949035',
customField: '1501'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '111706',
internalId:  '12458358',
customField: 'en:GB:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1508',
internalId:  '',
customField: '20090703-141415'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '55101',
internalId:  '',
customField: '20090703-123011'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '84106',
internalId:  '',
customField: '20080219-175916'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '55401',
internalId:  '',
customField: '20090703-141243'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '115306',
internalId:  '',
customField: '20090703-124955'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '55701',
internalId:  '',
customField: '20080220-165635'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '55755',
internalId:  '',
customField: '20080520-101654'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '78406',
internalId:  '',
customField: '20071113-143913'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '80406',
internalId:  '',
customField: '20071113-154251'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '55782',
internalId:  '',
customField: '20070330-105533'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '111706',
internalId:  '',
customField: '20080220-172102'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '55809',
internalId:  '',
customField: '20081112-110010'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '55836',
internalId:  '',
customField: '20080314-173658'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '82106',
internalId:  '',
customField: '20080220-170906'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '55863',
internalId:  '',
customField: '20090826-154210'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '1508',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '144204',
internalId:  '',
customField: '20090703-141028'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INVEOW';
var companyName   = 'BOOKBINDING+DIRECT+++++01782+733639';
var htmlTitle	  = 'Thesis+Binding%2C+Dissertation+Binding%2C+Thesis+Binding+Prices%2C+ALL+Universities';
var metaKeywords  = 'Thesis+Binding%2C+Dissertation+Binding%2C+All+Universities%2C+Thesis%2C+Bookbinders%2C+Company%2C+Services%2CDissertation%2CSelf+Publishing%2C+Book+Printers%2CBookbinders%2C+Wiro%2CComb%2CPerfect%2CBinding%2C+Encapsulation%2CBooks%2C+On-Demand%2CPrint+Finishing%2CBookbinders%2C+Book+Printers%2C+Publishers';
var metaContents  = 'Thesis+Binding%2C+Dissertation+Binding%2C+Thesis+Binding+Prices%2C+All+University+Specifications%2C+Thesis+Book+Binding+Service.++Thesis+Printing%2C+UK+Next+Day+Delivery.';
					                                                                    
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 */					                                                            
