$(document).ready(function() {
	sliderstat = -1;
	$('#wrapper_slider').css('display', 'block');
	$('#wrapper_slider').css('visibility', 'visible');
	$('#slider').css('display', 'block');
	$('#slider').css('visibility', 'visible');
	$('#wrapper_slider').hide();
	$('#toggle_slider').empty();
	$('#toggle_slider').append('<img src="core/img/kontakt_ein.jpg" width="148" height="31" alt="Kontakt einblenden" />');
	$('#toggle_slider').removeClass("h");
	$('#slider').hide();
	$('#toggle_slider').click(function() {
		$('#wrapper_slider').slideToggle("slow");
		sliderstat *= -1;
		if(sliderstat == 1) {
			$('#slider').fadeIn("slow");
			$('#toggle_slider').empty();
			$('#toggle_slider').append('<img src="core/img/kontakt_aus.jpg" width="148" height="31" alt="Kontakt ausblenden" />');
			$('#toggle_slider').addClass("reversed");
		} else {
			$('#slider').fadeOut("slow");
			$('#toggle_slider').empty();
			$('#toggle_slider').append('<img src="core/img/kontakt_ein.jpg" width="148" height="31" alt="Kontakt einblenden" />');
			$('#toggle_slider').removeClass("reversed");
		}
	});
	// jQuery('#list1').Accordion();
	jQuery('#list1').Accordion({
		autoheight: true,
		animated: 'easeslide'
	});
	$("#ctabs > li").hover(
		function () {$(this).addClass("hover");}, 
	    function () {$(this).removeClass("hover");}
	);
	$("#ctabs").removeClass("h");
	$(".tabcontent").hide();
	$("#tab_0").show();
	$('#ctabs > li').each(function(i){
		$(this).click(function(){
			tab = "#tab_"+i;
			$(".tabcontent").hide();
			$(tab).show();
		});
	});
});

