var map, map2;

function initialize() {
    if (GBrowserIsCompatible()) {
        map = new GMap2(document.getElementById("gmapsk"));

        map.setCenter(new GLatLng(48.163118, 17.177938), 15);
        map.addControl(new GSmallMapControl());

        map.hideControls();

        GEvent.addListener(map, "mouseover", function(){ map.showControls(); });
        GEvent.addListener(map, "mouseout",  function(){ map.hideControls(); });

        map2 = new GMap2(document.getElementById("gmapcz"));

        map2.setCenter(new GLatLng(50.107552, 14.450862), 17);
        map2.addControl(new GSmallMapControl());

        map2.hideControls();

        GEvent.addListener(map2, "mouseover", function(){ map2.showControls(); });
        GEvent.addListener(map2, "mouseout",  function(){ map2.hideControls(); });

        var icon = new GIcon();
        icon.image = "http://img.tempest.sk/images/tempestlogo.png";
        icon.shadow = "http://img.tempest.sk/images/tempesttien.png";
        icon.iconSize = new GSize(100.0, 58.0);
        icon.shadowSize = new GSize(130.0, 58.0);
        icon.iconAnchor = new GPoint(50.0, 29.0);
        icon.infoWindowAnchor = new GPoint(50.0, 29.0);

        map.addOverlay(new GMarker(new GLatLng(48.163118, 17.177938), icon));
	 map2.addOverlay(new GMarker(new GLatLng(50.107552, 14.450862), icon));
   }
}
