jQuery.noConflict();
jQuery(document).ready(function($) { 
	
  // colorbox
  $("a.realisations").colorbox({
    maxWidth: 700,
    maxHeight: 768
  });
  $('a.voir_video').colorbox({
    width:"660px",
    height:"500px",
    iframe: true
  });


  // blink

  var elsToBlink = new Array('.clignotant');
  function animBlink(element, isToogle, durationval)
  {
    newValOpacity = (element.css('opacity') == '1') ? '0.5' : '1';

    element.animate({
      opacity: newValOpacity
    }, {
      duration: durationval,
      specialEasing: {
        opacity: 'easeOutBounce'
      },
      complete: function() {
        if(isToogle == true)
          animBlink(element, true, durationval);
      }
    });
  }

  $.each(elsToBlink,
    function(key, value){
      el = $(value);
      el.css('opacity', '1');
      animBlink(el, true, 1000);
    });

}); 
