//<![CDATA[
function toggleDiv(divid){
if(document.getElementById(divid).style.display == 'none'){
document.getElementById(divid).style.display = 'block';
}else{document.getElementById(divid).style.display = 'none';
}
}
function createMarker(point,html){
var marker = new GMarker(point,icon);
GEvent.addListener(marker,'click',function(){marker.openInfoWindowHtml(html);});
return marker;
}
function createMarker2(point,html){
var marker = new GMarker(point,hicon);
GEvent.addListener(marker,'click',function(){marker.openInfoWindowHtml(html);});
return marker;
}
function showMarker(marker){ //menu call
GEvent.trigger(marker,"click");
}
function OpenMarker(){ //url call, needs null check?
get_string = document.location.search;
Charindex = get_string.indexOf('=');
if(Charindex != -1){
MarkerName = get_string.substr(Charindex+1,get_string.length - Charindex+1);
GEvent.trigger(eval(MarkerName),"click");
}
}
var icon = new GIcon();
icon.image = "maps/mm_20_red.png";
icon.shadow = "maps/mm_20_shadow.png";
icon.iconSize = new GSize(12, 20);
icon.shadowSize = new GSize(22, 20);
icon.iconAnchor = new GPoint(6, 20);
icon.infoWindowAnchor = new GPoint(5, 1);
var hicon = new GIcon();
hicon.image = "maps/hot.png";
hicon.iconSize = new GSize(18,18);
hicon.iconAnchor = new GPoint(6,20);
hicon.infoWindowAnchor = new GPoint(5,1);

function initialize(){
if(GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map"));
map.addControl(new GLargeMapControl());
map.addControl(new GMapTypeControl());
map.setCenter(new GLatLng(55.94871,-3.197633),15);
var manager = new GAdsManager(map,"ca-pub-8858204890177449");
manager.enable();

var point = new GLatLng(55.948623,-3.198245);
castle = createMarker(point,"<div style='width:300px' class='atr'><img src='/images/edinburgh-castle-night.jpg' alt='Edinburgh Castle' width='300' height='193' border='0'><p><b>Edinburgh Castle</b><br>This beautiful castle can be viewed from all over the city, high on the castle rock. A must see, world famous icon of Edinburgh.<br><a href='http://www.edinburghcastle.gov.uk' target='_blank'>www.edinburghcastle.gov.uk</a></p>");
map.addOverlay(castle);

var point = new GLatLng(55.952394,-3.193282);
scott = createMarker(point,"<div style='width:180px' class='atr'><img src='/images/sir-walter-scott-monument.jpg' alt='Scott&#39;s Monument' width='180' height='280' border='0'><p><b>Sir Walter Scott Monument</b><br><a href='http://en.wikipedia.org/wiki/Scott_Monument' target='_blank'>More Info</a></p>");
map.addOverlay(scott);

var point = new GLatLng(55.950583,-3.185056);
knox = createMarker(point,"<div style='width:250px' class='atr'><img src='/images/john-knox-house-edinburgh.jpg' alt='John Knox&#39;s House' width='250' height='334' border='0'><p><b>John Knox&#39;s House</b><br>Today this old house is a museum. John Knox stayed here a short time before his death. Tour the museum and learn about the man and his role in the Scottish Reformation.</p>");
map.addOverlay(knox);

var point = new GLatLng(55.952672,-3.172313);
holy = createMarker(point,"<div style='width:350px' class='atr'><img src='/images/holyroodhouse-palace.jpg' alt='Holyroodhouse Palace' width='350' height='219' border='0'><p><b>Palace of Holyroodhouse</b><br>Situated at the end of the Royal Mile, Edinburgh. The Palace of Holyroodhouse is The Queen's official residence in Scotland.</p>");
map.addOverlay(holy);

var point = new GLatLng(55.982043,-3.177495);
royal = createMarker(point,"<div style='width:350px' class='atr'><p><b>The Royal Yacht Britannia</b><br>A magnificent ship which has played host to some of the world's most famous people. Former home to The Queen and Royal Family. With onboard audio tours, discover this special royal residence.<br><a href='http://www.royalyachtbritannia.co.uk' tagret='_blank'>www.royalyachtbritannia.co.uk</a></p>");
map.addOverlay(royal);

var point = new GLatLng(55.949263,-3.193755);
mile = createMarker(point,"<div style='width:400px' class='atr'><img src='/images/the-royal-mile.jpg' alt='The Royal Mile' width='400' height='145' border='0'><p><b>The Royal Mile</b><br>This famous street runs through Edinburgh&#39;s Old Town, from Edinburgh Castle down the hill to Holyrood Abbey. The Royal Mile is actually made up a few streets; Castle Esplanade, Castlehill, Lawnmarket, High Street, Canongate and Abbey Strand.</p>");
map.addOverlay(mile);

var point = new GLatLng(55.95213,-3.174893);
parl = createMarker(point,"<div style='width:460px' class='atr'><img src='/images/scottish-parliament.jpg' alt='Scottish Parliament' width='460' height='197' border='0'><p><b>The New Scottish Parliament Building</b><br>Scotland&#39;s new Parliament is situated at one end of Edinburgh&#39;s famous Royal Mile just in front of Holyrood Park. The modern architecture uses a mixture of steel, oak, and granite. Hailed as one of the most innovative designs in Britain today.<br><a href='http://www.scottish.parliament.uk' target='_blank'>www.scottish.parliament.uk</a></p>");
map.addOverlay(parl);

var point = new GLatLng(55.947513,-3.195895);
grass = createMarker(point,"<div style='width:300px' class='atr'><img src='/images/grassmarket.jpg' alt='Grassmarket Edinburgh' width='200' height='262' border='0'><p><b>Grassmarket Area</b><br>Located in the historic Old Town, the Grassmarket area is a vibrant &amp; picturesque area of Edinburgh. With many unique shops and boutiques. Also offering great views upto Edinburgh Castle.<br><a href='/photos/grassmarket'>Photo of Grassmarket</a></p>");
map.addOverlay(grass);

var point = new GLatLng(55.948951,-3.195671);
camera = createMarker(point,"<div style='width:300px' class='atr'><img src='/images/camera-obscura.jpg' alt='Camera Obscura' width='200' height='200' border='0'><p><b>Camera Obscura</b><br>Enjoy breathtaking 360 degree views of Edinburgh. A unique experience that has delighted people for over 150 years. Located at the top of the Royal Mile, near to the entrance of Edinburgh Castle.<br><a href='http://www.camera-obscura.co.uk' target='_blank'>www.camera-obscura.co.uk</a></p>");
map.addOverlay(camera);

var point = new GLatLng(55.946556,-3.164663);
arthur = createMarker(point,"<div style='width:550px' class='atr'><img src='/images/arthurs-seat.jpg' alt='Arthur&#39;s Seat' width='550' height='163' border='0'><p><b>Arthur&#39;s Seat</b><br>Arthur's Seat is the high peak in Holyrood Park. A wild piece of highland landscape in the very centre of Edinburgh. An easy walk to the top of the hill rewards you with excellent views of the city.</p>");
map.addOverlay(arthur);

var point = new GLatLng(55.948704,-3.197665);
tattoo = createMarker(point,"<div style='width:350px' class='atr'><img src='/images/edinburgh-military-tattoo.jpg' alt='The Edinburgh Tattoo' width='350' height='177' border='0'><p><b>The Edinburgh Military Tattoo</b><br>Set against the world famous backdrop of the historic Edinburgh Castle. A floodlit spectacle of light and sound. 12 million people from around the world have filled this famous arena. The 60th <a href='/whats-on#tattoo'>Military Tattoo</a></p>");
map.addOverlay(tattoo);

var point = new GLatLng(55.950077,-3.20303);
gardens = createMarker(point,"<div style='width:350px' class='atr'><img src='/images/princes-street-gardens-edinburgh.jpg' alt='Princes Street Gardens' width='200' height='200' border='0'><p><b>Princes Street Gardens</b><br>A picturesque park in the centre of Edinburgh. The gardens were created in the 1820s after the draining of the Nor Loch and the creation of the New Town</p>");
map.addOverlay(gardens);

var point = new GLatLng(55.943183,-3.267928);
zoo = createMarker(point,"<div style='width:300px' class='atr'><img src='/images/edinburgh-zoo.jpg' alt='Edinburgh Zoo' width='200' height='200' border='0'><p><b>Edinburgh Zoo</b><br>The largest and most exciting wildlife attraction in Scotland. Set in over 82 acres of parkland, with over 180 species of animals, animal talks &amp; shows, children&#39;s play areas and a choice of places to eat, you&#39;re sure to have a great day! The Zoo is situated just 3 miles to the west of Edinburgh city centre, only 15 mins by bus from Princes Street. Open every day of the year from 9:00am.<br><a href='http://www.edinburghzoo.org.uk' target='_blank'>www.edinburghzoo.org.uk</a></p>");
map.addOverlay(zoo);

var point = new GLatLng(55.950945,-3.19568);
national = createMarker(point,"<div style='width:350px' class='atr'><img src='/images/national-gallery-of-scotland.jpg' alt='National Gallery' width='350' height='183' border='0'><p><b>The National Gallery Complex</b><br>One of Scotland&#39;s top free visitor attractions made up of three buildings. The National Gallery of Scotland, Royal Scottish Academy and the Weston Link. Here you can view masterpieces from the early Renaissance to the present day by some of the most important artists in history, as well as portraits of great Scots. With changing special exhibitions, activities and events, and bustling cafés and shops.<br><br><a href='/photos/the-scottish-national-gallery'>Photo</a><br><a href='http://www.nationalgalleries.org' target='_blank'>nationalgalleries.org</a></p>");
map.addOverlay(national);

var point = new GLatLng(55.945812,-3.043503);
racecourse = createMarker(point,"<div style='width:300px' class='atr'><p><b>Musselburgh Racecourse</b><br>25 racedays each year, including both flat and jump meetings. Also 2 harness race meeetings in July.<br><br>Linkfield Rd, Musselburgh, East Lothian EH21 7RG<br><a href='http://www.musselburgh-racecourse.co.uk' target='_blank'>www.musselburgh-racecourse.co.uk</a></p>");
map.addOverlay(racecourse);

var point = new GLatLng(55.9556,-3.193792);
portrait = createMarker(point,"<div style='width:300px' class='atr'><img src='/images/national-portrait-gallery-edinburgh.jpg' alt='National Portrait Gallery Edinburgh' width='250' height='250' border='0'><p><b>The Scottish National Portrait Gallery</b><br>The National Portrait Gallery provides a unique visual history, told through the portraits of those who shaped Scotland. A distinctive landmark building on Edinburgh&#39;s Queen Street, a grand, neo-gothic building in red sandstone.<br><br>Portrait Gallery<br>1 Queen Street, Edinburgh EH2 1JD<br><a href='http://www.nationalgalleries.org/' target='_blank'>www.nationalgalleries.org</a></p>");
map.addOverlay(portrait);

var point = new GLatLng(55.965002,-3.210046);
botanic = createMarker(point,"<div style='width:300px' class='atr'><img src='/images/royal-botanic-garden-edinburgh.jpg' alt='Royal Botanic Garden Edinburgh' width='300' height='171' border='0'><p><b>Royal Botanic Garden Edinburgh</b><br>The Royal Botanic Garden Edinburgh is situated at Inverleith, one mile north of the city centre.<br>20A Inverleith Row, Edinburgh EH3 5LR<br><a href='http://www.rbge.org.uk' target='_blank'>www.rbge.org.uk</a></p>");
map.addOverlay(botanic);

var point = new GLatLng(55.949511,-3.190882);
giles = createMarker(point,"<div style='width:300px' class='atr'><img src='/images/st-giles-edinburgh.jpg' alt='St. Giles Edinburgh' width='300' height='244' border='0'><p><b>St. Giles</b><br>St Giles Cathedral is the historic City Church of Edinburgh. With its famed crown spire it stands on the Royal Mile, between Edinburgh Castle and the Palace of Holyroodhouse.<br><a href='http://www.stgilescathedral.org.uk' target='_blank'>www.stgilescathedral.org.uk</a></p>");
map.addOverlay(giles);

var point = new GLatLng(55.950458,-3.185121);
museum = createMarker(point,"<div style='width:300px' class='atr'><img src='/images/museum-of-childhood-edinburgh.jpg' alt='Museum of Childhood' width='250' height='376' border='0'><p><b>The Museum of Childhood</b><br>Located on the Royal Mile. The museum is a favourite with adults and children alike. It is a treasure house crammed full of objects telling of childhood past and present. Featuring toys and games of all kinds from all over the world.<br>42 High Street, The Royal Mile.<br><a href=\"/photos/museum-of-childhood\">Larger Photo</a></p>");
map.addOverlay(museum);

var point = new GLatLng(55.952259,-3.188245);
waverley = createMarker(point,"<div style='width:250px' class='atr'><img src='/images/edinburgh-waverley.jpg' alt='Edinburgh Waverley' width='250' height='186' border='0'><p><b>Edinburgh Waverley Railway Station</b></p>");
map.addOverlay(waverley);

var point = new GLatLng(55.947232,-3.36422);
airport = createMarker(point,"<div style='width:250px' class='atr'><p><b>Edinburgh Airport</b><br><br><a href='http://www.edinburghairport.com' target='_blank'>www.edinburghairport.com</a></p>");
map.addOverlay(airport);

var point = new GLatLng(55.950542,-3.174389);
dynamic = createMarker(point,"<div style='width:250px' class='atr'><img src='/images/dynamic-earth.jpg' alt='Our Dynamic Earth' width='200' height='140' border='0'><p><b>Our Dynamic Earth</b><br>A visitor attraction in the heart of Edinburgh, telling the unique story of our planet&#39;s past present and future. Discover lots of fascinating facts about our planet.<br><a href='http://www.dynamicearth.co.uk' target='_blank'>www.dynamicearth.co.uk</a></p>");
map.addOverlay(dynamic);

var point = new GLatLng(55.954924,-3.183519);
calton = createMarker(point,"<div style='width:300px' class='atr'><img src='/images/calton-hill.jpg' alt='Calton Hill' width='300' height='152' border='0'><p><b>Calton Hill</b><br>The views from the top of Calton Hill are excellent. A quiet place to visit with fantastic panoramic views of Edinburgh. The National Monument, Nelsons Tower and The Observatory are on Calton Hill.</p><a href=\"/panoramic/panoramic-view-of-edinburgh\">Panoramic View</a>");
map.addOverlay(calton);

var point = new GLatLng(55.942267,-3.240902);
murrayfield = createMarker(point,"<div style='width:400px' class='atr'><img src='/images/murrayfield-stadium.jpg' alt='Murrayfield Stadium' width='400' height='140' border='0'><p><b>Murrayfield Stadium</b><br>The home of Scottish Rugby Union</p>");
map.addOverlay(murrayfield);

var point = new GLatLng(55.947411,-3.195510);
apex = createMarker2(point,"<div style='width:220px' class='atr'><a href='/hotels/4-star-hotels-in-edinburgh'><img src='/hotels/images/apex-city-hotel.jpg' alt='Apex City Hotel' width='220' height='164' border='0'></a><p><b>Apex City Hotel</b><br>Grassmarket Edinburgh<br><a href='/hotels/4-star-hotels-in-edinburgh'>View More Hotels In Edinburgh</a> &raquo;</p>");
map.addOverlay(apex);

var point = new GLatLng(55.945579,-3.218289);
haymarket = createMarker(point,"<div style='width:260px' class='atr'><img src='/images/edinburgh-haymarket-station.jpg' alt='Edinburgh Haymarket' width='250' height='151' border='0'><p><b>Haymarket Rail Station</b><br>Edinburgh's second largest station after <a href=\"javascript:showMarker(waverley);\">Waverley Railway Station</a>.</p>");
map.addOverlay(haymarket);

var point = new GLatLng(55.956973,-3.185276);
playhouse = createMarker(point,"<div style='width:220px' class='atr'><img src='/whats-on/images/edinburgh-playhouse.png' alt='Edinburgh Haymarket' width='163' height='76' border='0'><p>The Edinburgh Playhouse is on Greenside Place, at the top of Leith Walk and close to the east end of Princes Street. Less than 10 minute's walk from <a href=\"javascript:showMarker(waverley);\">Waverley Station</a>.<br><a href=\"http://www.edinburghplayhouse.org.uk\" target=\"_blank\">www.edinburghplayhouse.org.uk</a></p>");
map.addOverlay(playhouse);

var point = new GLatLng(55.949826,-3.190729);
mary = createMarker(point,"<div style='width:220px' class='atr'><img src='/images/mary-kings-close-edinburgh.jpg' alt='Mary King's Close Edinburgh' border='0'><p>Visit this famous Close where you will experience the sights, sounds of an amazing street that time forgot.  Where everyday people went about their day to day lives and where you can now walk in their footsteps.  Perhaps you'll even get to meet them!<br><a href=\"http://www.realmarykingsclose.com\" target=\"_blank\">www.realmarykingsclose.com</a></p>");
map.addOverlay(mary);


//bus tours, bus station, royal mile line


OpenMarker();


}else{
alert("Sorry your browser is not compatible with our google map");
} //comp
} //int

//]]>
