// Cufon Replacing
Cufon.replace('h1', { fontFamily: 'TitilliumText22L Rg' });
Cufon.replace('#logotype h2', { fontFamily: 'TitilliumText22L Rg' });
Cufon.replace('.info-boxes h2', { fontFamily: 'PT Sans' });
Cufon.replace('#main-content h2', { fontFamily: 'PT Sans' });
Cufon.replace('#diensten-overview h2', { fontFamily: 'PT Sans' });
Cufon.replace('#recent-projects h3', { fontFamily: 'PT Sans' });
Cufon.replace('#project-info h2', { fontFamily: 'PT Sans' });
Cufon.replace('#contact-sidebar h3', { fontFamily: 'PT Sans' });
Cufon.replace('#footer #twitter-feed #twitter h4', { fontFamily: 'PT Sans' });

// Nivo Slider
$(window).load(function() {
    $('#slider').nivoSlider({
        effect:'fade', //Specify sets like: 'fold,fade,sliceDown'
        slices:5,
        animSpeed:500, //Slide transition speed
        pauseTime:5000,
        startSlide:0, //Set starting Slide (0 index)
        directionNav:true, //Next & Prev
        directionNavHide:true, //Only show on hover
        controlNav:true, //1,2,3...
        keyboardNav:true //Use left & right arrows
    });
});


// Twitter
$(document).ready(function() {
	$("#twitter").getTwitter({
		userName: "_seventytwo",
		numTweets: 1,
		loaderText: "Tweet laden...",
		slideIn: false,
		showHeading: true,
		headingText: "Volg ons op twitter",
		showProfileLink: false
	});
});

$(function(){
	$("#gallery-view a img").fadeTo("fast", 1); // This sets the opacity of the thumbs to fade down to 60% when the page loads

	$("#gallery-view a img").hover(function(){
		$(this).fadeTo("fast", 0.5); // This should set the opacity to 100% on hover
	},function(){
   		$(this).fadeTo("fast", 1); // This should set the opacity back to 60% on mouseout
	});
});



