	//List of all ids
	var popItems=['cong','CCTV','carpark','PKSMRT','Speed','PIPS','Landmark','cycle','net','netstops','matrix','vms','fr','cr','ue','cp','ts','nr','works','svms','incident'];

	//sidebar arrays
	var congestionMap=[];var carparksMap=[];var cctvMap=[];var speedMap=[];var pipsMap=[];var landmarksMap=[];
	
	var popArray=[];
	//layer management.
	//0=xmldb, 1=sidebarButton, 2=sidebarText, 3=showHide
	//this should be using object literals really
	
	popArray['cong']=[];
	popArray['cong'][0]='/xml/congestion/nottingham.xml';
	popArray['cong'][1]='con';
	popArray['cong'][2]=congestionMap;
	popArray['cong'][3]=false;

	popArray['CCTV']=[];
	popArray['CCTV'][0]='/xml/cctv/cctv.xml';
	popArray['CCTV'][1]='tc';
	popArray['CCTV'][2]=cctvMap;
	popArray['CCTV'][3]=false;

	popArray['carpark']=[];
	popArray['carpark'][0]='/xml/parksmart/nottingham.xml';
	popArray['carpark'][1]='prk';
	popArray['carpark'][2]=carparksMap;
	popArray['carpark'][3]=false;

	popArray['PKSMRT']=[];
	popArray['PKSMRT'][0]='/xml/parksmart/zones.xml';
	popArray['PKSMRT'][1]=false;
	popArray['PKSMRT'][2]=false;
	popArray['PKSMRT'][3]=false;

	popArray['Speed']=[];
	popArray['Speed'][0]='/xml/speed/speedCameras.xml';
	popArray['Speed'][1]=false;
	popArray['Speed'][2]=false;
	popArray['Speed'][3]=false;

	popArray['PIPS']=[];
	popArray['PIPS'][0]='/xml/journeytimes/journeytimes.asp';
	popArray['PIPS'][1]='jt';
	popArray['PIPS'][2]=pipsMap;
	popArray['PIPS'][3]=false;

	popArray['Landmark']=[];
	popArray['Landmark'][0]='/xml/landmarks/landmarks.xml';
	popArray['Landmark'][1]='lmk';
	popArray['Landmark'][2]=landmarksMap;
	popArray['Landmark'][3]=false;

	popArray['cycle']=[];
	popArray['cycle'][0]='/xml/cyclepath/lines.xml';
	popArray['cycle'][1]=false;
	popArray['cycle'][2]=false;
	popArray['cycle'][3]=false;
	
	popArray['net']=[];
	popArray['net'][0]='/xml/tram/lines.xml';
	popArray['net'][1]=false;
	popArray['net'][2]=false;
	popArray['net'][3]=false;
	
	popArray['netstops']=[];
	popArray['netstops'][0]='/xml/tram/stops.xml';
	popArray['netstops'][1]=false;
	popArray['netstops'][2]=false;
	popArray['netstops'][3]=false;
	
	popArray['nr']=[];
	popArray['nr'][0]='/xml/rail/rail.xml';
	popArray['nr'][1]=false;
	popArray['nr'][2]=false;
	popArray['nr'][3]=false;
	
	popArray['matrix']=[];
	popArray['matrix'][0]='/xml/highwaysAgency/matrix.xml';
	popArray['matrix'][1]=false;
	popArray['matrix'][2]=false;
	popArray['matrix'][3]=false;	

	popArray['vms']=[];
	popArray['vms'][0]='/xml/highwaysAgency/vms.xml';
	popArray['vms'][1]=false;
	popArray['vms'][2]=false;
	popArray['vms'][3]=false;
	
	popArray['fr']=[];
	popArray['fr'][0]='/xml/highwaysAgency/futureworks.xml';
	popArray['fr'][1]=false;
	popArray['fr'][2]=false;
	popArray['fr'][3]=false;
	
	popArray['cr']=[];
	popArray['cr'][0]='/xml/highwaysAgency/currentworks.xml';
	popArray['cr'][1]=false;
	popArray['cr'][2]=false;
	popArray['cr'][3]=false;
	
	popArray['ue']=[];
	popArray['ue'][0]='/xml/highwaysAgency/unplanned.xml';
	popArray['ue'][1]=false;
	popArray['ue'][2]=false;
	popArray['ue'][3]=false;
	
	popArray['cp']=[];
	popArray['cp'][0]='/xml/highwaysAgency/currentplanned.xml';
	popArray['cp'][1]=false;
	popArray['cp'][2]=false;
	popArray['cp'][3]=false;
	
	popArray['ts']=[];
	popArray['ts'][0]='/xml/highwaysAgency/journeytimes.xml';
	popArray['ts'][1]=false;
	popArray['ts'][2]=false;
	popArray['ts'][3]=false;
	
	popArray['works']=[];
	popArray['works'][0]='/xml/elgin/elgindata.xml';
	popArray['works'][1]=false;
	popArray['works'][2]=false;
	popArray['works'][3]=false;
	
	popArray['svms']=[];
	popArray['svms'][0]='/xml/vms/nottinghamTesting.xml';
	popArray['svms'][1]=false;
	popArray['svms'][2]=false;
	popArray['svms'][3]=false;
	
	popArray['incident']=[];
	popArray['incident'][0]='/xml/roadworks/incidents/';
	popArray['incident'][1]=false;
	popArray['incident'][2]=false;
	popArray['incident'][3]=false;