
// Update the Regional Table with information for the currently highlighted group

function UpdateRegionalTable(strRegion)
{
	var Header = document.getElementById('map').rows[0].cells;
	var Contact = document.getElementById('map').rows[1].cells;
	var Address = document.getElementById('map').rows[2].cells;
	var Telephone = document.getElementById('map').rows[3].cells;
	var Email = document.getElementById('map').rows[4].cells;	
	var Website = document.getElementById('map').rows[5].cells;
	
	//x[0].innerHTML="NEW CONTENT";
	//alert(strRegion);
	
	var strHeader;
	var strContact;
	var strAddress;
	var strTelephone;
	var strEmail;
	var strWebsite;
	
	// Collect the information dependent on the current group hovered over
	switch (strRegion)
	{
		case 'scotland':
			strHeader = 'Scotland Rescue';
			strContact = 'Christine Bula';
			strAddress = '';
			strTelephone = '07769656344';
			strEmail = 'spotdog.1@ntlworld.com';
			strWebsite = '<a href="grouppages">grouppages.aspx?GroupID=7</a>';
			strWebsite = '<a href="javascript:NewWindow(&#39;http://www.staffierescuescotland.co.uk&#39;,&#39;scotlandwebsite&#39;);">www.staffierescuescotland.co.uk</a>';			
			break;
		
		case 'northeast':
			strHeader = "North East Rescue";
			strContact = 'Clive and Audrey Hubery';
			strAddress = '6 Broomside, Coundon, Bishop Auckland, Co Durham DL1 48PX';
			strTelephone = '01388 606 000';
			strEmail = 'nozac.hubery@googlemail.com';
			strWebsite = '<a href="javascript:NewWindow(&#39;http://www.nesbtrescue.piczo.com&#39;,&#39;newebsite&#39;);">www.nesbtrescue.piczo.com</a>';
			break;			
		
		case 'northwest':
			strHeader = "North West Rescue";		
			strContact = 'Barbara Green';
			strAddress = '&nbsp;';
			strTelephone = '01204 573 942';
			strEmail = 'barbara.sbtrescue@btinternet.com';
			strWebsite = '&nbsp;';
			break;		
			
		case 'lincolnshire':
			strHeader = 'Lincs - Membership Secretary'
			strContact = 'Pauline Dallaway';
			strAddress = '104 Pinchbeck Road, Spalding, Lincs, PE11 1QL';
			strTelephone = '01775 720 156';
			strEmail = '';
			strWebsite = '';		
			break;				
		
		case 'leicester':
			strHeader = "Leicester Rescue"
			strContact = 'Norma Vann';
			strAddress = '&nbsp;';
			strTelephone = '01664 840 570';
			strEmail = ' n.vann@btinternet.com';
			strWebsite = '<a href="javascript:NewWindow(&#39;http://www.sbtrescue.com/&#39;,&#39;sbtfun&#39;);">www.sbtrescue.com</a>';		
			break;			
			
		case 'southeast':
			strHeader = "South East Rescue"
			strContact = 'John &amp; Gwen Laker';
			strAddress = 'Shelak Kennels, Denstroude Lane, Blean, Canterbury, Kent, CT2 9JU';
			strTelephone = '01227 471647';
			strEmail = 'john.staffrescue@vfast.co.uk';
			strWebsite = '&nbsp;';
			break;			
			
		case 'guildford':
			strHeader = "Guildford Rescue"		
			strContact = 'David &amp; Alison Oakden';
			strAddress = '&nbsp;';
			strTelephone = '01483 578230';
			strEmail = 'enquiries@guildfordstaffords.org';
			strWebsite = '<a href="javascript:NewWindow(&#39;http://www.guildfordstaffords.org&#39;,&#39;guildfordstaffords&#39;);">www.guildfordstaffords.org</a>';
			break;			
	}
	
	// Update the table
	Header[0].innerHTML=strHeader;
	Contact[0].innerHTML="Contact:";
	Address[0].innerHTML="Address:";
	Telephone[0].innerHTML="Telephone:";	
	Email[0].innerHTML="Email:";
	Website[0].innerHTML="Website:";	
	Contact[2].innerHTML=strContact;
	Address[2].innerHTML=strAddress;
	Telephone[2].innerHTML=strTelephone;	
	Email[2].innerHTML=strEmail;
	Website[2].innerHTML=strWebsite;		
}

// Open a link in a new window
function NewWindow(strPath, strHandle)
{
    window.open(strPath, strHandle);
}
