$(document).ready(function(){
	
	$("input, textarea").focus(function () {
		$(this).addClass("activeInput");
	} );
	$("input, textarea").blur(function () {
		$(this).removeClass("activeInput");
	} );
	
	$("input[type='submit']").addClass("button");
	$("input[type='submit']").mouseover(function(){
		$(this).addClass("button_hover");
	} );
	$("input[type='submit']").mouseout(function(){
		$(this).removeClass("button_hover");
	} );
	
	// multiple validate forms on a page
	$("#JQvalidateForm_second").validate({});
	$("#JQvalidateForm_third").validate({});	
	
	
	$("#jqvalidateform").validate({
		errorElement: 'span',
		focusCleanup: false,
	  	highlight: function(element, errorClass) {
	  		$("div.jqvalidateerror").html("<p>U heeft niet alle velden goed ingevuld</p>");
			$(element).addClass("error");
		}
	})
	
	$('#random_quote ul').innerfade({ 
		speed: 'slow', timeout: 4000, type: 'sequence', animationtype: 'fade'
	 });
	
});