var poiMiniMapCollection = new Array();

function selectPoiTab(tabName, guiPoiKey) {
mapManager.HideInfoBox();
closeAllPanel();
getById(guiPoiKey + '_tabAddress').className = '';
setDisplayNone(guiPoiKey + '_tabAddressData');
var objTabInfo=getById(guiPoiKey + '_tabInfo');
if(objTabInfo!=null)objTabInfo.className = '';
if(getById(guiPoiKey+'_tabInfoData'))setDisplayNone(guiPoiKey + '_tabInfoData');
getById(guiPoiKey + '_tabMap').className = '';
setDisplayNone(guiPoiKey + '_tabMapData');
getById(guiPoiKey + '_tab' + tabName).className = "active";
setDisplayBlock(guiPoiKey + '_tab' + tabName + 'Data');
}

var currentGuiPoiKeyMiniMap='';
function showPoiMiniMap(guiPoiKey, lat, lon, customIcon) {      
try {
var miniMapKey=guiPoiKey+'_miniMap';
currentGuiPoiKeyMiniMap = guiPoiKey;
if(getInnerHTML(miniMapKey)=="") {
poiMiniMapCollection[guiPoiKey] = new VEMap(miniMapKey);                    
poiMiniMapCollection[guiPoiKey].LoadMap(new VELatLong(lat, lon), 17, VEMapStyle.Hybrid, true);     
poiMiniMapCollection[guiPoiKey].HideDashboard();  
poiMiniMapCollection[guiPoiKey].AttachEvent("onobliqueenter", birdsEyeAvailableMapEntity);
}
}
catch(VEException){}
}

function birdsEyeAvailableMapEntity(e) { 
var miniMapStyleSelect = currentGuiPoiKeyMiniMap + '_miniMapStyleSelect';
var selectObj = getById(miniMapStyleSelect);
selectObj.options[3] = new Option(MESSAGES['map.oblique'], VEMapStyle.Birdseye);
selectObj.options[3].selected=true;
poiMiniMapCollection[currentGuiPoiKeyMiniMap].SetMapStyle(VEMapStyle.Birdseye);
}

function changeStyleMiniMap(objSelect, guiPoiKey) {poiMiniMapCollection[guiPoiKey].SetMapStyle(objSelect.value);}
function doZoomInMiniMap(guiPoiKey) {poiMiniMapCollection[guiPoiKey].ZoomIn();}
function doZoomOutMiniMap(guiPoiKey) {poiMiniMapCollection[guiPoiKey].ZoomOut();}