/* --------------------------------------------------------- */
  
  function goMap24() {
    Map24.loadApi( ["core_api", "wrapper_api"] , map24ApiLoaded );
  }
  
  function map24ApiLoaded(){ 
    Map24.MapApplication.setStartMapView( { 
      UpperLeftLongitude: 796.0041037037074,
      UpperLeftLatitude: 2814.2697661016955,
      LowerRightLongitude: 994.7100296296333,
      LowerRightLatitude: 2726.9194271186448
    } );          
    Map24.MapApplication.init( { NodeName: "maparea", MapType: "Static" } );  
	// Map24.MapApplication.init( { NodeName: "maparea", MapType: "Applet" } );
	// Map24.MapApplication.init( { NodeName: "maparea" } ); 
	// Map24.MapApplication.controlComponent ( { Control: "HIDE", Component: "TBAR" } );
	// Map24.MapApplication.controlComponent ( { Control: "HIDE", Component: "OV" } );	
	// Map24.MapApplication.controlComponent ( { Control: "HIDE", Component: "SHOWOV" } );
	
	if (document.getElementById("gd") && document.getElementById("gs") && document.getElementById("it")) {
	  Lok(document.getElementById("gd").value, document.getElementById("gs").value, document.getElementById("it").value);
	  }
  }

  function Lok(long, lati, naziv){ 
	myLoc = new Map24.Location({
      Longitude: long,
      Latitude: lati,
	  Description: naziv,
	  SymbolId: 10286,
	  TooltipContent: "<p><b>"+naziv+"</b></p>",
	  TooltipLayout: Map24.MapObject.LAYOUT_PLAIN, //LAYOUT_PLAIN, LAYOUT_BALLOON, and LAYOUT_NONE(default).
	  TooltipSize: Map24.MapObject.SIZE_S,
	  TooltipOpen: "OnClick",  // "OnClick", "OnDblClick", "OnMouseOut", "OnMouseOver"
	  TooltipClose: "OnClick"
    });
    myLoc.commit();
	myLoc.center( { MinimumWidth: 3000 } );
  }  
  
  function LokVec(long, lati, naziv, st){ 
    st=parseInt(st);
    tmpst=75000+st;
	myLoc = new Map24.Location({
      Longitude: long,
      Latitude: lati,
	  Description: naziv,
	  SymbolId: tmpst
	  /*
	  TooltipContent: "<p><b>"+naziv+"</b></p>",
	  TooltipLayout: Map24.MapObject.LAYOUT_PLAIN, //LAYOUT_PLAIN, LAYOUT_BALLOON, and LAYOUT_NONE(default).
	  TooltipSize: Map24.MapObject.SIZE_S,
	  TooltipOpen: "OnClick",  // "OnClick", "OnDblClick", "OnMouseOut", "OnMouseOver"
	  TooltipClose: "OnClick"
	  */
    });
    myLoc.commit();
  }    
   
/* --------------------------------------------------------- */
