/* [nodename, id, name, navigationtext, href, isnavigation, childs[], templatename] */

if (typeof(decodeURIComponent) == 'undefined') {
  decodeURIComponent = function(s) {
    return unescape(s);
  }
}

function jdecode(s) {
    s = s.replace(/\+/g, "%20")
    return decodeURIComponent(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','5101',jdecode('Home'),jdecode(''),'/5101.html','true',[],''],
	['PAGE','5152',jdecode('Products+%26+Services'),jdecode(''),'/5152.html','true',[],''],
	['PAGE','5178',jdecode('Contact'),jdecode(''),'/5178.html','true',[],''],
	['PAGE','5230',jdecode('About+us'),jdecode(''),'/5230/index.html','true',[ 
		['PAGE','5256',jdecode('How+to+find+us'),jdecode(''),'/5230/5256.html','true',[],''],
		['PAGE','5282',jdecode('Our+team'),jdecode(''),'/5230/5282.html','true',[],'']
	],'']];
var siteelementCount=6;
theSitetree.topTemplateName='Enjoy';
theSitetree.paletteFamily='93A6CC';
theSitetree.keyvisualId='2224';
theSitetree.keyvisualName='blanko.jpg';
theSitetree.fontsetId='364';
theSitetree.graphicsetId='415';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='93A6CC';
var theTemplate={
				name: 			'Enjoy',
				paletteFamily: 	'93A6CC',
				keyvisualId: 	'2224',
				keyvisualName: 	'blanko.jpg',
				fontsetId: 		'364',
				graphicsetId: 	'415',
				contentColor: 	'000000',
				contentBGColor: '93A6CC',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'93A6CC',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5101',
internalId:  '',
customField: '20080508-155823'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5152',
internalId:  '',
customField: '20080507-161256'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5178',
internalId:  '',
customField: '20080507-152031'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5230',
internalId:  '',
customField: '20080507-171108'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '5101',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5256',
internalId:  '',
customField: '20080508-132956'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5282',
internalId:  '',
customField: '20080508-135508'
};
var canonHostname = 'coucm4all02.netbenefit.co.uk';
var accountId     = 'ANBT20IN2U2U';
var companyName   = 'Bussens+%26+Parkin+Ltd.+-++I.T+Services';
var htmlTitle	  = 'Bussens+and+Parkin+Ltd.+-++I.T.+Services';
var metaKeywords  = 'Computers%2CPCs%2CLaptops%2CMildenhall%2CRepairs%2CHardware%2CSoftware%2CConsumables%2CMedia%2COn-site%2COn+Site%2CNetworks%2CComputer+Scene%2CUpgrades%2CUpgrade%2CUpgrading%2CUsed+PCs%2CSecond+Hand%2CNotebook%2CMonitor%2CEast+Anglia%2CSuffolk%2CCambridgeshire%2CCambs%2CNorfolk%2CEstimates%2CVat+Free+Scheme%2CVisiting+Forces%2CComputer%2CBussens%2CBussens+and+Parkin%2CBroadband%2CADSL%2CInks%2CPapers%2CCables%2CSoftware%2CCD%2FDVD+Media%2CHard+Drives%2COptical+Drives%2CADSL+Equipment%2CGraphics+Cards%2CMotherboards%2CCPUs%2CSoundcards%2CPSUs%2CHeadphones%2CMics%2CKeyboards%2CMice%2CMemory%2CUSB+Storage+Media%2CDigital+Camera%2CMemory+Cards%2CLaptop+Bags%2CPC+Cases%2CMonitors%2CPrinters%2CDigital+Cameras%2CPen+Drives%2CMemory+Stick%2CFlash+Drive%2CFlash+Media%2CModems%2CTFT%2CFlat+Screen%2CCase+Mods%2CBlue+Ray%2CBlu+Ray%2Cblu-ray%2CBudget%2CBudget+Computers%2CHP%2CH.P%2CHewlett+Packard%2C+Epson%2CCanon%2CLexmark%2CDell%2CPackard+Bell%2Cemachines%2CXerox%2CNetgear%2CD+Link%2CD-Link%2CThomson%2CSpeedTouch%2CLinksys%2CBelkin%2CMicrosoft%2CIntel%2CAMD%2CLinux%2CMac%2CAsrock%2CMSI%2CSweex%2CAbit%2CAsus%2CGigabyte%2CFoxconn%2CTDK%2CVerbatim%2CSony%2CAcer%2CToshiba%2CIBM%2CLenovo%2CTrust%2CLogitech%2CMaxtor%2CSeagate%2CHitachi%2CWestern+Digital%2CKensington%2CLabtec%2CKingston%2CTargus%2CHanns+G%2C+Hannspree%2C+Hannstar%2CJet+Tec%2CLiteon%2CApple%2CDynamode%2CNorton%2CMcAfee%2CBullguard%2CWindows%2CXP%2CVista%2C';
var metaContents  = 'Bussens+and+Parkin+Ltd.+I.+T.+Services+%28previously+known+as+Computer+Scene%29';
					                                                                    
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;                                                                     
	};                                                                               
theSitetree.getByXx = function(lookup, xx, ar) {									 
    if (typeof(ar) == 'undefined')												 
    	ar = this;																	 
    for (var i=0; i < ar.length; i++) {										     
        if (ar[i][xx] == lookup)													 
        	return ar[i];															 
        if (ar[i][POS_CHILDS].length > 0) {										 
        	var result=this.getByXx(lookup, xx, ar[i][POS_CHILDS]);					 
            if (result != null)													 
                return result;													 
        }																			 
    }																				 
    return null;																	 
};																				 
function gotoPage(lookup) {														 
    var page = theSitetree.getHREF(lookup);										 
    if (!page) {																	 
  		var testFor = [ POS_NAME, POS_NAVIGATIONTEXT ];							 
            for (var i=0 ; i < testFor.length ; i++) {							 
                    var p = theSitetree.getByXx(lookup, testFor[i]);				 
                    if (p != null) {												 
                            page = p[POS_HREF];									 
                            break;												 
                    }																 
            }																		 
    }																				 
 document.location.href = (new URL(__path_prefix__ + page, true, true)).toString();
}
/* EOF */					                                                            
