$(document).ready(function(){

	
$('#barFotos').crossSlide({
	sleep: 8,
	fade: 1
}, [
  { src:  '/images/headerimages/bar1.jpg' },
  { src:  '/images/headerimages/bar2.jpg' },
  { src:  '/images/headerimages/bar3.jpg' }
/*}, [
  {
    src:  '/images/headerimages/bar.jpg',
    from: '100% 100% 1x',
    to:   '100% 100% 1.3x',
   time: 15
  }, {
    src:  '/images/headerimages/bar.jpg',
    from: 'top left',
    to:   'bottom right 1.2x',
    time: 25
  }*/
]);

	$("#barKruk1").bind("mouseenter",function(){	
		$(this).stop().animate({
		marginTop:"400px"
		},{duration:1200});	
	});

	$("#barKruk1").hover(function(){	
		$.sound.play('/sounds/stool.mp3');
	});

	$("#barKruk1").bind("mouseleave",function(){	
		$(this).stop().animate({
		marginTop:"320px"
		},{duration:1200});	
	});

	$("#barKruk2").bind("mouseenter",function(){	
		$(this).stop().animate({
		marginTop:"410px"
		},{duration:1200});	
	});

	$("#barKruk2").hover(function(){	
		$.sound.play('/sounds/stool.mp3');
	});
	
	$("#barKruk2").bind("mouseleave",function(){	
		$(this).stop().animate({
		marginTop:"350px"
		},{duration:1200});	
	});

	$("#barKruk3").bind("mouseenter",function(){	
		$(this).stop().animate({
		marginTop:"395px"
		},{duration:1200});	
	});

	$("#barKruk3").hover(function(){	
		$.sound.play('/sounds/stool.mp3');
	});
	
	$("#barKruk3").bind("mouseleave",function(){	
		$(this).stop().animate({
		marginTop:"325px"
		},{duration:1200});	
	});

	$("#barKruk4").bind("mouseenter",function(){	
		$(this).stop().animate({
		marginTop:"380px"
		},{duration:1200});	
	});

	$("#barKruk4").hover(function(){	
		$.sound.play('/sounds/stool.mp3');
	});

	$("#barKruk4").bind("mouseleave",function(){	
		$(this).stop().animate({
		marginTop:"310px"
		},{duration:1200});	
	});

	$("#viltje-welkom").bind("mouseenter",function(){	
		$(this).stop().animate({
		marginTop:"290px"
		},{duration:500});	
		
	});
	
	$("#viltje-welkom").bind("mouseleave",function(){	
		$(this).stop().animate({
		marginTop:"320px"
		},{duration:500});	
	});
	
	$("#viltje-feestje").bind("mouseenter",function(){	
		$(this).stop().animate({
		marginTop:"290px"
		},{duration:500});	
		
	});
	
	$("#viltje-feestje").bind("mouseleave",function(){	
		$(this).stop().animate({
		marginTop:"320px"
		},{duration:500});	
	});	
	
	$("#viltje-contact").bind("mouseenter",function(){	
		$(this).stop().animate({
		marginTop:"290px"
		},{duration:500});	
		
	});
	
	$("#viltje-contact").bind("mouseleave",function(){	
		$(this).stop().animate({
		marginTop:"320px"
		},{duration:500});	
	});	
	
	$("#viltje-gastenboek").bind("mouseenter",function(){	
		$(this).stop().animate({
		marginTop:"290px"
		},{duration:500});	
		
	});
	
	$("#viltje-gastenboek").bind("mouseleave",function(){	
		$(this).stop().animate({
		marginTop:"320px"
		},{duration:500});	
	});		

	$("#newsticker-demo").jCarouselLite({
		vertical: true,
		hoverPause:true,
		visible: 1,
		auto:5000,
		speed:5000
	});

	$(".Fancy").fancybox({
		'zoomSpeedIn':	300, 
		'zoomSpeedOut':	300, 
		'overlayShow':	true,
		'enableEscapeButton': true,
		'transitionIn'			: 'elastic',
		'transitionOut'			: 'elastic',
	    'opacity'				: true,
		'frameWidth'	: 1000,
		'frameHeight'	: $('html').innerHeight() * 0.85
		
	});

});

