//var $J = jQuery.noConflict();
jQuery(document).ready(function(){

        // no background
        $("#topmenu li:last, .news_block:last").css({background: 'none'});

        // left menu
        $(".leftmenu ul").hide();
        $(".leftmenu ul a[class='active']").parent().parent().show();
        $(".leftmenu a[class='active']").next().show();

        $(".leftmenu > li > a, .leftmenu_2 > li > a[ext='yes']").click(function(){
                $(this).next("ul").slideToggle(0);
//                return false;
        });

        // news date
        $(".news_block .date").cornerz({radius: 6});

		footer();
		
});

$(window).resize(function()
{
	footer();
});

footer = function ()
{
	if ($(".container").height() < $(window).height())
		$("#center").height($(window).height() - $("#header").height() - $("#footer").height() - 130);
}