/// <reference path="../../JS/jquery-1.4.4.min.js" />

$(function () {
   $(".titelticker-jcarousellite").jCarouselLite({
      vertical: true,
      hoverPause: true,
      visible: 1,
      scroll: 1,
      easing: "easeInBack",
      auto: 2000,
      speed: 1500
   });

   $(".garagedoor a").hover(function () {
      $(this).parent().stop().animate({ backgroundPosition: ('-200px 0px') }, 700, 'swing');
      /*$(this).stop().animate({ fontSize: '13px' }, 250, 'swing');*/
   },
    function () {
       $(this).parent().stop().animate({ backgroundPosition: ('0px 0px') }, { duration: 1000 });
       /*$(this).stop().animate({ fontSize: '13px' }, 250, 'swing');*/
    });

   var galleries = $('.ap-gallery').ApGallery({
      animation_speed: 750,
      enable_keyboard_move: true,
      description_wrapper: $('.ap-image-descr'),
      descriptions: $('.ap-image-descriptions'),
      effect: 'resize',
      callbacks: {
         afterImageVisible: function () {
            $(".ap-image a").fancybox({
               'overlayColor': '#000',
               'overlayOpacity': 0.9
            })
         }
      }
   });
});
