/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


var BLANK_URL = '<?php print $ndd_modif; ?>/js/blank.html';
var BLANK_IMG = '<?php print $ndd_modif; ?>/spacer.gif';
        
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({
        auto: 2,
        wrap: 'last',
        initCallback: mycarousel_initCallback
    });

    //var url = '/swf/fcolor-flash.php?v=developpement-application-iphone.swf';
    //$('#bandeau').click(function(){
    //    fColorBox($(this), url);
    //});
});

/* Fn colobox sur flash */
function fColorBox(url){
    $('#bandeau').colorbox({
        href    : url,
        onClosed:function(){  $('#bandeau').removeClass('cboxElement'); }
    });
}