Problem with code

Hello

Someone knows what’s wrong with this code?

	$(document).ready(function(){
		$(".links ul li a").click(function (){
			$(".links ul li ul").toggle();
		});
		$("body").click(function (){
			$(".links ul li ul").fadeOut();
		});
	});

I think the problem is in body click.

Thanks!