$(document).ready(function(){
  //To switch directions up/down and left/right just place a "-" in front of the top/left attribute
  //Horizontal Sliding
  $('.boxgrid.slideright').hover(function(){
      $(".cover", this).stop().animate({left:'0px'},{queue:false,duration:300});
    }, function() {
      $(".cover", this).stop().animate({left:'-280px'},{queue:false,duration:300});
    });

  //Full Caption Sliding (Hidden to Visible)
  $('.boxgrid.captionfull').hover(function(){
      $(".cover", this).stop().animate({top:'0px'},{queue:false,duration:160});
      }, function() {
      $(".cover", this).stop().animate({top:'-355px'},{queue:false,duration:160});
    });

  $('#coda-slider-routenmodul').codaSlider({
    crossLinking: false,
    dynamicArrows:false,
    dynamicTabsAlign: "right",
    dynamicTabsPosition: "bottom",
  });

  jQuery('body:not(#kurs-1724,#ipad) .routenmodulangebote').jcarousel({
    scroll:3
  });

  $('#coda-slider-deckkabienenmodul').codaSlider({
    crossLinking: false,
    dynamicArrows:false,
    dynamicTabsAlign: "right",
    dynamicTabsPosition: "bottom",
  });

  jQuery('.deckkabienemodul').jcarousel({
    scroll:1
  });

/*
    jQuery('.jcarousel-control a').bind('click', function() {
        carousel.scroll(jQuery.jcarousel.intval(jQuery(this).text()));
        return false;
    });
*/

  $('#startslider').nivoSlider({ 
    effect:'fade',
    animSpeed:1500,
    pauseTime:6000,
    startSlide:0,
    directionNav:false,
    controlNav:true,
    keyboardNav:false,
    pauseOnHover:false
  });

//Full Caption Sliding (Hidden to Visible)
    $('.teaserboxgrid.captionfull').hover(function(){
        $(".cover", this).stop().animate({top:'0px'},{queue:false,duration:115});
    }, function() {
        $(".cover", this).stop().animate({top:'115px'},{queue:false,duration:115});
  });

});
