$(document).ready(function() {					   
	$(document.body).show("fade", 500);
	
	if ( window.addEventListener ) {
    var kkeys = [], konami = "38,38,40,40,37,39,37,39,66,65";
    window.addEventListener("keydown", function(e){
        kkeys.push( e.keyCode );
        if ( kkeys.toString().indexOf( konami ) >= 0 )

			$(document.body).effect("shake", {times:3000}, 30);
    }, true);
	}

		$("#languages").hover(function() {
			$(this).stop(true, true).animate({opacity: 1}, 100);	
		}, function() {
			$(this).stop(true, true).animate({opacity: 0.7}, 100);	
		});		

	$("#languages").animate({opacity: 0.7}, 0);


		$("#bottomlogo").hover(function() {
			$(this).stop(true, true).animate({opacity: 1}, 200)
		}, function() {
			$(this).stop(true, true).animate({opacity: 0.6}, 200);	
		});		

	$("#bottomlogo").animate({opacity: 0.6}, 0);
	
		$("#nav li.page_item").hover(function() {
			$(this).stop(true, true).animate( { backgroundColor: '#015ab8' }, 500)
		}, function() {
			$(this).stop(true, true).animate({ backgroundColor: "#333333" }, 600);	
		});		
	
	$("a").click(function () {
		$("#contentwrap").hide("fade", {direction: "left"}, 500);
		$("#footerwrap").hide("fade", {direction: "left"}, 500);
		$("#loader").show("fade", 500);
	});
	
		$("#eigenaanvraag").hover(function() {
			$(this).stop(true, true).effect("bounce", {direction: "left", distance: 5, times: 3})
		}, function() {
				
		});			

	
	$("input").focusin(function () {
		$(this).animate({border: "1px #015ab8 solid",backgroundColor: "#015ab8", color: "#ffffff"}, 300);
	 });
	
	$("input").blur(function () {
		$(this).animate({border: "1px #d9d9d9 solid",backgroundColor: "#ffffff", color: "#000000"}, 300);
	 });
	
	$("textarea").focus(function () {
		$(this).animate({border: "1px #015ab8 solid",backgroundColor: "#015ab8", color: "#ffffff"}, 300);
	 });
	
	$("textarea").blur(function () {
		$(this).animate({border: "1px #d9d9d9 solid",backgroundColor: "#ffffff", color: "#000000"}, 300);
	 });		
	
});
