// www.verstka.pro
function blockError(){return true;}
window.onerror = blockError;

$(document).ready(function(){
	$('.font a').click(function(){
		var size = $.attr($(this).get(0),'name');
		$('.news').css('font-size',size+'px').css('line-height',size*1.3+'px');
	})
});

/*
$(document).ready(function(){
	$('.cat_menu .subcat a:first-child').attr('href','javascript:void(0)');
	$('.cat_menu .subcat').addClass('closed');
	$('.cat_menu ul').css('display','none');
	$('.fullnews-text img:first-child, .shortnews-text img:first-child, .main-page-lastnews-text img:first-child, .main-page-morenews-text img:first-child').css('display','block');
	$('.cat_menu .subcat a:first-child').click(function(){
		if($(this).next('ul').is(':visible')) {
      $(this).next('ul').slideUp(300);
      $(this).parent('.subcat').addClass('closed');
		} else {
      $(this).next('ul').slideDown(300);
      $(this).parent('.subcat').removeClass('closed').addClass('opened');
		}
	});
});

function collapser (action) {
	if(action=='hide') {
		$('.subcat ul').slideUp(300);
		$('.subcat').addClass('closed');
	} else {
		$('.subcat ul').slideDown(300);
		$('.subcat').removeClass('closed').addClass('opened');
	}
}*/
