var tabPub = new Array(); //Variable de stoackage du tableau de pubs

$(document).ready(function() {
    jQuery.getJSON('http://publicite.editions-lariviere.fr/ecommerce-publicite/publicite-json.php?callback=?',
        {pubs: tabPub},
        function(data) {
            jQuery.each(data, function(k,v) {
                jQuery('#'+k).writeCapture().html(v);
            });
        }
    );

    jQuery('#jcarousel-telex').jcarousel({
        auto: 5,
        scroll: 1,
        wrap: 'circular',
        animation: 'slow',
        initCallback:   function mycarousel_initCallback(carousel) {
                            carousel.clip.hover(function() {
                                carousel.stopAuto();
                            }, function() {
                                carousel.startAuto();
                            });
                        }

    });
});

function afficher_zoom(id) {
    document.getElementById('div_calendrier_evenement_desc_' + id + '_zoom').style.display = "inline";
}
function masquer_zoom(id) {
    document.getElementById('div_calendrier_evenement_desc_' + id + '_zoom').style.display = "none";
}
