/*
*  create the map and a control
*/
function startMap(){
	
	//Crea el nuevo mapa  con las cordenadas definidas
		myMap = new MQA.TileMap(document.getElementById('mapa'),6,new MQA.LatLng(26.20463,-98.168815),"map");

	// Create a new Large Zoom control
                 myLZControl = new MQA.LargeZoomControl;

	//tell the map to display the control we just attached
                 myMap.addControl(myLZControl);

	//Create a map view type control
		myVControl = new MQA.ViewControl(myMap);
	
	/*Display control - use the Corner placement constant to specify
	which corner, plus an MQA.Size object to specify X and Y "indent"
	offset*/

		myMap.addControl(myVControl, new MQA.MapCornerPlacement(MQA.MapCorner.BOTTOM_RIGHT, new MQA.Size(20,20)));
	 	var newCenterLL = new MQA.LatLng(26.20463,-98.168815);
		myMap.setCenter(newCenterLL);
	
	//Create a new MQA.Poi object and set its location
		 myPoint = new MQA.Poi(newCenterLL);
	
	//set any rollover and pop-up text
 		myPoint.setValue('infoTitleHTML','Cherokee Trucks & Equipment');
	 	myPoint.setValue('infoContentHTML','1102 E. Expressway 83 Pharr, Texas 78577, T. 956-283-1115 - Fax. 956-283-1625');

 	//you can set a Key value to help keep track of the POIs you put on the map
		 myPoint.setValue('key','1A');
 	
	//Add the POI to the map
 		myMap.addShape(myPoint);
}


