function getGoogleMapWithLocations(map_container, data ){
    if (GBrowserIsCompatible()) {
        var map = new GMap2(map_container);

        var customUI = map.getDefaultUI();
        customUI.maptypes.hybrid = false;
        customUI.maptypes.physical = false;
        map.setUI(customUI);

        map.enableContinuousZoom();
        map.enableScrollWheelZoom();

        // nastaveni centru a zoomu podle dat
        var bounds = new GLatLngBounds(new GLatLng(data.min_lat, data.min_lng), new GLatLng(data.max_lat, data.max_lng));
        map.setCenter(bounds.getCenter(), map.getBoundsZoomLevel(bounds));


        items = data.data;

        items.each(function(item, index) {

            useIcon = new GIcon(G_DEFAULT_ICON);

            //console.log(item.type);
            useIcon.image = "/image/marker_"+ item.type +".png";



            var marker = new GMarker(new GLatLng(item.lat, item.lng),
                                    {
                                        title:item.title,
                                        clickable : true,
                                        icon: useIcon

                                    });
            /* Realty */
            customClick = false;
            try {
                if ($defined(marker_click) && $type(marker_click) == 'function'){
                    customClick = true;
                }
            } catch(e){}
            if (customClick){
                GEvent.addListener(marker, "click", function(pos) {
                    marker_click(item.oid);
                });
            }else {
                marker.bindInfoWindowHtml('<div style="width:320px;padding:5px;"><div style="float:left;margin-right:8px;margin-bottom:40px;width:50px;"><img style="border:1px solid #00B2C7;margin-top:3px;" width="50" src="'+item.image+'" align="left" /></div><strong style="color:#00B2C7">'+item.title+'</strong><br /><br /><strong>Cena:</strong> <strong style="color:#ff0000;">'+item.price+'</strong> '+item.price_add+'<br /><br /><span style="float:right;"><a href="/cs/realty/'+ item.oid +'">Více informací &gt;</a></ span><br /></div>');
            }


            if ($defined(marker_out) && $type(marker_out) == 'function'){
                GEvent.addListener(marker, "mouseout", function(pos) {
                    marker_out(item.oid);
                });
            }
            if ($defined(marker_over) && $type(marker_over) == 'function'){
                GEvent.addListener(marker, "mouseover", function(pos) {
                    marker_over(item.oid);
                });
            }


            map.addOverlay(marker);
        });

    }
}

