/*Tip*/

//Window
$(document).ready(function(){
    $(".window_open").click(function(){
		$("#window_muar").fadeIn(150);
        $("#window_block").fadeIn(400);
    });
    $(".window_close").click(function(){
		$("#window_muar").fadeOut(150);
        $("#window_block").fadeOut(300);
    });
	
});

//Конфирм jquery
$(document).ready(function(){
    $(".confirm").click(function(){
        $(this).next(".confirm_block").fadeIn(300);
    });
    $(".confirm_close").click(function(){
        $(".confirm_block").fadeOut(300);
    });
	
});



//Конфирм
function clicker(lnk, msg){
if(confirm(msg)) window.location.href=lnk.href;
return false;		}

//Переключить блок
function swichblock(id) 
{
	if (document.getElementById(id).style.display == 'none') {
	document.getElementById(id).style.display = 'block';
	}
	else {
	document.getElementById(id).style.display = 'none';
	}
}

//Показать блок
function openblock(id) 
{
	document.getElementById(id).style.display = 'block';
}

//Скрыть блока
function hideblock(id) 
{
	document.getElementById(id).style.display = 'none';
}
/*Tip*/




/*menu*/
$(document).ready(function(){
    $('.menu').hover(
        function() {
            $(this).addClass("menu_active");
            $(this).children('.podmenu').stop(true, true); // останавливаем всю текущую анимацию
            $(this).children('.podmenu').slideDown();
        },
        function() {
            $(this).removeClass("menu_active");
			$(this).children('.podmenu').stop(true, true);
            $(this).children('.podmenu').slideUp('fast');
        }
    );
});
/*menu*/






