 function slideSwitch() {	
    var $active = $('#slideshow div.active');
    if ( $active.length == 0 ) $active = $('#slideshow div:last');
    var $next =  $active.next().length ? $active.next()
        : $('#slideshow div:first');
    $active.addClass('last-active');	
    $next.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 1000, function() {
            $active.removeClass('active last-active');
        });
}

 function slideSwitch2() {	
    var $active = $('#slideshow_nieuws div.active');
    if ( $active.length == 0 ) $active = $('#slideshow_nieuws div:last');
    var $next =  $active.next().length ? $active.next()
        : $('#slideshow_nieuws div:first');
    $active.addClass('last-active');	
    $next.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 1000, function() {
            $active.removeClass('active last-active');
        });
}
 
 
 $(document).ready(function() {	
	// slideshow
	$(function() {
		//setInterval( "slideSwitch()", 3000 );
	});
	$(function() {
		//setInterval( "slideSwitch2()", 3000 );
	});	
	
	
	
	
	$(".millestone").hover(
      function () {
		$(".tip").attr("src","images/mile_stone.png");
		$(this).find('img').attr("src","images/mile_stone_hit.png");
      }, 
      function () {
		
      }
    );
	
	
	
	$("a.fotoboekfoto").fancybox({
		'zoomSpeedIn':		300, 
		'zoomSpeedOut':		300
	});
	
	
	
	
	
	
	$('marquee').marquee('pointer').mouseover(function () {
		$(this).trigger('stop');
	}).mouseout(function () {
		$(this).trigger('start');
	}).mousemove(function (event) {
		if ($(this).data('drag') == true) {
			this.scrollLeft = $(this).data('scrollX') + ($(this).data('x') - event.clientX);
		}
	}).mousedown(function (event) {
		$(this).data('drag', true).data('x', event.clientX).data('scrollX', this.scrollLeft);
	}).mouseup(function () {
		$(this).data('drag', false);
	});
	
	
	$("a.poppup").overlay({ 
						
		expose: { 
			color: '#000', 
			loadSpeed: 200, 
			opacity: 0.6 
		}, 
		top: 160
		
	}); 
	 
 });


