jQuery(document).ready(function(){
	
	
	/* Over Ons */
	$("#meerlezen").click(function() {
		$("#meerlezen").hide(10);
		$("#meer").fadeIn(250);
	});
	
	/* Live Hover */
	$(".block-wrap, #tweetEenPlek .block-wrap").hover(function () {
		$('> .hover', this).fadeIn(175);
	});
	
	$(".block-wrap").mouseleave(function () {
		$('> .hover', this).fadeOut(125);
	});
	
	$("#interested-toggle").click(function() {
		$("#lamellen").addClass("openen");
	});
	
	
	/* Contact Alert */
	$("#contact .form .alert, #alert-close").click(function () {
		$("#contact .form .alert").fadeOut(125);
	});
	
	
	/* Input Hints */
	jQuery.fn.inputHints=function() {
		// hides the input display text stored in the title on focus
		// and sets it on blur if the user hasn't changed it.
	
		// show the display text
		$(this).each(function(i) {
			$(this).val($(this).attr('title'))
				.addClass('hint');
		});
	
		// hook up the blur & focus
		return $(this).focus(function() {
			if ($(this).val() == $(this).attr('title'))
				$(this).val('')
					.removeClass('hint');
		}).blur(function() {
			if ($(this).val() == '')
				$(this).val($(this).attr('title'))
					.addClass('hint');
		});
	};
	$('input[title], textarea[title]').inputHints();
	
		
});
