//Tabs Behaviour
$(document).ready(function(){
    $('#tmenu li').mouseover(function(){
        if (!$(this).hasClass('sel'))
            $(this).addClass('over');
    })
    $('#tmenu li').mouseout(function(){
        if (!$(this).hasClass('sel'))
            $(this).removeClass('over');
    })
    $('#btnSendFb').click(function(){
        $('div.errs').hide();
        $('div.succ').hide();
        var errs='';
        if ($('#fbName').val().length==0)
            errs+='Введите Ваше имя<br/>';
        if ($('#fbPhone').val().length==0 && $('#fbEmail').val().length==0)
            errs+='Введите Ваш телефон или email<br/>';
        if ($('#fbQuest').val().length==0)
            errs+='Введите Ваш вопрос<br/>';
        if (errs.length>0) {
            $('div.errs').html(errs);
            $('div.errs').show();
        }
        else
            $('#frmFB').submit();
    })
})

//Feedback form check




