Cufon.replace('h2, h4,h3, #content h3, #tweet h2, #col-side h4, #col-side h3, #col-side-contact h4, #col-side-contact h3, #col-main-left-contact h4, #col-main-left-contact h3, #col-main h3,#col-main h4,#col-main-left-contact h4, #col-main-left-contact h3');


$(document).ready(function() {
				$("#tweet").getTwitter({
					userName: "companylabs",
					numTweets: 1,
					loaderText: "Loading tweets...",
					slideIn: true,
					slideDuration: 750,
					showHeading: true,
					headingText: "companylabs op twitter",
					showProfileLink: false,
					showTimestamp: false
				});
			});


$(document).ready(function() {

	$.localScroll();

	// Clear fields.
	$('#naam').focus(function() {
		if ($('#naam').val() == 'Uw naam') {
			$('#naam').val('');
		}
	});
	$('#email').focus(function() {
		if ($('#email').val() == 'Uw e-mail adres') {
			$('#email').val('');
		}
	});
	$('#bericht').focus(function() {
		if ($('#bericht').val() == 'Uw bericht') {
			$('#bericht').val('');
		}
	});

});

$('.box').each(function() {
		$(this).find('.button').click(function(e) {
			e.preventDefault();
			var valid = true;
			$(this).parent().find('input:text, textarea').each(function() {
				if($.trim($(this).val()) == '' || $(this).val() == 'Dit veld is niet ingevuld') {
					valid = false;
					$(this).val('Dit veld is niet ingevuld');
					$(this).parent().addClass('error');
					$(this).focus(function() {
						$(this).parent().removeClass('error');
						if($(this).val() == 'Dit veld is niet ingevuld') {
							$(this).val('');
						}
					});
				}
			});
			if(valid) {
				$(this).parent().find('form').submit();
			}
		});
	});
