var regions = [ { id: 'digitalswitchover', title: 'Digital Switchover', text: '
Place the mouse cursor over an ITV region to view information about the Digital Switchover in your area
' }, { id: 'westcountry', title: 'West Country', text: 'South Devon, including Torbay & South Harns
South West Somerset, West Dorset & South East Devon including Exeter
North Devon
West Cornwall & the Isles of Scilly
East Cornwall & Devon including Plymouth
' }, { id: 'west', title: 'West', text: 'Bristol, parts of Somerset, Dorset, Wiltshire and gloucestershire
The Cheltenham and Gloucester area
' }, { id: 'meridian', title: 'Meridian', text: '
The Brighton area
Much of West Sussex
Parts of Hampshire, Berkshire and Surrey
Hampshire, the Isle of Wight, parts of Dorset and West Sussex
The Tunbridge Wells area
East Sussex
The Hastings area
North and mid Kent
South and east Kent
The Margate area
' }, { id: 'london', title: 'London', text: 'Greater London and parts of the Home Counties
' }, { id: 'anglia', title: 'Anglia', text: 'Cambridgeshire, Northamptonshire and Bedfordshire
Parts of Suffolk and Essex
Norfolk and north Suffolk
' }, { id: 'central', title: 'Central', text: 'North Shropshire and south Cheshire
The Bromsgrove area
The Stratford Upon Avon area
Herefordshire, north Gloucestershire and south Shropshire
The Nottingham area
Much of the West Midlands
Stoke-on-Trent and Newcastle-Under-Lyme
Parts of Derbyshire, Leicestershire, Lincolnshire and south Nottinghamshire
Oxfordshire, parts of Berkshire and Buckinghamshire
' }, { id: 'wales', title: 'Wales', text: 'South Wales
South-West Wales
Anglesey
North-West Wales
North-East Wales
Parts of east and central Wales
Parts of west and central Wales
Cardiff, Newport and south east Wales
' }, { id: 'granada', title: 'Granada', text: 'Cheshire, Liverpool, Lancashire and Manchester
' }, { id: 'yorkshire', title: 'Yorkshire', text: 'The Scarborough area
The Sheffield area
The Chesterfield area
Lincolnshire, parts of Humberside and East Yorkshire
West Yorkshire and South Yorkshire
Much of North Yorkshire and Cleveland
North Northumberland
Durham and Tyneside
' }, { id: 'border', title: 'Border', text: 'Scottish Borders
Dumfries & Galloway, Cumbria & Isle of Man
' }, { id: 'stvcentral', title: 'STV Central', text: 'South west Highlands and Islands
Parts of central Scotland, Argyll and Bute
Rosneath
Glasgow, central Scotland and parts of Edinburgh
Lothian, parts of Edinburgh and parts of Fife
' }, { id: 'stvnorth', title: 'STV North', text: 'The Shetland Islands
The Orkney Islands
Caithness and North Sunderland
Lewis, Wester Ross, north west Sutherland and parts of Harris and Skye
Skye, Harris, North Uist, Benbecula, South Uist and parts of Barra
Angus, Dundee, Perth, and parts of Fife
Aberdeen and Aberdeenshire
Morayshire, Strathspey and parts of Easter Ross
Inverness and the Great Glen
' }, { id: 'ulster', title: 'Ulster', text: 'North west Northern Ireland
South west Northern Ireland
Belfast and the surrounding area
' } ]; $(document).ready(function(){ // Preload var preload = Array(); var data = Array(); $.each(regions,function(i,region){ preload[i] = new Image(); preload[i].src = "/images/library/DSO_"+region.id+".gif"; data[region.id] = region.text; }); $("div#DSOmap_container div#overlay").html(data['digitalswitchover']); // Map Hover $("map[name='DSOiMap'] area").click( function(){ $("div#DSOmap_container img#DSOmap").css("cursor","help").attr("src","/images/library/DSO_"+$(this).attr("id")+".gif"); $("div#DSOmap_container div#overlay").html(data[$(this).attr("id")]); }/*, function(){ $("div#DSOmap_container img#DSOmap").css("cursor","").attr("src","/images/library/DSOMap.gif"); $("div#DSOmap_container div#overlay").html(data['digitalswitchover']); }*/ ); });