//development code to write local or main key as appropriate
//remove this in production version

var key = "";
var KEYLOC = 'ABQIAAAA8lQkv2iOkJlITarrjc9DCxTgCngIM803OzdeYYalYWqRlu8c7BRIVhv9DE4lAgLyX42NOcReEo26EQ';
var KEYWWW = 'ABQIAAAA8lQkv2iOkJlITarrjc9DCxSgWxASFTDbFuA6-aShGFUHyljaRRRh45SykBJaraxDVsrkqfSnXK4WLA';
if (window.location.host == 'ferryhousedec08.local') {
 key = KEYLOC;
}
else if (window.location.host == 'localhost') {
 key = KEYLOC;
}
else if (window.location.host == '127.0.0.1') {
 key = KEYLOC;
}
else if (window.location.host == 'ferryhouse.co.uk') {
 key = KEYWWW;
}
else if (window.location.host == 'www.ferryhouse.co.uk') {
 key = KEYWWW;
}
else {
 key = KEYWWW; // this won't work but will generate right error!
}

var keytag = '<script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key='+key+'"  type="text/javascript"></script>';

document.write(keytag);