    /*function goMap24() {
     //Load core and wrapper classes and specify a callback method. This method is called when the API is loaded and the map
     //can be shown.
     Map24.loadApi( ["core_api", "wrapper_api"] , map24ApiLoaded );
    }*/
	
	 function goMap24() {
Map24.loadApi( ["core_api", "wrapper_api"] , map24ApiLoaded );
}
//Callback function called when the API is loaded. The map can now be shown.
function map24ApiLoaded(){
	// Set Location for Berlin Charlottenburg
	/*Map24.MapApplication.setStartMapView( {
	 UpperLeftLongitude:  797.840000000042, 
     UpperLeftLatitude: 3153.136779661012, 
     LowerRightLongitude: 800.1770370370796, 
     LowerRightLatitude: 3152.1910169491475 
	});*/
	//Start Debug window
	//Map24.Debug.enable(true, Map24.E_ALL); 
//Initialize mapping client and show map.

Map24.MapApplication.init( { NodeName: "maparea" } );
//add();
addHTMLOb();
addSecondHTMLOb();
centerOn();
}
 

	
	// myLoc = null;
function add()
{ 
   //Create a new location. 
   	myLoc = new Map24.Location({ 
     Longitude: 798.9570370370784,
     Latitude: 3152.738644067793, 
     Description: "Ing. Büro Beccard Filiale Berlin Riedemannweg 14", 
     LogoURL: "http://www.kfz-beccard.de/favicon.ico" 
    }); 
    //Commit the location. Only after calling commit() it is possible 
    //to execute further operations on the location such as hide and show. 
    myLoc.commit(); 
	//myLoc.show();

    //Enable all buttons below the map that enable further interactions. 
} 

      var htmlObj = null; 
      
      //Create the content of the HTML object. 
      var htmlContent = "<strong>Filiale Berlin Charlottenburg</strong><br/>Riedemannweg 14<br />"
+"13627&nbsp;Berlin<br />"
+"<br />"
+"Tel:&nbsp;+49 30 344 50 32<br />"
+"Fax:&nbsp;+49 30 345 49 39<br />"
+"Email:&nbsp;<a href=\"mailto:beccard@kfz-beccard.de\">beccard@kfz-beccard.de</a>";
	   
	   
	    var htmlObj2 = null; 
      
      //Create the content of the HTML object. 

   var htmlContent2 = "<strong>Filiale Großbeeren</strong><br/>Berliner Straße 15<br />"
+"14979&nbsp;Großbeeren<br />"
+"<br />"
+"Tel:&nbsp;+49 33701 74 56 90<br />"
+"Fax:&nbsp;+49 33701 74 56 91<br />"
+"Email:&nbsp;<a href=\"mailto:beccard@kfz-beccard.de\">beccard@kfz-beccard.de</a>";

      function addHTMLOb() { 
       //Create an HTML object at the specified position with the specified content, 
       //bubble layout, and medium size. 
       htmlObj = new Map24.HtmlObject({ 
		Longitude: 798.9570370370784,
     	Latitude: 3152.738644067793,  
        Content: htmlContent, 
        Layout: Map24.MapObject.LAYOUT_BALLOON, 
        Size: Map24.MapObject.SIZE_S 
       }); 

       //Call commit() on the HTML object. The HTML object is shown on the map. 
       htmlObj.commit(); 
      }
	  
function addSecondHTMLOb(){
	 //Create an HTML object at the specified position with the specified content, 
       //bubble layout, and medium size. 
       htmlObj2 = new Map24.HtmlObject({ 
		Longitude: 798.5251851852281,
     	Latitude: 3141.4327118644032,  
        Content: htmlContent2, 
        Layout: Map24.MapObject.LAYOUT_BALLOON, 
        Size: Map24.MapObject.SIZE_S 
       }); 

       //Call commit() on the HTML object. The HTML object is shown on the map. 
       htmlObj2.commit();
}

function centerOn() {
    //Center the map view on the HTML object.
    htmlObj.center( { MinimumWidth: 4000 } );
}

function centerOn2() {
    //Center the map view on the HTML object.
    htmlObj2.center( { MinimumWidth: 4000 } );
}

