/*
I need to get an Google Map API Key by going to Google enter the domain for which the key will be valid then copy the piece of code in js script tags. enter sensor value of false. Add this scrip to the head of the document in which the map pop up will work.    



1. Go to maps.google.com.
 
2. Important: Click on “Get Directions” to switch to Get Directions mode.
 
3. Type in the street or road, town, and state or province into the “Start address” box. (It is important to leave the “End address” box empty.) Then click the “Get Directions” button.
 
4. A green pushpin will appear on the map. Use your mouse to move it to the approximate location of the marker.
 
5. Zoom in and move the pushpin to the correct side of the road, or wherever the marker may be. In some areas, you may be able to zoom in further and see the marker itself if you switch to Satellite mode. If you see it, move the pushpin right on top of it.
 
6. After you move the pushpin, the latitude and longitude will show up in the “Start address” box, after the text you typed in. You might have to click in the box and use your arrow keys to scroll to the right to see them.
 
7. You can copy and paste them into the Add-A-Marker page fields. Be sure to pick up the decimal and the fraction for each number.
 
8. If there is a negative sign in front of a number, be sure to enter it. Negative latitudes are S, positive latitudes are N; negative longitudes are W, positive latitudes are E.*/

function Mapviewer(){
    Shadowbox.open({
        player:     'html',
        content:    '',
        height:     1000,
        width:      2000,
        options:    {
            onFinish: function(item){
                if(GBrowserIsCompatible()){
                    var body = document.getElementById(Shadowbox.contentId());
                    var map = new GMap2(body);
                    map.setCenter(new GLatLng(50.164486, -5.159511), 15);/*the numbers in the first brackets are co-ords I got using the indtructions above, the second ie. 15 is controls the magnification of the initail map view - i then put these numbers in the next section ie: var point = new and map.setCenter*/
                   
					var point = new GLatLng(50.164486, -5.159511);
map.setCenter(point, 15);
var marker = new GMarker(point);
map.addOverlay(marker);

                  // add some simple controls ie. map view and magnification arrows
					
                    map.addControl(new GSmallMapControl());
                    map.addControl(new GMapTypeControl());
                }
            }
        }
    });
}

