munten = [];
munten['USD'] = '$';
munten['JPY'] = '&yen;';
munten['GBP'] = '&pound;';

$(document).ready(function() {
    $(".price").mouseover(
        function(event) {
            $.getJSON("currencycalc.php", { value : this.innerHTML }, function(json) {
                html = "";
                for (munt in munten) {
                    symbol = munten[munt]
                    html += symbol + " " + json[munt] + "<br />\n";
                }
                $('#rates').html(html);
            });
            var x = mouseX(event);
            var y = mouseY(event);
            $('#rates').show();
            $('#rates').css({top : y+10, left : x+10, visibility : 'visible' });
        }
    ).mouseout(function() {
        $('#rates').hide();
    });
	$('#container').append("<div id='rates'></div>");
});

