$(document).ready(function() {
  $('#coda-slider-1').codaSlider();

  $("a[rel=fancybox]").fancybox({
    'transitionIn'		: 'none',
    'transitionOut'		: 'none',
    'titlePosition' 	: 'over',
    'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
      return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
    }
  });

  $("a[rel=fancyboxNoArrows]").fancybox({
    'showNavArrows' : false
  });


  $(".fancybox_iFrame").fancybox({
    'width' : '90%',
    'height' : '90%',
    'autoScale' : false,
    'transitionIn' : 'none',
    'transitionOut' : 'none',
    'type' : 'iframe'
  });
  
  


  $(".fancyVideo").fancybox({
    'width' : 645,
    'height' : 390,
    'autoScale' : false,
    'transitionIn' : 'none',
    'transitionOut' : 'none',
    'type' : 'iframe'
  });

  $(".fancyPopup").fancybox({
    'width' : 648,
    'height' : 576,
    'autoScale' : false,
    'transitionIn' : 'none',
    'transitionOut' : 'none',
    'type' : 'iframe'
  });



  $("#pikame").PikaChoose();
  $( "#tabs" ).tabs();
});

$(function(){
  makeScrollable("div.eventsWrapper", "div.events");
});
