<!--
// zoom code written by Paul McGarrick
// paul.mcgarrick@nhsia.nhs.uk

// extended by Pete Otaqui
// pete.otaqui@cfh.nhs.uk

//br_postcode="B65RQ";
//ex_postcode="EX25SE";

imgs = (document.images) ? 1 : 0;
if(imgs){
    loadingPic = new Image(500,310);
    loadingPic.src = 'loading.gif'
}

function change(mapImg,inOut,pCode){
var newMap = "http://uk.multimap.com/clients/gif.cgi?pc=" +pCode+ "&client=nhsia&icon=blue&width=500&height=310&scale="
if(imgs){
    theMap = document.images[mapImg];
    mapString = theMap.src.toString();
    zoom = mapString.substring(mapString.indexOf('scale=')+6, mapString.length)
    scales = new Array('5000','10000','25000','50000','100000','200000','500000','1000000','4000000')
    for(i=0;i<scales.length;i++){
        if(zoom==scales[i])
        break;
        }

if(inOut=='minus'&&i!=8){
    theMap.src = loadingPic.src;
    theMap.src = newMap + scales[i+1];
    }

if(inOut=='plus'&&i!=0){
    theMap.src = loadingPic.src;
    theMap.src = newMap + scales[i-1];
    }
}
else alert('Your browser doesn\'t support zooming in and out on this image')
return false;
}
//-->
