
$(document).ready( function() {
	
	// выпадающее верхнее меню
	$('.header .menu .wrapOut .wrapIn div.expand').hover(function() {
		$(this).css('background-color' , '#0a366b');
		$(this).find('ul').slideDown(100);
	}, function() {
		$(this).css('background-color' , '');
		$(this).find('ul').slideUp(100);
	});
	
	// выпадающее левое меню
	$('#left .menu ul li.expand > a').toggle(function() {
		$(this).parent().addClass('active');
		$(this).find('span').addClass('down');
		$(this).next().slideDown(700);
	}, function() {
		$(this).parent().removeClass('active');
		$(this).find('span').removeClass('down');
		$(this).next().slideUp(700);
	});
	
	// выпадающий каталог по задачам
	$('#container .catalogBlock .title').toggle(function() {
		$(this).find('a').addClass('active');
		$(this).next().slideDown(100);
	}, function() {
		$(this).find('a').removeClass('active');
		$(this).next().slideUp(100);
	});
	
	// выпадающий каталог по видеотракту
	$('#container #newsBlock .mainCat table.main').toggle(function() {
		$(this).next().show();
	}, function() {
		$(this).next().hide();
	});
	
	// выпадающее факью 1 уровень
	$('#container .faqBlock .title').toggle(function() {
		$(this).find('a').addClass('active');
		$(this).next().slideDown(100);
	}, function() {
		$(this).find('a').removeClass('active');
		$(this).next().slideUp(100);
	});
	
	// выпадающее факью 2 уровень
	$('#container .faqBlock .quest').toggle(function() {
		$(this).find('a').addClass('active');
		$(this).next().slideDown(100);
	}, function() {
		$(this).find('a').removeClass('active');
		$(this).next().slideUp(100);
	});
	
	// выпадающие дополнения 
	$('#container .addl .title').toggle(function() {
		$(this).find('a').addClass('active');
		$(this).next().slideDown(500);
	}, function() {
		$(this).find('a').removeClass('active');
		$(this).next().slideUp(500);
	});
	
	// выезжающие схемы
	$('.showScheme').toggle(function(){
		$(this).next().slideDown(500);
	},function(){
		$(this).next().slideUp(500);
	});
	
	
});
























