$(function() {
	$('#news_content').load('news.html #thenews');

	$('#left_menu li').hover(function(){
		$(this).find('ul:eq(0)').show();
		$(this).find('div:eq(0)').show();

		var ul_decrease='-'+($(this).find('ul:eq(0)').children('li').length*10+17)+'px';

		$(this).find('ul:eq(0)').css({'margin-top':ul_decrease});
		$(this).find('div:eq(0)').css({'margin-top':'-28px'});
	}, function(){
		$(this).find('ul:eq(0)').hide();
		$(this).find('div:eq(0)').hide();
	});

	$('#left_menu ul').hover(function(){
		$(this).show();
	},function(){
		//$(this).hide();
	});

	$('a.external').click(function(event) {
		event.preventDefault();
		window.open($(this).attr('href'));
	});
});
