function storelocatorchange(name){
		
		
		
		
		//array of stores currently on the locator
		//should all have tables with the name as the id
		var stores=new Array();
		var lat=new Array();
		var long=new Array();
		stores[0]="warrington";
		stores[1]="macclesfield";
		stores[2]="nottingham";
		stores[3]="bristol";
		stores[4]="glasgow";
		stores[5]="catford";
		
		lat['warrington']= 53.377648;
		long['warrington']= -2.585243;
		
		lat['macclesfield']= 53.254873;
		long['macclesfield']= -2.122179;
		
		lat['nottingham']= 52.948272;
		long['nottingham']= -1.148114;
	
		lat['bristol']= 51.448338;
		long['bristol']=  -2.583982;

		lat['glasgow']=  55.826842;
		long['glasgow']=  -4.285400;

		lat['catford']=  51.426517;
		long['catford']=  -0.027290;
		

		
		document.getElementById("googlemap").style.visibility="visible";
		
		pagemap.panTo(new GLatLng(lat[name],long[name]));
		pagemap.setZoom(13);
		//if the passed name has an element then make that visible
		//otherwise make the blank element visible
		//on both counts make sure all other elements are not visible
		if(document.getElementById(name+"address")!=null)
		{
			for(i =0; i<stores.length; i++)
			{
				document.getElementById(stores[i]+"address").style.display="none";
				document.getElementById(stores[i]+"opening").style.display="none";
				document.getElementById(stores[i]+"email").style.display="none";
				document.getElementById(stores[i]+"phone").style.display="none";
				
			}
			document.getElementById(name+"address").style.display="block";
			document.getElementById(name+"opening").style.display="block";
			document.getElementById(name+"email").style.display="block";
			document.getElementById(name+"phone").style.display="block";
			
			
		}else{
			for(i =0; i<stores.length; i++)
			{
				document.getElementById(stores[i]+"address").style.display="none";
				document.getElementById(stores[i]+"opening").style.display="none";
				document.getElementById(stores[i]+"email").style.display="none";
				document.getElementById(stores[i]+"phone").style.display="none";
				
			}
			;
			
		}
		pagemap.panTo(new GLatLng(lat[name],long[name]));
		pagemap.setZoom(13);
	}
	

