﻿function filter(category) {
   DocHash("Category", category);
   document.location = "/Programs.aspx" + document.location.hash;
   return false;
}

$().ready(function () {
   $(".panel-wrapper").delegate(".boxlarge", "click", function (ev) {
      window.location.href = "Program.aspx?permalink=" + escape($(ev.currentTarget).find(".permalink").attr("href"));
      return false;
   });

   $(".panel-wrapper").delegate(".boxlarge", "mouseenter", function () {
      $(this).find(".desclarge").addClass("current");
   });

   $(".panel-wrapper").delegate(".boxlarge", "mouseleave", function () {
      $(this).find(".desclarge").removeClass("current");
   });

  // function loadPrograms() { };

   $("#go").click(function (evt) {
      evt.preventDefault();
      window.location = "Programs.aspx?category=" + escape(Search.category) + "&tag=" + escape(Search.tag);
   });

   var coda = {
      autoHeight: false,
      autoSlide: false,
      autoSlideInterval: 5000,
      autoSlideStopWhenClicked: true,
      crossLinking: false,
      dynamicArrows: true,
      dynamicArrowLeftText: "<img src='/assets/home/left.png' width='27' height='30' />",
      dynamicArrowRightText: "<img src='/assets/home/right.png' width='27' height='30' />",
      dynamicTabs: false,
      firstPanelToLoad: 1,
      slideEaseDuration: 1000,
      slideEaseFunction: "easeInOutExpo"
   }

   $('#coda-slider-1').codaSlider(coda);
});
