﻿// <![CDATA[
$(document).ready(function () {
  $("a.anchorLink").anchorAnimate()
  if (document.location.hash.length < 1) {
    $("a.home.anchorLink").click();
  }
  $('#pfIllustrations').ContentSlider({
    width: '260px',
    height: '195px',
    speed: 800,
    easing: 'easeInOutBack'
  });
  $('#pfPaintings').ContentSlider({
    width: '260px',
    height: '195px',
    speed: 800,
    easing: 'easeInOutBack'
  });
  $('#pfSketchbook').ContentSlider({
    width: '260px',
    height: '195px',
    speed: 800,
    easing: 'easeInOutBack'
  });
  $(".Illustrations").colorbox({ rel: 'Illustrations' });
  $(".Paintings").colorbox({ rel: 'Paintings' });
  $(".Sketchbook").colorbox({ rel: 'Sketchbook' });
  $(".BooksLestrarlandid").colorbox({ rel: 'BooksLestrarlandid' });
  $(".BooksSegduMerOgSegdu").colorbox({ rel: 'BooksSegduMerOgSegdu' });
  $(".BooksImSoProudOfYou").colorbox({ rel: 'BooksImSoProudOfYou' });
  $("ul.AboutMenu li").click(function () {
    var oToShow = $(this).attr('id').replace("Trigger", "Content");
    if (!($(this).hasClass("On"))) {
      $(".AboutContent").slideUp("fast");
      $(this).addClass("On").siblings().removeClass("On");
      $("#" + oToShow).slideDown("slow");

      $(".ClickByYearNav li.On").removeClass("On");
      $(".AboutContent dd.On").slideUp("fast").removeClass("On");
    }
  });
  $("ul.ClickByYearNav li").click(function () {
    var oToShow = $(this).attr("class") + $(this).html();
    if (!($(this).hasClass("On"))) {
      $(this).siblings().removeClass("On");
      $(this).addClass("On");
      $(".AboutContent dd.On").slideUp("fast").removeClass("On");
      $(".AboutContent dd." + oToShow).slideDown("slow").addClass("On");
    }
  });

});

//]]>
