// Image pre-load
pic1 = new Image(300,350);
pic1.src = "img/map/anglia.gif";

pic2 = new Image(300,350);
pic2.src = "img/map/east-midlands.gif";

pic3 = new Image(300,350);
pic3.src = "img/map/london.gif";

pic4 = new Image(300,350);
pic4.src = "img/map/north-east.gif";

pic5 = new Image(300,350);
pic5.src = "img/map/north-west.gif";

pic6 = new Image(300,350);
pic6.src = "img/map/scotland.gif";

pic7 = new Image(300,350);
pic7.src = "img/map/south-east.gif";

pic8 = new Image(300,350);
pic8.src = "img/map/south-west.gif";

pic9 = new Image(300,350);
pic9.src = "img/map/wales.gif";

pic10 = new Image(300,350);
pic10.src = "img/map/west-midlands.gif";

pic11 = new Image(300,350);
pic11.src = "img/map/ireland.gif";

$(function() {
$(".map-select")
        .mouseover(function() {

            imgsrc = $(this).attr('href');
            imgsrc = "img/map/" + imgsrc.substr(0, imgsrc.length - 5 );
            imgsrc = imgsrc + ".gif";
            $("#uk-map").attr("src", imgsrc );

        })
        .mouseout(function() {

            imgsrc = $(this).attr('href');
            imgsrc = "img/map/uk-map.gif";
            $("#uk-map").attr("src", imgsrc );

        });
});
