﻿/*

AUTHOR:     Jonathan Bourke (jb)
CREATED:    3/07/08

*/

var _map = null; // global variable to hold map instance

function load(lat,lng) {
    // create a MDSMap instance
    _map=new MDSMap($get('mymap'));
    // pass in the key for the session
    _map.UserIDSet($get('UserID').value);
    // load the map - use centre provided
    _map.LoadMap(lat,lng,548, 340, 648, 440);
}

function unload() {
    MDSUnload(); // call to MDSUnload function to destroy everything
}

function original() {
    // reload the original map view
    _map.OriginalView();
}
