/*<![CDATA[*/
$(document).ready(function(){
    
  // Get current navigation link and set active class for styling
  activeNav = $("a[href='/']").parent();
  activeNav.addClass("active");
  $('ul.subnav', activeNav)
    .show()
    .addClass('active');
  
  $("#flickr-stream ul").jqGalScroll({
      speed: 'slow',
      titleOpacity : .0,
      height : 300,
      width : 450
   });
  
  $('.slider-teaser-container').serialScroll({
    items:'li',
    prev:'#slider-prev a',
    next:'#slider-next a',
    //offset:-600, //when scrolling to photo, stop 230 before reaching it (from the left)
    start:0,
    exclude: 2,
    duration:1000,
    force:true,
    stop:true,
    lock:false,
    cycle:true, //don't pull back once you reach the end
    easing:'easeOutQuart', //use this easing equation for a funny effect
    jump: false //click on the images to scroll to them
  });
  
});
/*]]>*/
