// JavaScript Document

// global scritp  mods

function mycarousel_initCallback(carousel)
{
    // Disable autoscrolling if the user clicks the prev or next button.
    carousel.buttonNext.bind('click', function() {
        carousel.startAuto();
    });

    carousel.buttonPrev.bind('click', function() {
        carousel.startAuto();
    });

    // Pause autoscrolling if the user moves with the cursor over the clip.
    carousel.clip.hover(function() {
        carousel.stopAuto();
    }, function() {
        carousel.startAuto();
    });
};

jQuery(document).ready(function() {
    jQuery('#mycarousel').jcarousel({
        auto: '5',
        wrap: 'circular',
animation: 'slow',
        initCallback: mycarousel_initCallback
    });
});



// faders

$(document).ready(function(){
  $(".info").fadeTo("slow", 0.6); // This sets the opacity of the thumbs to fade down to 60% when the page loads

  $(".info").hover(function(){
    $(this).fadeTo("slow", 1.0); // This should set the opacity to 100% on hover
  },function(){
       $(this).fadeTo("slow", 0.6); // This should set the opacity back to 60% on mouseout
  });
});

$(document).ready(function(){
  $(".jcarousel-next-horizontal").fadeTo("slow", 0.0); // This sets the opacity of the thumbs to fade down to 60% when the page loads

  $(".jcarousel-next-horizontal").hover(function(){
    $(this).fadeTo("slow", 1.0); // This should set the opacity to 100% on hover
  },function(){
       $(this).fadeTo("slow", 0.0); // This should set the opacity back to 60% on mouseout
  });
});

$(document).ready(function(){
  $(".jcarousel-prev-horizontal").fadeTo("slow", 0.0); // This sets the opacity of the thumbs to fade down to 60% when the page loads

  $(".jcarousel-prev-horizontal").hover(function(){
    $(this).fadeTo("slow", 1.0); // This should set the opacity to 100% on hover
  },function(){
       $(this).fadeTo("slow", 0.0); // This should set the opacity back to 60% on mouseout
  });
});

$(document).ready(function(){
  $(".rollover").fadeTo(8000, 0); // This sets the opacity of the thumbs to fade down to 60% when the page loads

});


