
function gotoscheda(url) {
      jQuery.fn.colorbox({ href: url, iframe: true, innerWidth: 1024, innerHeight: 768 });      
}

$(document).ready(function() {

    $('.mercurioOptions').live('click', function() {
        var target = $(this).attr('title');
        var optvalue = $(this).val();
        $.ajax({
            async: false,
            url: "modules/mercurio/lib/get_opt_image.php",
            type: "POST",
            dataType: "json",
            data: ({
            target: target,
            optvalue: optvalue
            }),
            success: function(json){
            if (json.setimage == 'ok') {
                $("#target-img-" + json.idp).attr('src', json.imagepath);
            }
           }
        });
    });


});


