$(document).ready(function () {
    var inputs = $('.contactForm input, .contactForm textarea, .cotactForm select'),
        spans = $('.contactRow span'),
        span,
        _span,
        fired = false,
        _vald;

    inputs.each(function () {
        if ($(this).val().length > 0) {
            $(this).siblings('.label').fadeOut();
        }
    });

    inputs.focus(function () {
        $(this).animate({ 'backgroundColor': '#111', 'borderColor': '#262422' }, 500).siblings('.label').fadeOut(300);
    });

    $('.label').click(function () {
        $(this).siblings('input, textarea').focus();
    });

    inputs.blur(function () {
        if ($(this).val().length === 0) {
            $(this).animate({ 'backgroundColor': '#121412', 'borderColor': '#34322f' }, 500).siblings('.label').fadeIn(300);
        }
        span = $(this).parents('.contactRow').find('span');
        if (span.length) {
            validatorChecker(span);
        }
    });
});
