$(document).ready(function()
{
	$("#navigation-toggle").click(
		function() {
			$("ul.level1").slideToggle();
		}
	);

	$(".tab-content").hide();
	$(".tab-content:first").show();
	$("#tabs li:first a").addClass("active");


	$("#tabs li a[class!=active]").hover(
		function() {
			$(this).addClass("hover");
		},
		function() {
			$(this).removeClass("hover");
		}
	);


	$("#tabs li a").click(
		function() {
			var rel = $(this).attr('rel');

			$("#tabs li a").removeClass("active");
			$(this).addClass("active");

			$(".tab-content[id!="+rel+"]").hide();
			$("#"+rel).show();

			this.blur();
		}
	);


	$("#projekt-teaser-elements").cycle({
		fx: 	'scrollLeft',
		pager: 	'.projekt-teaser-selector',
		timeout: 	'5000'
	});

}
);
