﻿jQuery(document).ready(function() {
  
  jQuery("a.navlink").hover(
    function () {
        jQuery(this).addClass("active");
    },
    function () { 
        jQuery(this).removeClass("active");
    });

    // Equal height for the columns
    var highestCol = Math.max(jQuery('#content').height(), jQuery('#left').height(), jQuery('#right').height());
    jQuery('.equalheights').height(highestCol);

    jQuery("a[rel=example_group]").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>';
        }
    });

    jQuery("a#example3").fancybox({
        'transitionIn': 'none',
        'transitionOut': 'none'
    });
});
