$(document).ready(function()
{

	$("ul.second").hide();
	$("ul.third").hide();

	$("ul.first li").hover(
      function () {
		$(this).children().next().show();
      }, 
      function () {
       $(this).children().next().hide();
      }
    );


	$("#frm_search").focus(function () 
	{
		$(this).val("");
	});

	$("#agenda_month .inputselect option").each( function()
	{
		if ($(this).attr("selected"))
		{
			if ($(this).attr("selected"))
			{
				showagenda($(this).val());
			}
		}
	});

	$('a[rel*=lightbox]').lightBox();
});

function showteam(objSelect)
{
	window.location.href='?option=101&WedstrijdenTeamID=' + objSelect;
}

function showagenda( month_id )
	{
		$.ajax({
		   type: "POST",
		   url: "overzichten/getAgendaItems.asp",
		   data: "month_id=" + month_id + "",
		   success: function(msg){
			$(".calendar-container").empty();
			$(".calendar-container").append(msg);
		   }
		 });

		 return false;
	}	

