$(document).ready(function()
{ 
	$('a[rel*=lightbox]').lightBox();

	$("#header_top_loginbox").hide();
	$("ul.second").hide();
	$("ul.third").hide();
		$("ul.first li").hover(
      function () {
		$(this).children().next().show();
      }, 
      function () {
		$(this).children().next().hide();
      }
    );

	$("#menu #menu_items ul.first li").hover(
		function () {
			$(this).addClass("li_hover");
		}, 
		function () {
			$(this).removeClass("li_hover");
		}
	);


	$("#showLoginBox").click( function() 
	{
		if( $(this).parent().attr("class") == "down" )
		{
			$(this).parent().attr("class", "up");
			$("#header_top_loginbox").show("slow");
		}
		else
		{
			$(this).parent().attr("class", "down");
			$("#header_top_loginbox").slideDown("slow");
			$("#header_top_loginbox").hide("slow");
		}
	});

	$("#menu_left ul li.submenu").click( function() 
	{
		$(".hoofditem").each(function ()
		{
			$(this).removeAttr("id");
		});

		$("#menu_left ul li.submenu ul").each(function ()
		{
			$(this).hide();
		});

		$(this).attr("id","hoofvisited");
		
		$(this).children().next().show();
	});



	$(".hoofd_content").hide();

	$(".hoofd").click( function() {
		
		$(".hoofd_content").each(function ()
		 {
			 $(this).hide();
		});

		$(this).next().show();


	});

	$("#tabs").tabs();
	
	$(".dienstenOnDay").hover(
      function () {
        $(this).children().show();
      }, 
      function () {
        $(this).children().hide();
      }
    );

});
