var tid;


function knapp(event) {
	tid = setTimeout(knapp, 5000);
}

function FadeTime(elem) {
	elem.delay().fadeIn(500).delay(4000).fadeOut(500, function () {
		if (elem.next().length > 0) {
			FadeTime(elem.next());
		} else {
			FadeTime( elem.siblings(':first'));
		}
	});
}


function slideshow() {
	$('#start-banner ul li:last').fadeOut(1500, function (event) {
		$(this).show();
		$('#start-banner ul li:first').before( $('#start-banner ul li:last'));
	});
	tid = setTimeout(slideshow, 4000);
}



$(function() {
	
	slideshow();
	
	$('footer .wrap nav ul li:nth-child(1)').addClass('first');
	
	
	$('ul.faq li').click( function(event) {
	var currentq = $(this).children('.answare');
	
	if (currentq.is(':hidden')) {
	
		$(this).children('.answare').slideDown(100);
		} else {
		$(this).children('.answare').slideUp(100);
		}
		
		event.preventDefault();
	});
	
	var ulheight = $('aside#left ul').height();
	$('aside#left ul').children('span').height( ulheight +20);
	
	
	
});








	
