Cufon.replace('#newsWrapper h2');
Cufon.replace('.news h3');
Cufon.replace('h2.newsdetail');
Cufon.replace('h4.year');
Cufon.replace('.error-message');

$(document).ready(function() {
	
	$('#photoWrapper, #photoCycleNews').cycle();
	
	$('.newspicture, .lightbox').fancybox();
	
	$('.jcarousel-skin-alfabouw').jcarousel({
        scroll: 4,
        start: yearposition,
		wrap: "both",
		animation: 800
    });
	
	$('.field-row .error-message').each(function() {
		$(this).next('input, textarea').addClass('errorClass');
	});

	$('.field-row input, .field-row textarea').focus(function() {
		
		$('.field-row input, .field-row textarea').each(function() {
			$(this).removeClass('hoverClass');
		});
		
		$(this).prev('.error-message').slideUp();
		$(this).removeClass('errorClass');
		$(this).addClass('hoverClass');
	});
	
	//pngFix
	$('#timelineWrapper').pngFix();

});
