$(document).ready(function() { 
													 
	//var indexCalendarHeight = $("#calendar-container").height();
	//$("#box-akciok").height(indexCalendarHeight);
	
	$('#header-navi ul li').each(function() {
		$(this).mouseover(function() {
			$(this).children('a').addClass("hover");
			$(this).children('ul').css("display", "block");
		});
		$(this).mouseout(function() {
			$(this).children('a').removeClass("hover");
			$(this).children('ul').css("display", "none");
		});
	});
	
	var indexLeaderHeight = $("#box-relatednews").height();
	var indexConcertHeight = $("#box-concert").height();
	if(indexLeaderHeight > indexConcertHeight){
		$("#box-concert").height(indexLeaderHeight);
		$("#box-naptar").height(indexLeaderHeight);
	} else {
		$("#box-relatednews").height(indexConcertHeight);
		$("#box-naptar").height(indexConcertHeight);
	}
	var indexSajtotHeight = $("#box-sajto").height();
	var indexAkcioktHeight = $("#box-akciok").height();
	if(indexSajtotHeight > indexAkcioktHeight){
		$("#box-akciok").height(indexSajtotHeight);
	} else {
		$("#box-sajto").height(indexAkcioktHeight);
	}
	
	$("#header-navi").slideDown(1000);
	$("#header-logo").fadeIn(3000);
	
	$("a.fancy").fancybox({
		'overlayOpacity'	: 0.8,
		'overlayShow'			: true,
		'zoomSpeedIn'			: 600,
		'zoomSpeedOut'		: 500
	});
	
	$("area.fancy").fancybox({
		'overlayOpacity'	: 0.8,
		'overlayShow'			: true,
		'zoomSpeedIn'			: 600,
		'zoomSpeedOut'		: 500
	});
	
	$(".fancy").fancybox({
		'overlayOpacity'	: 0.8,
		'overlayShow'			: true,
		'zoomSpeedIn'			: 600,
		'zoomSpeedOut'		: 500
	});
	
});  