/* Featured content */
$(window).load(function() {
    $('#slider').nivoSlider({
        effect:'random',
        slices:15,
        animSpeed:700, 
        pauseTime:6000,
        startSlide:0, 
        directionNav:true,
        controlNav:false,
        captionOpacity:0.9
    });
});

/* Project afbeeldingen */
$(window).load(function() {
    $('#projectSlider').nivoSlider({
        effect:'random',
        slices:15,
        animSpeed:700, 
        pauseTime:6000,
        startSlide:0, 
        directionNav:true, 
        directionNavHide:true, 
        controlNav:false,
        captionOpacity:0
    });
});

/* Headers */
Cufon.replace('h1, h2, h3');
	
/* Navigatie */
            $(function() {
                $('#navigation > div, #pagination > div').hover(
                function () {
                    var $this = $(this);
                    $this.find('img').stop().animate({
                        'width'     :'60px',
                        'height'    :'60px',
                        'top'       :'-13px',
                        'left'      :'-13px',
                        'opacity'   :'1.0'
                    },500,'easeOutBack',function(){
                        $(this).parent().find('ul').fadeIn(700);
                    });

                    $this.find('a:first,h3').addClass('active');
                },
                function () {
                    var $this = $(this);
                    $this.find('ul').fadeOut(500);
                    $this.find('img').stop().animate({
                        'width'     :'30px',
                        'height'    :'30px',
                        'top'       :'0px',
                        'left'      :'0px',
                        'opacity'   :'0.1'
                    },5000,'easeOutBack');

                    $this.find('a:first,h3').removeClass('active');
                }
            );
            });                 

/* Paginatie */
            $(function() {
                $('#leesMeer > div').hover(
                function () {
                    var $this = $(this);
                    $this.find('img').stop().animate({
                        'width'     :'48px',
                        'height'    :'48px',
                        'top'       :'-7px',
                        'left'      :'-7px',
                        'opacity'   :'1'
                    },500,'easeOutBack',function(){
                        $(this).parent().find('ul').fadeIn(500);
                    });

                    $this.find('a:first,h3').addClass('active');
                },
                function () {
                    var $this = $(this);
                    $this.find('ul').fadeOut(2000);
                    $this.find('img').stop().animate({
                        'width'     :'30px',
                        'height'    :'30px',
                        'top'       :'0px',
                        'left'      :'0px',
                        'opacity'   :'0.1'
                    },2000,'easeOutBack');

                    $this.find('a:first,h3').removeClass('active');
                }
            );
            });                 

/* Afbeeldingen */
$(function() {
	$('a.lightbox').lightBox();
});


/* Tweet */
$(document).ready(function(){
	$("#tweet").tweet({
	username: "lieskebakker"
	});
});
