function showHide(entry_id) {
	var ec = document.getElementById("extended"+entry_id);
	if ( ec.style.display != 'none' ) {
		ec.style.display = 'none';
	}
	else {
		ec.style.display = '';
	}
}

function winpop(nom_de_la_page, largeur, hauteur)
{
window.open (nom_de_la_page, '', config='height='+hauteur+', width='+largeur+', toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, directories=no, status=no')
}

function signaler(idcmt) {
  winpop('http://www.dontmiss.fr/signaler.php?cmt='+idcmt,400,300);
}

function mycarousel_initCallback(carousel)
{
    // Disable autoscrolling if the user clicks the prev or next button.
    carousel.buttonNext.bind('click', function() {
        carousel.startAuto(0);
    });

    carousel.buttonPrev.bind('click', function() {
        carousel.startAuto(0);
    });

    // Pause autoscrolling if the user moves with the cursor over the clip.
    carousel.clip.hover(function() {
        carousel.stopAuto();
    }, function() {
        carousel.startAuto();
    });
};

jQuery(document).ready(function() {
    jQuery('#mycarousel').jcarousel({
        scroll: 1,
        auto: 2,
        wrap: 'last',
        initCallback: mycarousel_initCallback
    });
});

jQuery(document).ready(function() {
    jQuery('#mycarouselb').jcarousel({
        scroll: 1,
        auto: 2,
        wrap: 'last',
        initCallback: mycarousel_initCallback
    });
});
