/* :hover script (jQuery) - .onMouse class-t kell adni az adott elemnek */

$(window).load(function() {
	if ($.browser.msie && jQuery.browser.version.substr(0,1) == "6") {
		$('.onMouse').bind("mouseenter mouseleave", function() {
			$(this).toggleClass('hover');
		});
	}
});

$(function() {
	$('#fcs-index-cikkek').mouseover(function() {
		$("#fcs-index-cikkek-short").hide();
		$("#fcs-index-cikkek-full").show();
		$("#fcs-index-top").css('z-index', 810);
		$("#fcs-index-cikkek").css('z-index', 810);
		$("#fcs-index-content-1").css('z-index', 810);

	});
	$('#fcs-index-cikkek').mouseleave(function() {
		$("#fcs-index-cikkek-short").show();
		$("#fcs-index-cikkek-full").hide();
		$("#fcs-index-top").css('z-index', 750);
		$("#fcs-index-cikkek").css('z-index', 750);
		$("#fcs-index-content-1").css('z-index', 750);
	});

	$('area').mouseover(function() {
		var coords = $(this).attr('coords').split(',');
		if (coords == '0,40,90,130') {
			$("#info-ff").show();
			$("#body-line-ff").show();
		}
		if (coords == '0,150,90,240') {
			$("#info-if").show();
			$("#body-line-if").show();
		}
		if (coords == '290,40,380,130') {
			$("#info-laz").show();
			$("#body-line-laz").show();
		}
		if (coords == '290,150,380,240') {
			$("#info-mf").show();
			$("#body-line-mf").show();
		}
	});

	$('#info-ff').mouseleave(function() {
		$("#info-ff").hide();
		$("#body-line-ff").hide();
	});
	$('#info-if').mouseleave(function() {
		$("#info-if").hide();
		$("#body-line-if").hide();
	});
	$('#info-laz').mouseleave(function() {
		$("#info-laz").hide();
		$("#body-line-laz").hide();
	});
	$('#info-mf').mouseleave(function() {
		$("#info-mf").hide();
		$("#body-line-mf").hide();
	});
});

