jQuery(window).load(function() {
	jQuery('#slider').nivoSlider({
		effect:'fade',
		controlNav:false,
		animSpeed:700,
		directionNav:true,
		startSlide:0,
		pauseOnHover:true,
	});
});
// Carousels
jQuery(document).ready(function() {
    jQuery('#mycarousel').jcarousel({ 
	wrap: 'circular',
	visible: 4,
	vertical: false
	});
});
	
jQuery(document).ready(function() {
    jQuery('#usp-jcarousel').jcarousel({ 
      wrap: 'circular',
      visible: 4,
      vertical: false
    });
});

jQuery(document).ready(function() {
    jQuery('#logo-jcarousel').jcarousel({ 
      wrap: 'circular',
      visible: 4,
      vertical: false
    });
});
	
	
	$(document).ready(function() {
	    $("a.fancyvideo.").fancybox({
	        overlayShow: true,
	        frameWidth:640,
	        frameHeight:360
	    });
	});
	
	
	$(document).ready(function() {
	    $("a.product-popup").fancybox({
	        overlayShow: true,
	        frameWidth:700,
	        frameHeight:700

	    });
	});
	
	$(document).ready(function() {
	    $("a.product-image").fancybox({
	        overlayShow: true

	    });
	});
	
$(document).ready(function() {
	  $("a.product-image-link1").click(function() {
	    	$('.big-image1').show();
	    		$('.big-image2').hide();
	    		$('.big-image3').hide();
	    		$('.big-image4').hide();
	    		$('.big-image5').hide();
	    		$('.big-image6').hide();
	    	
	    	$('.big-image1').removeClass('dont-display-big-image');
	    	return false;
	  });
	  $("a.product-image-link2").click(function() {
			$('.big-image2').show();
				$('.big-image1').hide();
				$('.big-image3').hide();
				$('.big-image4').hide();
				$('.big-image5').hide();
				$('.big-image6').hide();
			
			$('.big-image2').removeClass('dont-display-big-image');
			return false;
			
	  });
	  $("a.product-image-link3").click(function() {
			$('.big-image3').show();
				$('.big-image1').hide();
				$('.big-image2').hide();
				$('.big-image4').hide();
				$('.big-image5').hide();
				$('.big-image6').hide();
		  	
		  	$('.big-image3').removeClass('dont-display-big-image');
		  	return false;
	  });
	  $("a.product-image-link4").click(function() {
	  	  	$('.big-image4').show();
				$('.big-image1').hide();
				$('.big-image2').hide();
				$('.big-image3').hide();
				$('.big-image5').hide();
				$('.big-image6').hide();
	  	  	
	  	  	$('.big-image4').removeClass('dont-display-big-image');
	  	  	return false;
	  });
	  $("a.product-image-link5").click(function() {
	  	  	$('.big-image5').show();
				$('.big-image1').hide();
				$('.big-image2').hide();
				$('.big-image3').hide();
				$('.big-image4').hide();
				$('.big-image6').hide();
	  	  	
	  	  	$('.big-image5').removeClass('dont-display-big-image');
	  	  	return false;
	  });
	  $("a.product-image-link6").click(function() {
	  	  	$('.big-image6').show();
		  	  	$('.big-image1').hide();
		  	  	$('.big-image2').hide();
		  	  	$('.big-image3').hide();
		  	  	$('.big-image4').hide();
		  	  	$('.big-image5').hide();
	  	  	
	  	  	$('.big-image6').removeClass('dont-display-big-image');
	  	  	return false;
	  });
  
});

$(document).ready(function() {
	// als product-images-small-list 4 items heeft doe dit
	var $list = $('#product-images-small-list li');
	
	if ($list.length > 3) {
		jQuery('#product-images-small-list').jcarousel({
		  wrap: 'circular',
		  visible: 3,
		  size: $list.length,
		  scroll: 3,
		  vertical: true
		});
	}

    
});

$(document).ready(function() {
    $("a.sizechart").fancybox({
        overlayShow: true,
        frameWidth:530,
        frameHeight:400
    });
});


$(document).ready(function() {
    $("a.techimage").fancybox({
        overlayShow: true,
        frameWidth:530,
        frameHeight:400
    });
});


$(document).ready(function() {
		$("li.menu-item-132").hover(function() {
			$('.sub-menu', this).stop(true, true).slideDown();
			
			$(this).parent().hover(function() {  
			        }, function(){  
			            $(this).parent().find(".sub-menu").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up  
			        }); 
		});
});

$(document).ready(function() {
		$("a.morereviews").click(function() {
			$('.mucho-reviews').show('slideDown');
			$('.lessreviews').show();
			$('.morereviews').hide();
			
			return false;
		});
});

$(document).ready(function() {
		$("a.lessreviews").click(function() {
			$('.mucho-reviews').hide('slideDown');
			$('.lessreviews').hide();
			$('.morereviews').show();
			
			return false;
		});
});


