// JavaScript Document

jQuery.noConflict();

(function($) { 
  $(function() {
	// jquery scripts run inside noconflict construct for silverstripe compatibility

    $(".carousel").jCarouselLite({
        btnNext: ".next",
        btnPrev: ".prev",
		vertical: true,
		circular: false,
		visible: 3,
		speed: 600
    });
	
	$(".carousel img").fadeTo(1, 0.75); // This sets the opacity of the thumbs to fade down to 60% when the page loads
	$(".carousel img").hover(function(){
		$(this).fadeTo("fast", 1.0); // This should set the opacity to 100% on hover
	},function(){
		$(this).fadeTo("normal", 0.75); // This should set the opacity back to 60% on mouseout
	});
	
	$('ul.sf-menu').superfish({  
		delay: 500,
		animation: {height:'show'},  // slide-down animation 
        speed: 'fast',
        autoArrows: false,
		dropShadows: true
	});

  });
})(jQuery); 