$(function(){
    $("#navigation>ul>li").each(function () {
        $(this).hoverIntent({
            over: function () {
                $(this).addClass("hover");
            },
            timeout: 50,
            out: function () {
                $(this).removeClass("hover");
            }
        });
    });
});

/*
$(function(){
 $("#navigation>ul>li").mouseover(function(){
      $(this).addClass("hover");
    }).mouseout(function(){
      $(this).removeClass("hover");
    });
});
*/



function mycarousel_initCallback(carousel)
      {
        // Disable autoscrolling if the user clicks the prev or next button.
        carousel.buttonNext.bind('click', function() {
          carousel.startAuto(0);
        });
        carousel.buttonPrev.bind('click', function() {
          carousel.startAuto(0);
        });
        // Pause autoscrolling if the user moves with the cursor over the clip.
        carousel.clip.hover(function() {
          carousel.stopAuto();
        }, function() {
          carousel.startAuto();
        });
      };

 
/*** video-popup ***/
$(function() {
$('a.playerModal').nyroModal({bgColor: '#000000', type: 'iframe', width: 480, height: 290, minHeight: 290, autoSizable: false});
});

$(function() {
//  $('#mycarousel').jcarousel({animation: 1000, scroll: 1, auto: 8, wrap: 'last', initCallback: mycarousel_initCallback});
  $("a.nyroModal").nyroModal( {bgColor: '#000000'} ); 
});


     

