function mapmove(x,y,z){

 myMap.Jump(x,y,z);
 myMap.Init()
}

function displayMap()
{
//document.getElementById("maindisplay").style.display='none';
//document.getElementById("spnMap").style.display='';
// NOTE: Jump to "MAIN AREA" comment below, first we have some support function
// set up the main map window
myMap = new CAatMap();
myMap.SetModeButtons(true)
//myMap.SetPointsButtons(false)
// This is where the navigation images (N,E,S,W,Slider,etc) are found
myMap.SetImageBase("http://www.streetmaps.co.za/img/");
// Copyright notice branded on the map
myMap.SetCopyright("&copy; 2007 AAT and BCX");
// Logo used for branding; width and height need to be specified
//myMap.SetBranding("http://www.streetmaps.co.za/img/aat_logo.png",48,34);
// Define the DIV the map will live in
myMap.SetOutput("map1");
// Add a map layer, level 500 (higher is lower down)
var newlayer = myMap.AddLayer("map",400);

// Turn off the "points" button, won't be used in this example
myMap.SetPointsButtons(false);

// Set a starting point for the map
myMap.Jump(24.75,-28.5,5.12);

// co-ordinates displayed with mouse click
//myMap.ClickCallback=ClickCallback;

myMap.SetShowProgress (true);

myMap.GetTileZoom ();

// Start in Aerial view
newlayer.SetType("map");
  //start in Hybrid mode add 3 lines below
//newlayer.SetType("sat");
//newlayer = myMap.AddLayer("map",499);
//newlayer.SetType("hyb");

// Create a points layer, z-level=1, right at the top
//points=myMap.AddLayer("point",1);
// Add a point
// Set up a function to be called when the map is redrawn.  We'll use it to populate with dynamic points
//myMap.RedrawCallback=RedrawCallback;
// Accept all settings, and start the mappiddng subsystem

myMap.Init()
}

//function ClickCallback(map,x,y)
//{
//   alert("you selected the following co-ordinates : x:" + x + " y:" + y)
//}