

	/*
		PAGELOAD FUNCTIES
	*/

	$(function() {
		// startfuncties bij het inladen van de pagina
	});


	/*
		REST OBJECTEN
	*/

	function hideObjectSlow(element)
	{
		if ( element == "#uitleg" ) {
			$("#button_inloggen").fadeOut("fast");
			$("#button_inloggen_block").fadeIn("fast");
		}
		$(element).fadeOut("fast");
	}

	function hideObject(element)
	{
		$(element).fadeOut();
	}

	function showObjectSlow(element)
	{
		$(element).delay(1000,function(){
			$(element).fadeIn("slow");
		});
	}

	/*
		MAIN FADE IN / OUT
	*/

	function fadeIn(element){
	 	$(element).fadeIn("fast");
	}

	function fadeOut(element){
		$(element).fadeOut("fast");
	}

	/*
		IMAGE ROLLOVER FUNCTIES
	*/

	$(function() {
		$('.rollover').hover(function() {
			var currentImg = $(this).attr('src');
			$(this).attr('src', $(this).attr('hover'));
			$(this).attr('hover', currentImg);
		}, function() {
			var currentImg = $(this).attr('src');
			$(this).attr('src', $(this).attr('hover'));
			$(this).attr('hover', currentImg);
		});
	});

	function roll(img_name, img_src) {
	   document[img_name].src = img_src;
	}

	/*
		JQUERY DELAY
	*/

	jQuery.fn.delay = function(time,func){
		this.each(function(){
			setTimeout(func,time);
		});

		return this;
	};

