$(document).ready(function()
{
	$('#picture > ul').innerfade({ 
		speed: 1000,
		timeout: 5000,
		type: 'sequence',
		containerheight: '260px'
	});
    
    $('.hiddenTable').hide();
    
    $("#keuze1").click(function() {
        if($(this).is(':checked') == true) {
            $(".tabel").hide();
            $("#1").show();
        } else {
        }
    });

    $("#keuze2").click(function() {
        if($(this).is(':checked') == true) {
            $(".tabel").hide();
            $("#2").show();
        } else {
        }
    });
    
    $("#keuze3").click(function() {
        if($(this).is(':checked') == true) {
            $(".tabel").hide();
            $("#3").show();
        } else {
        }
    });
    
    $("#keuze4").click(function() {
        if($(this).is(':checked') == true) {
            $(".tabel").hide();
            $("#4").show();
        } else {
        }
    });
	
	$("a[rel='lightbox']").colorbox();
	
	$(".flashBox").colorbox();
	
	$('.removeSelected').focus(function()
	{
		if ($(this).val() == this.title)
		{
			$(this).select();
		}
	});
    
    $(".validateForm").validate({
        errorPlacement: function(error, element) {
			error.prependTo( element.parent().next() );
		},
		// set this class to error-labels to indicate valid fields
		success: function(label) {
			// set &nbsp; as text for IE
			label.html("&nbsp;").addClass("checked");
		}
    });
    
    $.validator.messages.required = ""; 
    $('#parkeerForm').validate();
	
});
