﻿// This is the default fancy link use in editor. The editor always all link to a fancy box with rel="fancylink" argument. 
// You can change it manually to setup new fancy box layout.
$(document).ready(function () {
  $("a[rel=fancylink]").fancybox({
    'transitionIn': 'none',
    'transitionOut': 'none',
    'speedIn': 200,
    'speedOut': 200,
    'overlayShow': true,
    'autoScale': false,
    'autoDimensions': false,
    'width': 600,
    'height': '75%',
    'showNavArrows': false
  });
});

// This fancy is the default for photos album
$(document).ready(function () {
  $("a[rel=fancyalbum]").fancybox({
    'opacity': true,
    'overlayShow': false,
    'transitionIn': 'elastic',
    'transitionOut': 'elastic',
    'titlePosition': 'outside',
    'titleFormat': function (title, currentArray, currentIndex, currentOpts) {
      return '<span id="fancybox-title-over">' + title  + '</span>';
    }
  });
});

