$(document).ready(function(){
$('.first_menu ul li').hover(
function() {
$(this).find('ul:first').stop(true, true);
$(this).find('ul:first').slideDown(200);
},
function() {
$(this).find('ul:first').slideUp(400);
});
$('.first_menu li:has(ul)').find('a:first').append('<span>&nbsp;&#187;</span>');
});
$(document).ready(function(){
$(".for_checkbox .checkbox").click(function () {
$(".bg_area").slideToggle("fast");
$('.bg_area').toggleClass("dnone");
});
});
$(document).ready(function(){
$('#call-up').click(function(){
$('#ajax_call-up').load('/html/call.html');
})
});
$(document).ready(function(){
$('#ajax_general_form').click(function(){
$("#general_form_toggle").slideToggle("slow");
$("#general_form_toggle").toggleClass("dnone");
})
});
$(document).ready(function(){
$('a[href*=#]').bind("click", function(e){
var anchor = $(this);
$('html, body').stop().animate({
scrollTop: $(anchor.attr('href')).offset().top
}, 1000);
e.preventDefault();
});
return false;
});
$(document).ready(function(){
$("a").mouseenter(function(){ 
$(this).find("img").animate({opacity: "0.8"}, 0000)
$("a").mouseleave(function(){
$(this).find("img").animate({opacity: "1"}, 0000)
});
});
});
$(document).ready(function(){
$('.left_menu li').mouseenter(function(){
$(this).addClass('h_l_m');
})
$('.left_menu li').mouseleave(function(){
$(this).removeClass('h_l_m');
})
});
$(document).ready(function(){
$('#close_fixed').click(function(){
$('#fixed').addClass('dnone');
})
});
$(function() {
var offset = $("#fixed").offset();
var topPadding = 25;
$(window).scroll(function() {
if ($(window).scrollTop() > offset.top) {
$("#fixed").stop().animate({marginTop: $(window).scrollTop() - offset.top + topPadding});
}
else {$("#fixed").stop().animate({marginTop: 0});};});
});
function confirmDelete() {
	if (confirm("Вы уверены?")) {
		return true;
	} else {
		return false;
	}
}

