var tabs = null;


function Setup()
    {
    tabs = new Tabs( document.getElementById( 'tabs' ) );
    tabs.Add( 'Using the Map of<br />Great Britain', TabOneActivate );
    tabs.Add( 'Search by Town', TabTwoActivate );
    tabs.Add( 'Search near a<br />Motorway Junction', TabThreeActivate );
	tabs.Add( 'Search near an<br />Attraction or Venue', TabFourActivate );
    }


function TabOneActivate( paneElement )
    {
    if ( paneElement.innerHTML == '' )
	{
	paneElement.innerHTML = 'Using the Map of Great Britain.\
<br>\
The map of Great Britain is divided into England, Scotland, Wales and Northern Ireland.\
<br>Double click on the country in which you wish to search. When you do this the map \
will change, showing you the counties in that country. There will be a list of counties on the left \
hand side. Just select your county and a detailed map will appear with bed and BnBs marked';
	}
    }


function TabTwoActivate( paneElement )
    {
    if ( paneElement.innerHTML == '' )
	{
	paneElement.innerHTML = 'Finding Bed and Breakfast accommodation by Town.\
<br />\
Enter the first few letters of the town name and press enter or click go. You will be taken to a page\
with a list of the towns beginning with those letters.  Choose the town that you want (Not all United Kingdom\
towns are listed) and click on it.  You will see a map of the town and the associated Bed and Breakfasts.\
You may wish to stay away from the town, so all the B and Bs in the surrounding county are listed.';
	}
    }


function TabThreeActivate( paneElement )
    {
    if ( paneElement.innerHTML == '' )
	{
	paneElement.innerHTML = 'Finding Bed and Breakfast accommodation near a Motorway Junction.\
<br />\
Select the Motorway, say M1 and press enter or click go. You will be taken to a page that \
lists the junctions on this motorway. Select the junction that you want from the list and \
click on it. You will see a map of the area around this junction and the associated Bed and Breakfasts.\
You may wish to stay away from the iunction, so all the BnBs in the surrounding county are listed.';
	}
    }
	
	function TabFourActivate( paneElement )
    {
    if ( paneElement.innerHTML == '' )
	{
	paneElement.innerHTML = 'Finding Bed and Breakfast accommodation near an Attraction or Venue.\
<br />\
Enter the first few letters of the attraction or venue name and press enter or click go. You will be taken to a page\
with a list of the attractions and venues beginning with those letters.  Choose the one that you want (Not all United Kingdom\
attractions and venues are listed) and click on it.  You will see a map of the area and the associated Bed and Breakfasts.\
You may wish to stay away from the area, so all the B and Bs in the surrounding county are listed.';
	}
    }



