
if(window != window.top){
	top.location.href = location.href;
}

var oElm;

//if(document.getElementById && (oElm = document.getElementById('hUpdateDIV'))){

function urlClick(oLink){

	oTemp = document.getElementById('storeThis');
	oTemp.value = 'test';
	oTemp.form.action = oLink.href;
	oTemp.form.submit();

	return false;

}

function mapClick(value){

	var oElm, html = '';

	if(value && document.getElementById && (oElm = document.getElementById('hUpdateDIV'))){

		switch(value){
		case 'Aberdeen':
		case 'Belfast':
		case 'Birmingham':
		case 'Bristol':
		case 'Cardiff':
		case 'EastMidlands':
		case 'Edinburgh':
		case 'Glasgow':
		case 'Humberside':
		case 'LeedsBradford':
		case 'Liverpool':
		case 'LondonCity':
		case 'Gatwick':
		case 'Heathrow':
		case 'Luton':
		case 'Stansted':
		case 'Manchester':
		case 'Newcastle':
		case 'Norwich':
		case 'Prestwick':
		case 'Teesside':

			window.location = 'guides/'+value.toLowerCase()+'/';

		break;
		case 888:

			html  = '<h4 class="blue">The Hidden Isle</h4>';
			html += '<p class="blue">This section is to pay tribute to the team who made this site possible:</p>';
			html += '<p><h4>Content Writers</h4><span class="special">Hannah Shanks, Gem Smith<br /></span>for finding and writing about however many airports there actually are in this country!?!</p>';
			html += '<p><h4>Link Builders & SEO</h4><span class="special">Funn Shanks, Louise Doherty<br /></span>for promoting this site around the world wide web...</p>';
			html += '<p><h4>Island Shape</h4><span class="special">Caroline Ely<br /></span>for influencing the shape of the hidden isle, Content Writing & doing other projects. </p>';
			html += '<p><h4>Alpha Testing & Servering</h4><span class="special">Ben Kennish<br /></span>for finding bugs ( as usual ;) ) and being our resident server guru...</p>';
			html += '<p><h4>Other Projects & Ideas</h4><span class="special">David Dixon, Paul Maunders,<br /> Brendan McLoughlin<br /></span>for working on other projects, and keeping everything else going...</p>';

		break;
		case 7: // The South

			html  = '<h4 class="blue">The South</h4>';
			html += '<p>';
			html += '<a href="guides/alderney/">Alderney</a><br />';
			html += '<a href="guides/bembridge/">Bembridge (Isle of Wight)</a><br />';
			html += '<a href="guides/blackbushe/">Blackbushe</a><br />';
			html += '<a href="guides/bournemouth/">Bournemouth</a><br />';
			html += '<a href="guides/cambridge/">Cambridge City</a><br />';
			html += '<a href="guides/farnborough/">Farnborough</a><br />';
			html += '<a href="guides/guernsey/">Guernsey</a><br />';
			html += '<a href="guides/sandown/">Sandown (Isle of White)</a><br />';
			html += '<a href="guides/jersey/">jersey</a><br />';
			html += '<a href="guides/kent-international/">Kent International</a><br />';
			html += '<a href="guides/lydd/">Lydd</a><br />';
			html += '<a href="guides/oxford/">Oxford</a><br />';
			html += '<a href="guides/shoreham/">Shoreham</a><br />';
			html += '<a href="guides/southampton/">Southampton</a><br /><br />';
			html += '</p>';

		break;
		case 6: // The West

			html  = '<h4 class="blue">The West</h4>';
			html += '<p>';
			html += '<a href="guides/bristol/">Bristol</a><br />';
			html += '<a href="guides/cardiff/">Cardiff</a><br />';
			html += '<a href="guides/exeter/">Exeter</a><br />';
			html += '<a href="guides/gloucestershire/">Gloucestershire</a><br />';
			html += '<a href="guides/lands-end/">Lands End</a><br />';
			html += '<a href="guides/newquay/">Newquay</a><br />';
			html += '<a href="guides/penzance/">Penzance</a><br />';
			html += '<a href="guides/plymouth/">Plymouth</a><br />';
			html += '<a href="guides/st-marys/">St Marys (Isle of Scilly)</a><br />';
			html += '<a href="guides/swansea/">Swansea</a><br /><br />';
			html += '</p>';

		break;
		case 9: // The North

			html  = '<h4 class="blue">The North</h4>';
			html += '<p>';
			html += '<a href="guides/barrow-in-furness/">Barrow In Furness</a><br />';
			html += '<a href="guides/blackpool/">Blackpool</a><br />';
			html += '<a href="guides/carlisle/">Carlisle</a><br />';
			html += '<a href="guides/durham-tees/">Durham Tees</a><br />';
			html += '<a href="guides/hawarden/">Hawarden</a><br />';
			html += '<a href="guides/humberside/">Humberside</a><br />';
			html += '<a href="guides/isle-of-man/">Isle of Man</a><br />';
			html += '<a href="guides/leeds-bradford/">Leeds Bradford</a><br />';
			html += '<a href="guides/liverpool/">Liverpool</a><br />';
			html += '<a href="guides/manchester/">Manchester</a><br />';
			html += '<a href="guides/newcastle/">Newcastle</a><br />';
			html += '<a href="guides/sheffield city/">Sheffield City</a><br /><br />';
			html += '</p>';

		break;
		case 5: // The Midlands

			html  = '<h4 class="blue">The Midlands</h4>';
			html += '<p>';
			html += '<a href="guides/birmingham/">Birmingham</a><br />';
			html += '<a href="guides/coventry/">Coventry</a><br />';
			html += '<a href="guides/east-midlands/">East Midlands</a><br />';
			html += '<a href="guides/gamston/">Gamston</a><br />';
			html += '<a href="guides/norwich/">Norwich</a><br />';
			html += '<a href="guides/nottingham/">Nottingham</a><br />';
			html += '<a href="guides/wolverhampton-business/">Wolverhampton Business</a><br /><br />';
			html += '</p>';

		break;
		case 8: // The London

			html  = '<h4 class="blue">London</h4>';
			html += '<p>';
			html += '<a href="guides/gatwick/">Gatwick</a><br />';
			html += '<a href="guides/heathrow/">Heathrow</a><br />';
			html += '<a href="guides/luton/">Luton</a><br />';
			html += '<a href="guides/london-biggin-hill/">London Biggin Hill</a><br />';
			html += '<a href="guides/london-city/">London City</a><br />';
			html += '<a href="guides/london-southend/">London Southend</a><br />';
			html += '<a href="guides/stansted/">Stansted</a><br /><br />';
			html += '</p>';

		break;
		case 2: // Ireland

			html  = '<h4 class="blue">Ireland</h4>';
			html += '<p>';
			html += '<a href="guides/cork/">Cork</a><br />';
			html += '<a href="guides/dublin/">Dublin</a><br />';
			html += '<a href="guides/donegal/">Donegal</a><br />';
			html += '<a href="guides/shannon/">Shannon</a><br /><br />';
			html += '</p>';

		break;
		case 1: // Ireland

			html  = '<h4 class="blue">Northern Ireland</h4>';
			html += '<p>';
			html += '<a href="guides/belfast/">Belfast</a><br />';
			html += '<a href="guides/belfast-city/">Belfast City</a><br />';
			html += '<a href="guides/derry/">Derry</a><br /><br />';
			
			html += '</p>';

		break;
		case 4: // Scotland

			html  = '<h4 class="blue">Scotland</h4>';
			html += '<p>';
			html += '<a href="guides/aberdeen/">Aberdeen</a><br />';
			html += '<a href="guides/dundee/">Dundee</a><br />';
			html += '<a href="guides/edinburgh/">Edinburgh</a><br />';
			html += '<a href="guides/glasgow/">Glasgow</a><br />';
			html += '<a href="guides/inverness/">Inverness</a><br />';
			html += '<a href="guides/oban/">Oban</a><br />';
			html += '<a href="guides/prestwick/">Prestwick</a><br />';
			html += '<a href="guides/wick/">Wick</a><br /><br />';
			html += '</p>';

		break;
		case 3: // Scottish Islands

			html  = '<h4 class="blue">Scottish Islands</h4>';
			html += '<p>';
			html += '<a href="guides/barra-north-bay/">Barra North Bay</a><br />';
			html += '<a href="guides/benbecula/">Benbecula</a><br />';
			html += '<a href="guides/campbeltown/">Campbeltown</a><br />';
			html += '<a href="guides/campbeltown/">Islay (Glenegedale)</a><br />';
			html += '<a href="guides/kirkwall/">Kirkwall</a><br />';
			html += '<a href="guides/lerwick/">Lerwick</a><br />';
			html += '<a href="guides/scatsa/">Scatsa</a><br />';
			html += '<a href="guides/stornoway/">Stornoway</a><br />';
			html += '<a href="guides/sumburgh/">Sumburgh</a><br />';
			html += '<a href="guides/tiree/">Tiree</a><br /><br />';
			html += '</p>';

		break;
		default:

			confirm(value);
			html = '... not made yet ...';

		break;
		}

		oElm.innerHTML = html;

	}else{

		window.location = 'airport-list.html?nojs=1';

	}

}

//}


