function setMenuImage(menuSorszam) {
	var li = $("#menu li").eq(menuSorszam-1);
	var liPosition = li.position();
	var liWidth = li.width();
	var liCenterPosition = parseInt(liPosition.left)+parseInt(li.width()/2);
	$.menuImage = {};

	//feltesszük a képet
	var img = $('<img alt=""/>')
	.attr("src", "public/images/menu_images/"+menuSorszam+"/down.png")
	.attr("id", "down_"+menuSorszam)
	.load(function() {
        $.menuImage.picRealWidth = this.width;   // Note: $(this).width() will not
		$.menuImage.picRealHeight = this.height; // work for in memory images.
		
		$(this).css({
			"position": "absolute",
			"top": "194px",
			"left": (liCenterPosition-($.menuImage.picRealWidth/2))+2,
			"border": "none"
		})
    })	
	.appendTo('body');
	
	$(li).mouseover(
	  function () {
			$(img).remove();
			img = $('<img alt=""/>')
			.attr("src", "public/images/menu_images/"+menuSorszam+"/up.png")
			.attr("id", "down_"+menuSorszam)
			.load(function() {
				$.menuImage.picRealWidth = this.width;   // Note: $(this).width() will not
				$.menuImage.picRealHeight = this.height; // work for in memory images.
				
				$(this).css({
					"position": "absolute",
					"top": "144px",
					"left": (liCenterPosition-($.menuImage.picRealWidth/2))+2,
					"border": "none"
				})
			})	
			.appendTo('body');
		
		
	  }
	)
	$(li).mouseout (
		function () {
			$(img).remove();
			img = $('<img alt=""/>')
			.attr("src", "public/images/menu_images/"+menuSorszam+"/down.png")
			.attr("id", "down_"+menuSorszam)
			.load(function() {
				$.menuImage.picRealWidth = this.width;   // Note: $(this).width() will not
				$.menuImage.picRealHeight = this.height; // work for in memory images.
				
				$(this).css({
					"position": "absolute",
					"top": "194px",
					"left": (liCenterPosition-($.menuImage.picRealWidth/2))+2,
					"border": "none"
				})
			})	
			.appendTo('body');
		} 
	)
}

