NeonMan,
 
$(function() {
    var country = $(".country"),
        popup = $(".country-popup"),
        btn = $(".country-popup-btn");
    function hide() {
        popup.hide();
        country.css("opacity", "0")
    }
    country.hover(function() {
        hide();
        $(this).css("opacity", "1");
        var activeCountry = country.index(this);
        popup.eq(activeCountry).show()
    });
    btn.click(function(event) {
        event.preventDefault();
        hide()
    })
});