$(document).ready(function(){
	var tmpHeight;
	$('#navmenu .title').click(function(){
		var t = $(this).parent().find('ul');
		if(t.height() > 0){
			t.attr('title',t.height());
			t.css('overflow','hidden');
			t.animate({height: '0px'},1500);
		} else {
			t.css('overflow','auto');
			t.animate({height: t.attr('title')+'px'},1500);
		}
		return false;
	});
});
