$(document).ready(function(){
	$('input#q').focus(function() {
		search_key = this.value;
		if (this.value == 'Wat zoekt u?') {
			this.value = '';
		}
	});
	
	$('input#q').blur(function() {
		if (this.value == '' && search_key == 'Wat zoekt u?') {
			this.value = search_key;
		}
	});
	
	
	firstname = 'voornaam';
	lastname = 'achternaam';
	email = 'e-mailadres';

	$("#firstname").val(firstname);
	$("#lastname").val(lastname);
	$("#email").val(email);
	
	
	$("#firstname").focus(function() {
		if ($(this).val() == firstname) {
			$(this).val('');
		}
	});
	$("#firstname").focusout(function() {
		if ($(this).val() == '') {
			$(this).val(firstname);
		}
	});
	
	$("#lastname").focus(function() {
		if ($(this).val() == lastname) {
			$(this).val('');
		}
	});
	$("#lastname").focusout(function() {
		if ($(this).val() == '') {
			$(this).val(lastname);
		}
	});

	$("#email").focus(function() {
		if ($(this).val() == email) {
			$(this).val('');
		}
	});
	
	$("#email").focusout(function() {
		if ($(this).val() == '') {
			$(this).val(email);
		}
	});

	
	
});
