// Portfolio: fancybox
$(document).ready(function() {	
	$("a[rel=fancybox]").fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	400, 
		'speedOut'		:	150, 
		'overlayShow'	:	true,
		'hideOnOverlayClick' : true,
		'overlayColor': '#000',
        'overlayOpacity' : 0.8,
        'changeFade' : 100
    });	
});

// Portfolio slideshow
$(function(){
    $("#portfolio_slides").slides({
        preload: true,
        preloadImage: '/static/slideshow/img/loading.gif',
        play: 4000,
        pause: 4000,                    
        pagination: "pagination",
        hoverPause: true
    });
});

$(document).ready(function(){ 
    $(".remove_this").remove(); 
    $("#portfolio_slideshow .pagination:eq(1)").remove(); 
    $(".pagination li:eq(0)").addClass("current");
});



// Pagina: Morebox
$(document).ready(function(){

    // Producten en diensten morebox
    $("#morebox").hide();
    $("#meer").show();
    
    $("#meer").click(function(){
         $('#morebox').slideDown('fast');
         $("#meer").hide();
         $("#minder").show();
         return false;
    });

    $("#minder").click(function(){
         $('#morebox').slideUp('fast');
         $("#minder").hide();
         $("#meer").show();
         return false;
    });
});   


// Pagina: Slideshow
$(function(){
    $("#product_slides").slides({
        preload: true,
        preloadImage: '/static/slideshow/img/loading.gif',
        play: 4000,
        pause: 4000
    });
});


// Contact: Fancybox (QR-code)
$(document).ready(function() {	
    $("a.fancybox").fancybox({
        'transitionIn'	:	'elastic',
        'transitionOut'	:	'elastic',
        'speedIn'		:	400, 
        'speedOut'		:	150, 
        'overlayShow'	:	true,
        'hideOnOverlayClick' : true,
        'overlayColor': '#000',
        'overlayOpacity' : 0.8
    });	
});


// Portfolio menu
$(document).ready(function() { 
    $("ul.sf-menu").superfish({ 
        autoArrows: false,
        delay: 100,
        speed: 'fast',
        animation: {opacity:'show', height:'show'}
    }); 
});


// Authenticated, toggle wijzig-icons
$(document).ready(function(){  
    $("#toggle_changelink").click(function(){
         $('.changelink').toggle();
         return false;
    });
}); 
