//<![CDATA[

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);

function showMarker(marker){ //menu
	GEvent.trigger(marker,"click");
}
function createMarker(point,html) {
	var marker = new GMarker(point,icon);
	GEvent.addListener(marker,'click',function(){marker.openInfoWindowHtml(html);});
	return marker;
}	
function OpenMarker(){ //url
	get_string = document.location.search;
	Charindex = get_string.indexOf('=');
	if(Charindex != -1){
		MarkerName = get_string.substr(Charindex+1, get_string.length - Charindex+1);
		varResult = showMarker(eval(MarkerName));
	}
}


function initialize(){
if(GBrowserIsCompatible()){

var map = new GMap2(document.getElementById("map"));
map.addControl(new GLargeMapControl());
map.addControl(new GMapTypeControl());
map.setCenter(new GLatLng(53.404083,-2.98193),15);

var manager = new GAdsManager(map,"pub-8858204890177449");
manager.enable();


var point = new GLatLng(53.408841,-2.98017);
hall = createMarker(point,"<span class='v12'><a href=\"movies/st-georges-hall-liverpool.htm\"><img src=\"movies/georges-hall-and-empire-theatre.jpg\" width=530 height=172 border=0></a><p><b>St Georges Hall</b>  - <a href=\"movies/st-georges-hall-liverpool.htm\">View 360 movie of St Georges Plateau</a></span>");
map.addOverlay(hall);

var point = new GLatLng(53.407575,-2.978212);
lime = createMarker(point,"<span class='v12'><img src='photos/lime-street.jpg' width='350' height='266' border='0' alt='Lime St Station'><p><b>Lime Street Station</b><br><a href='http://www.merseyrail.org' target='_blank'>www.merseyrail.org</a></span>");
map.addOverlay(lime);

var point = new GLatLng(53.400347,-2.992573);
albert = createMarker(point,"<span class='v12'><a href=\"liverpool-tourist-attractions.htm#albert_dock\"><img src=\"movies/albert-dock-thumb.jpg\" width=530 height=172 alt='The Albert Dock, Liverpool' border='0'></a><p><a href=\"liverpool-tourist-attractions.htm#albert_dock\">Albert Dock</a> - The most visited attraction in Liverpool!</span>");
map.addOverlay(albert);

var point = new GLatLng(53.40068,-2.994273);
tate = createMarker(point,"<span class='v12'><a href=\"liverpool-tourist-attractions.htm#tate\"><img src=\"movies/albert-dock-tate-thumb.jpg\" width=530 height=172 alt='Albert Dock' border='0'></a><p><a href=\"liverpool-tourist-attractions.htm#tate\">The Tate Art Gallery, Albert Dock, Liverpool</a></span>");
map.addOverlay(tate);

var point = new GLatLng(53.409949,-2.979516);
walker = createMarker(point,"<span class='v12'><img src='photos/ben-johnson.jpg' width='350' height='199' alt='Artist Ben Johnson - Painting of Liverpool'><p><b><a href=\"liverpool-tourist-attractions.htm#walker\">The Walker Art Gallery</b></a></span>");
map.addOverlay(walker);

var point = new GLatLng(53.406069,-2.987691);
cavern = createMarker(point,"<span class='v12'><p align='center'><object width='425' height='355'><param name='movie' value='http://www.youtube.com/v/bmGUh-19Jqg&rel=0&color1=0xd6d6d6&color2=0xf0f0f0&border=0'></param><param name='wmode' value='transparent'></param><embed src='http://www.youtube.com/v/bmGUh-19Jqg&rel=0&color1=0xd6d6d6&color2=0xf0f0f0&border=0' type='application/x-shockwave-flash' wmode='transparent' width='425' height='355'></embed></object><p>Paul McCartney and David Gilmour, live at <a href=\"liverpool-tourist-attractions.htm#cavern\">The Cavern Club</a></p></span>");
map.addOverlay(cavern);

var point = new GLatLng(53.4098,-2.981806);
world_museum = createMarker(point,"<span class='v12'><a href=\"liverpool-tourist-attractions.htm#world\"><img src=\"photos/world-museum.jpg\" width=250 height=376 border=0 alt='The World Museum'></a><p><a href=\"liverpool-tourist-attractions.htm#world\">The World Museum</a></span>");
map.addOverlay(world_museum);

var point = new GLatLng(53.409744,-2.978156);
empire = createMarker(point,"<span class='v12'><img src='photos/empire-theatre-liverpool.jpg' width=400 height=299 alt='Liverpool Empire Theatre'><p><b>Liverpool Empire Theatre</b><br><a href=\"/whats-on\">What's On In Liverpool</a></span>");
map.addOverlay(empire);

var point = new GLatLng(53.404247,-2.983864);
bluecoat = createMarker(point,"<span class='v12'><img alt=\"The Bluecoat Liverpool\" src=\"/whats-on/images/the-bluecoat-art-gallery.jpg\"><p><img src=\"whats-on/images/the-bluecoat-liverpool.gif\" width='234' height='30' alt='The Bluecoat' border='0'><p><a href=\"liverpool-tourist-attractions.htm#bluecoat\"><b>The Bluecoat Gallery</b><br>Arts space, exhibitions, workshops, shop and cafe.</a></span>");
map.addOverlay(bluecoat);

var point = new GLatLng(53.406417,-2.982592);
playhouse = createMarker(point,"<span class='v12' style='width:400px'><img src=\"/images/playhouse-liverpool.jpg\" border=\"0\" alt=\"Playhouse Liverpool\"><p><b>Liverpool Playhouse Theatre</b><br>Williamson Square, Liverpool L1 1EL<br><a href=\"http://www.everymanplayhouse.com\" target='_blank'>www.everymanplayhouse.com</a></p></span>");
map.addOverlay(playhouse);

var point = new GLatLng(53.405629,-2.996285);
liver = createMarker(point,"<span class='v12'><img src=\"hotels/images/liver-building.jpg\" alt='The Liver Building' width=212 height=212 border=0><p><b>The Liver Building</b></span>");
map.addOverlay(liver);

var point = new GLatLng(53.39688,-2.991039);
echo_arena = createMarker(point,"<span class='v12'><a href=\"liverpool-echo-arena\"><img src=\"photos/echo-arena.jpg\" width='160' height='241' border='0' alt='Liverpool Arena'></a><p><b>The Liverpool Echo Arena<br>&amp; Convention Centre</b><br><a href=\"liverpool-echo-arena\">What's On Listings</a></span>");
map.addOverlay(echo_arena);

var point = new GLatLng(53.337293,-2.854729);
liverpool_airport = createMarker(point,"<span class='v12'><b>Liverpool John Lennon Airport</b><br><a href=\"http://www.liverpoolairport.com\">www.liverpoolairport.com</a></span>");
map.addOverlay(liverpool_airport);

var point = new GLatLng(53.40343,-2.995818);
museum = createMarker(point,"<span class='v12'><img src=\"photos/museum-of-liverpool\" width=450 height=187><p><b>Museum of Liverpool</b> - Opening In 2010</span>");
map.addOverlay(museum);

var point = new GLatLng(53.399145,-2.991776);
beatles_story = createMarker(point,"<span class='v12'><a href=\"liverpool-tourist-attractions.htm#beatles\"><img src='photos/beatles-story.jpg' width=269 height=189 border='0'></a><p><a href=\"liverpool-tourist-attractions.htm#beatles\"><b>The Beatles Story Exhibition</b></a></span>");
map.addOverlay(beatles_story);

var point = new GLatLng(53.401185,-2.970179);
philharmonic_hall = createMarker(point,"<span class='v12'><b>Philharmonic Hall</b><br>Royal Liverpool Philharmonic<br>Hope Street<br>Liverpool L1 9BP<br><a href=\"http://www.liverpoolphil.com\" target='_blank'>www.liverpoolphil.com</a></span>");
map.addOverlay(philharmonic_hall);

var point = new GLatLng(53.404649,-2.968731);
Metropolitan = createMarker(point,"<span class='v12'><img src='photos/liverpool-metropolitan-cathedral.jpg' width='300' height='254' border='0' alt='Liverpool Metropolitan Cathedral'><p><b>Liverpool Metropolitan Cathedral</b><br><a href='http://www.liverpoolmetrocathedral.org.uk' target='_blank'>www.liverpoolmetrocathedral.org.uk</a></span>");
map.addOverlay(Metropolitan);

var point = new GLatLng(53.397654,-2.973293);
Cathedral = createMarker(point,"<span class='v12'><img src='photos/liverpool-anglican-cathedral.jpg' width='350' height='228' border='0' alt='Liverpool Anglican Cathedral'><p><b>Liverpool Anglican Cathedral</b><br><a href=\"http://www.liverpoolcathedral.org.uk\" target='_blank'>www.liverpoolcathedral.org.uk</a></span>");
map.addOverlay(Cathedral);

var point = new GLatLng(53.399492,-2.972341);
lipa = createMarker(point,"<div class='v12'><b>The Liverpool Institute for Performing Arts</b><br>Mount Street<br> Liverpool L1 9HF<br><a href=\"http://www.lipa.ac.uk\" target='_blank'>www.lipa.ac.uk</a></div>");
map.addOverlay(lipa);

var point = new GLatLng(53.406504,-2.985342);
met = createMarker(point,"<div class='v12'><a href=\"shops-in-liverpool.htm#met\"><img src='shopping/metquarter-liverpool.jpg' width='300' height='451' border='0' alt='The MetQuarter Liverpool'></a><p><a href=\"shops-in-liverpool.htm#met\"><b>The Met Quarter</b></a></div>");
map.addOverlay(met);

var point = new GLatLng(53.402209,-2.977678);
fact = createMarker(point,"<div class='v12'><a href=\"http://www.liverpool-360.co.uk/liverpool-tourist-attractions.htm#fact\"><img src='whats-on/images/fact-liverpool.jpg' width='200' height='274' border='0' alt='FACT Liverpool'></a><p><b>FACT</b><br>Cinemas & Galleries<br><a href=\"http://www.liverpool-360.co.uk/liverpool-tourist-attractions.htm#fact\">More Info</a></div>");
map.addOverlay(fact);

var point = new GLatLng(53.469708,-3.039179);
crosby = createMarker(point,"<div class='v12'><a href='movies/crosby-beach.htm'><img src='movies/crosby-beach.jpg' width='530' height='172' border='0' alt='Crosby Beach'></a><p><b>Crosby Beach</b><br><i>'Another Place'</i> - Cast Iron Sculptures by artist Antony Gormley<br><a href=\"movies/crosby-beach.htm\">View 360 Movie</a> (QuickTime 1.3mb)</div>");
map.addOverlay(crosby);

var point = new GLatLng(53.431101,-2.960327);
liverpoolfc = createMarker(point,"<div class='v12'><img src='photos/liverpool-fc.jpg' width='150' height='194' border='0' alt='Liverpool FC'><p><b>Liverpool Football Club</b><br>Including Museum & Stadium Tour<br><a href=\"http://www.liverpoolfc.tv\" target='_blank'>www.liverpoolfc.tv</a></div>");
map.addOverlay(liverpoolfc);

var point = new GLatLng(53.403059,-2.969382);
everyman = createMarker(point,"<div class='v12'><img src='photos/everyman-liverpool.jpg' width='300' height='227' border='0' alt='Everyman'><p><b>Everyman Theatre</b><br>Hope St, Liverpool L1 9BH<br>Box Office Tel: 0151 709 4776</div>");
map.addOverlay(everyman);

var point = new GLatLng(53.438742,-2.966362);
evertonfc = createMarker(point,"<div class='v12'><b>Everton Football Club</b><br>Goodison Park, Goodison Rd<br>Liverpool. L4 4EL<br><a href=\"http://www.evertonfc.com\" target='_blank'>www.evertonfc.com</a></div>");
map.addOverlay(evertonfc);

var point = new GLatLng(53.406374,-2.985092);
tourist_info = createMarker(point,"<div class='v12'><b>08 Place</b><br>Liverpool City Centre Tourist Information Centre<br>Get Event Information, Tickets, Gifts and Souvenirs.</div>");
map.addOverlay(tourist_info);

var point = new GLatLng(53.403449,-2.986715);
liverpool_one = createMarker(point,"<div class='v12' style='width:532px'><img src='/shopping/paradise-street-liverpool.jpg' alt='Liverpool ONE' width='532' height='356'><p><b>Liverpool ONE</b><br>A &pound;900 million investment, 30 new buildings, 20 different architects, new shops – lots of them – apartments, hotels, restaurants, cafés, bars and civic space: all the ingredients that go to make up modern city living. It\’s called Liverpool ONE!<br><a href='http://www.liverpool-one.com' target='_blank'>www.liverpool-one.com</a></p></div>");
map.addOverlay(liverpool_one);

var point = new GLatLng(53.475245,-2.952093);
aintree = createMarker(point,"<div class='v12' style='width:400px'><img src='/whats-on/images/the-grand-national-2009.jpg' alt='The Grand National' width='400' height='292'><p><b>Aintree Racecourse</b><br>Home of The Grand National</p></div>");
map.addOverlay(aintree);

var point = new GLatLng(53.394758,-2.9791);
cuc = createMarker(point,"<div class='v12' style='width:300px'><img src='/whats-on/images/cuc-liverpool.jpg' alt='CUC Liverpool' width='250' height='250'><p><b>Contemporary Urban Centre</b><br>Greenland Street, Liverpool L1 0BS</p></div>");
map.addOverlay(cuc);


/*
var polygon = new GPolygon([
    new GLatLng(lat, lon - lonOffset),
    new GLatLng(lat + latOffset, lon),
    new GLatLng(lat, lon + lonOffset),
    new GLatLng(lat - latOffset, lon),
    new GLatLng(lat, lon - lonOffset)
  ], "#f33f00", 5, 1, "#ff0000", 0.2);
  map.addOverlay(polygon);
*/



OpenMarker();
		//town hall
		//links to everton and liverpool fc?
		//University
		//John Moores
		//Calderstones Park
		//conservation centre


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

} //init
} //compat

//]]>