var iconSizeCustomX = 28; 
var iconSizeCustomY = 34; 
var shadowSizeCustomX = 51; 
var shadowSizeCustomY = 37; 
var iconAnchorCustomX = 13; 
var iconAnchorCustomY = 27; 
var infoWindowAnchorCustomX = 5; 
var infoWindowAnchorCustomY = 1; 

// Create our "tiny" marker icon
var tinyIcon = new GIcon();
tinyIcon.image = "http://labs.google.com/ridefinder/images/mm_20_red.png";
tinyIcon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
tinyIcon.iconSize = new GSize(12, 20);
tinyIcon.shadowSize = new GSize(22, 20);
tinyIcon.iconAnchor = new GPoint(13, 27);
tinyIcon.infoWindowAnchor = new GPoint(5, 1);

// Set up our GMarkerOptions object literal
markerOptions = { icon:tinyIcon };

// Create our "parking" marker icon
var parkingIcon = new GIcon();
parkingIcon.image = "http://www.matlock.org.uk/wp-content/themes/thesis_18/custom/maps/parking_blue.png";
parkingIcon.shadow = "http://www.matlock.org.uk/wp-content/themes/thesis_18/custom/maps/shadow.png";
//parkingIcon.image = "http://localhost/matlock/wordpress/wp-content/themes/thesis_18/custom/maps/parking_blue.png";
//parkingIcon.shadow = "http://localhost/matlock/wordpress/wp-content/themes/thesis_18/custom/maps/shadow.png";
parkingIcon.iconSize = new GSize(iconSizeCustomX, iconSizeCustomY);
parkingIcon.shadowSize = new GSize(shadowSizeCustomX, shadowSizeCustomY);
parkingIcon.iconAnchor = new GPoint(iconAnchorCustomX, iconAnchorCustomY);
parkingIcon.infoWindowAnchor = new GPoint(infoWindowAnchorCustomX, infoWindowAnchorCustomY);

// Set up our GMarkerOptions object literal
parking = { icon:parkingIcon };

// Create our "wc" marker icon
var wcIcon = new GIcon();
wcIcon.image = "http://www.matlock.org.uk/wp-content/themes/thesis_18/custom/maps/toilets.png";
wcIcon.shadow = "http://www.matlock.org.uk/wp-content/themes/thesis_18/custom/maps/shadow.png";
//wcIcon.image = "http://localhost/matlock/wordpress/wp-content/themes/thesis_18/custom/maps/toilets.png";
//wcIcon.shadow = "http://localhost/matlock/wordpress/wp-content/themes/thesis_18/custom/maps/shadow.png";
wcIcon.iconSize = new GSize(iconSizeCustomX, iconSizeCustomY);
wcIcon.shadowSize = new GSize(shadowSizeCustomX, shadowSizeCustomY);
wcIcon.iconAnchor = new GPoint(iconAnchorCustomX, iconAnchorCustomY);
wcIcon.infoWindowAnchor = new GPoint(infoWindowAnchorCustomX, infoWindowAnchorCustomY);

// Set up our GMarkerOptions object literal
wc = { icon:wcIcon };

// Create our "tourist info" marker icon
var infoIcon = new GIcon();
infoIcon.image = "http://www.matlock.org.uk/wp-content/themes/thesis_18/custom/maps/info.png";
infoIcon.shadow = "http://www.matlock.org.uk/wp-content/themes/thesis_18/custom/maps/shadow.png";
//infoIcon.image = "http://localhost/matlock/wordpress/wp-content/themes/thesis_18/custom/maps/info.png";
//infoIcon.shadow = "http://localhost/matlock/wordpress/wp-content/themes/thesis_18/custom/maps/shadow.png";
infoIcon.iconSize = new GSize(iconSizeCustomX, iconSizeCustomY);
infoIcon.shadowSize = new GSize(shadowSizeCustomX, shadowSizeCustomY);
infoIcon.iconAnchor = new GPoint(iconAnchorCustomX, iconAnchorCustomY);
infoIcon.infoWindowAnchor = new GPoint(infoWindowAnchorCustomX, infoWindowAnchorCustomY);

// Set up our GMarkerOptions object literal
info = { icon:infoIcon };

// Create our "museum" marker icon
var museumIcon = new GIcon();
museumIcon.image = "http://www.matlock.org.uk/wp-content/themes/thesis_18/custom/maps/museum.png";
museumIcon.shadow = "http://www.matlock.org.uk/wp-content/themes/thesis_18/custom/maps/shadow.png";
//museumIcon.image = "http://localhost/matlock/wordpress/wp-content/themes/thesis_18/custom/maps/museum.png";
//museumIcon.shadow = "http://localhost/matlock/wordpress/wp-content/themes/thesis_18/custom/maps/shadow.png";
museumIcon.iconSize = new GSize(iconSizeCustomX, iconSizeCustomY);
museumIcon.shadowSize = new GSize(shadowSizeCustomX, shadowSizeCustomY);
museumIcon.iconAnchor = new GPoint(iconAnchorCustomX, iconAnchorCustomY);
museumIcon.infoWindowAnchor = new GPoint(infoWindowAnchorCustomX, infoWindowAnchorCustomY);

// Set up our GMarkerOptions object literal
museum = { icon:museumIcon };

// Create our "aquarium" marker icon
var aquariumIcon = new GIcon();
aquariumIcon.image = "http://www.matlock.org.uk/wp-content/themes/thesis_18/custom/maps/aquarium.png";
aquariumIcon.shadow = "http://www.matlock.org.uk/wp-content/themes/thesis_18/custom/maps/shadow.png";
//aquariumIcon.image = "http://localhost/matlock/wordpress/wp-content/themes/thesis_18/custom/maps/aquarium.png";
//aquariumIcon.shadow = "http://localhost/matlock/wordpress/wp-content/themes/thesis_18/custom/maps/shadow.png";
aquariumIcon.iconSize = new GSize(iconSizeCustomX, iconSizeCustomY);
aquariumIcon.shadowSize = new GSize(shadowSizeCustomX, shadowSizeCustomY);
aquariumIcon.iconAnchor = new GPoint(iconAnchorCustomX, iconAnchorCustomY);
aquariumIcon.infoWindowAnchor = new GPoint(infoWindowAnchorCustomX, infoWindowAnchorCustomY);

// Set up our GMarkerOptions object literal
aquarium = { icon:aquariumIcon };

// Create our "crafts" marker icon
var craftsIcon = new GIcon();
craftsIcon.image = "http://www.matlock.org.uk/wp-content/themes/thesis_18/custom/maps/crafts.png";
craftsIcon.shadow = "http://www.matlock.org.uk/wp-content/themes/thesis_18/custom/maps/shadow.png";
//craftsIcon.image = "http://localhost/matlock/wordpress/wp-content/themes/thesis_18/custom/maps/crafts.png";
//craftsIcon.shadow = "http://localhost/matlock/wordpress/wp-content/themes/thesis_18/custom/maps/shadow.png";
craftsIcon.iconSize = new GSize(iconSizeCustomX, iconSizeCustomY);
craftsIcon.shadowSize = new GSize(shadowSizeCustomX, shadowSizeCustomY);
craftsIcon.iconAnchor = new GPoint(iconAnchorCustomX, iconAnchorCustomY);
craftsIcon.infoWindowAnchor = new GPoint(infoWindowAnchorCustomX, infoWindowAnchorCustomY);

// Set up our GMarkerOptions object literal
crafts = { icon:craftsIcon };

// Create our "manor" marker icon
var manorIcon = new GIcon();
manorIcon.image = "http://www.matlock.org.uk/wp-content/themes/thesis_18/custom/maps/manor.png";
manorIcon.shadow = "http://www.matlock.org.uk/wp-content/themes/thesis_18/custom/maps/shadow.png";
//manorIcon.image = "http://localhost/matlock/wordpress/wp-content/themes/thesis_18/custom/maps/manor.png";
//manorIcon.shadow = "http://localhost/matlock/wordpress/wp-content/themes/thesis_18/custom/maps/shadow.png";
manorIcon.iconSize = new GSize(iconSizeCustomX, iconSizeCustomY);
manorIcon.shadowSize = new GSize(shadowSizeCustomX, shadowSizeCustomY);
manorIcon.iconAnchor = new GPoint(iconAnchorCustomX, iconAnchorCustomY);
manorIcon.infoWindowAnchor = new GPoint(infoWindowAnchorCustomX, infoWindowAnchorCustomY);

// Set up our GMarkerOptions object literal
manor = { icon:manorIcon };


// create country park icon
var countryParkIcon = new GIcon();
countryParkIcon.image = "http://www.matlock.org.uk/wp-content/themes/thesis_18/custom/maps/countryPark.png";
countryParkIcon.shadow = "http://www.matlock.org.uk/wp-content/themes/thesis_18/custom/maps/shadow.png";
//countryParkIcon.image = "http://localhost/matlock/wordpress/wp-content/themes/thesis_18/custom/maps/countryPark.png";
//countryParkIcon.shadow = "http://localhost/matlock/wordpress/wp-content/themes/thesis_18/custom/maps/shadow.png";
countryParkIcon.iconSize = new GSize(iconSizeCustomX, iconSizeCustomY);
countryParkIcon.shadowSize = new GSize(shadowSizeCustomX, shadowSizeCustomY);
countryParkIcon.iconAnchor = new GPoint(iconAnchorCustomX, iconAnchorCustomY);
countryParkIcon.infoWindowAnchor = new GPoint(infoWindowAnchorCustomX, infoWindowAnchorCustomY);

// Set up our GMarkerOptions object literal
countryPark = { icon:countryParkIcon };


// create theme park icon
var themeParkIcon = new GIcon();
themeParkIcon.image = "http://www.matlock.org.uk/wp-content/themes/thesis_18/custom/maps/themePark.png";
themeParkIcon.shadow = "http://www.matlock.org.uk/wp-content/themes/thesis_18/custom/maps/shadow.png";
//themeParkIcon.image = "http://localhost/matlock/wordpress/wp-content/themes/thesis_18/custom/maps/themePark.png";
//themeParkIcon.shadow = "http://localhost/matlock/wordpress/wp-content/themes/thesis_18/custom/maps/shadow.png";
themeParkIcon.iconSize = new GSize(iconSizeCustomX, iconSizeCustomY);
themeParkIcon.shadowSize = new GSize(shadowSizeCustomX, shadowSizeCustomY);
themeParkIcon.iconAnchor = new GPoint(iconAnchorCustomX, iconAnchorCustomY);
themeParkIcon.infoWindowAnchor = new GPoint(infoWindowAnchorCustomX, infoWindowAnchorCustomY);

// Set up our GMarkerOptions object literal
themePark = { icon:themeParkIcon };


// create bed and breakfast icon
var bedBreakfastIcon = new GIcon();
bedBreakfastIcon.image = "http://www.matlock.org.uk/wp-content/themes/thesis_18/custom/maps/bandb.png";
bedBreakfastIcon.shadow = "http://www.matlock.org.uk/wp-content/themes/thesis_18/custom/maps/shadow.png";
//themeParkIcon.image = "http://localhost/matlock/wordpress/wp-content/themes/thesis_18/custom/maps/themePark.png";
//themeParkIcon.shadow = "http://localhost/matlock/wordpress/wp-content/themes/thesis_18/custom/maps/shadow.png";
bedBreakfastIcon.iconSize = new GSize(iconSizeCustomX, iconSizeCustomY);
bedBreakfastIcon.shadowSize = new GSize(shadowSizeCustomX, shadowSizeCustomY);
bedBreakfastIcon.iconAnchor = new GPoint(iconAnchorCustomX, iconAnchorCustomY);
bedBreakfastIcon.infoWindowAnchor = new GPoint(infoWindowAnchorCustomX, infoWindowAnchorCustomY);

// Set up our GMarkerOptions object literal
bedBreakfast = { icon:bedBreakfastIcon };

// create hotel icon
var hotelIcon = new GIcon();
hotelIcon.image = "http://www.matlock.org.uk/wp-content/themes/thesis_18/custom/maps/hotel.png";
hotelIcon.shadow = "http://www.matlock.org.uk/wp-content/themes/thesis_18/custom/maps/shadow.png";
//themeParkIcon.image = "http://localhost/matlock/wordpress/wp-content/themes/thesis_18/custom/maps/themePark.png";
//themeParkIcon.shadow = "http://localhost/matlock/wordpress/wp-content/themes/thesis_18/custom/maps/shadow.png";
hotelIcon.iconSize = new GSize(iconSizeCustomX, iconSizeCustomY);
hotelIcon.shadowSize = new GSize(shadowSizeCustomX, shadowSizeCustomY);
hotelIcon.iconAnchor = new GPoint(iconAnchorCustomX, iconAnchorCustomY);
hotelIcon.infoWindowAnchor = new GPoint(infoWindowAnchorCustomX, infoWindowAnchorCustomY);

// Set up our GMarkerOptions object literal
hotel = { icon:hotelIcon };

// create cottage icon
var cottageIcon = new GIcon();
cottageIcon.image = "http://www.matlock.org.uk/wp-content/themes/thesis_18/custom/maps/cottage.png";
cottageIcon.shadow = "http://www.matlock.org.uk/wp-content/themes/thesis_18/custom/maps/shadow.png";
//themeParkIcon.image = "http://localhost/matlock/wordpress/wp-content/themes/thesis_18/custom/maps/themePark.png";
//themeParkIcon.shadow = "http://localhost/matlock/wordpress/wp-content/themes/thesis_18/custom/maps/shadow.png";
cottageIcon.iconSize = new GSize(iconSizeCustomX, iconSizeCustomY);
cottageIcon.shadowSize = new GSize(shadowSizeCustomX, shadowSizeCustomY);
cottageIcon.iconAnchor = new GPoint(iconAnchorCustomX, iconAnchorCustomY);
cottageIcon.infoWindowAnchor = new GPoint(infoWindowAnchorCustomX, infoWindowAnchorCustomY);

// Set up our GMarkerOptions object literal
cottage = { icon:cottageIcon };

// Definition of points
var townMatlock = [53.145741,-1.551977,'Matlock'];
var townWirksworth = [53.147811,-1.552677,'Wirksworth'];
var museumCrichTramway = [53.089901,-1.484957,'<a href="http://www.tramway.co.uk/" target="_blank" style="font-size: 1.3em;">Crich Tramway Museum</a>',museum];
var daysOutChatsworth = [53.22975,-1.61027,'<a href="http://www.chatsworth.org/" target="_blank" style="font-size: 1.3em;">Chatsworth House</a>',manor];
var daysOutKedleston = [52.960062,-1.539642,'<a href="http://www.nationaltrust.org.uk/main/w-vh/w-visits/w-findaplace/w-kedlestonhall.htm" target="_blank" style="font-size: 1.3em;">Kedleston Hall</a>',manor];
var daysOutGullivers = [53.118970, -1.563602,'<a href="http://www.gulliversfun.co.uk/gullivers.php?parkname=Matlock_Bath" target="_blank" style="font-size: 1.3em;">Gulliver\'s Kingdom</a>',themePark];
var museumMatlockBathAquarium = [53.121500,-1.562300,'<a href="http://www.matlockbathaquarium.co.uk" target="_blank" style="font-size: 1.3em;">Matlock Bath Aquarium</a>',aquarium];
var museumMatlockBathMining = [53.119175,-1.562562,'<a href="http://www.peakmines.co.uk" target=_blank">Peak District Mining Museum</a>',museum];
var museumMatlockBathLifeInALens = [53.121223,-1.562687,'<a href="http://www.lifeinalens.com" target = "_blank">Life in a Lens Museum</a>',museum];
var craftsRoyceWood = [53.107261,-1.424810,'<a href="http://www.roycewood.com" target="_blank" style="font-size: 1.3em;">Royce Wood </a>handmade tiles and art gallery',crafts];
var craftsDenby = [53.022351,-1.413904,'<a href="http://www.denby.co.uk/" target="_blank" style="font-size: 1.3em;">Denby Factory Shop</a> and visitor centre',crafts];
var craftsDerbyshireCrafts = [53.266779,-1.633042,'Derbyshire Craft Centre',crafts];
var daysOutStoneCentre = [53.094525,-1.575036,'<a href="http://www.nationalstonecentre.org.uk/index.html" target="_blank" style="font-size: 1.3em;">National Stone Centre</a>',countryPark];
var daysOutHeightsOfAbraham = [53.126579,-1.559393,'<a href="http://heightsofabraham.com/" target="_blank" style="font-size: 1.3em;">Heights of Abraham</a>',themePark];
var outdoorsBlackRocks = [53.097947,-1.564157,'Black Rocks Country Park',countryPark];
var outdoorsMatlockFarmPark = [53.175133, -1.536205, '<a href="http://www.matlockfarmpark.co.uk" target="_blank" style="font-size: 1.3em;">Matlock Farm Park</a>',countryPark];
var outdoorsLeaGardens = [53.110731, -1.517761, '<a href="http://leagarden.co.uk/" target="_blank" style="font-size: 1.3em;">Lea Gardens</a>',countryPark];
var touristInfoMatlock = [53.138362, -1.555970,'Matlock Tourist Information',info];
var touristInfoMatlockBath = [53.118990, -1.562350,'Matlock Bath Tourist Information',info];
var parkingMatlockImperialRoad = [53.139779, -1.556319,'Matlock Parking - Imperial Road',parking];
var parkingMatlockEdgefoldRoad = [53.140035, -1.554904,'Matlock Parking - Edgefold Road',parking];
var parkingMatlockBankRoad = [53.139748, -1.553774,'Matlock Parking - Bank Road',parking];
var parkingMatlockBathSouthParade = [53.119530, -1.563000,'Matlock Bath Parking - South Parade',parking];
var parkingMatlockBathNorthParade = [53.121573, -1.557129,'Matlock Bath Parking - North Parade',parking];
var parkingMatlockBathA6 = [53.131368, -1.558792,'Matlock Bath Parking - A6',parking];
var wcMatlockNorth = [53.138090,-1.553837,'WC',wc];
var wcMatlockSouth = [53.135454,-1.551652,'WC',wc];
var wcMatlockBathSouthParade = [53.118800, -1.562000,'WC',wc];

// Define some standard map sizes. Called in posts via the multimedia custom field in the post options
var GSizeXPost = 336;
var GSizeYPost = 300;
var GSizeXPage = 550;
var GSizeYPage = 400;


