      jQuery().ready(function(){
        $('#order_submit').attr('disabled','disabled').addClass('disabled');
        /*$('#order_submit').click(function(){
          $(this).attr('disabled','disabled').addClass('disabled');
          return true;
        });*/
//        $('#basket_order_form').submit(function(){ $('#order_submit').attr('disabled','disabled').addClass('disabled'); return true; });
        
        $('#basket_order_form_fields input').change(function(){
            if ($('#order_street').val()!='' && $('#order_building').val()!='' && $('#order_apartment').val()!='' && $('#order_phone').val()!=''){
              if ($('#order_street').val()!='улица, проспект, переулок, площадь' && $('#order_building').val()!='дом' && $('#order_apartment').val()!='квартира' && $('#order_phone').val()!='контактный телефон'){
                $('#order_submit').removeAttr('disabled').removeClass('disabled');
              }
            }
          });

        $('#search_query').focus(function(){
            $(this).addClass("focus");
            if ($(this).val() == 'Поиск') $(this).val('');
          });
        $('#search_query').blur(function(){
            $(this).removeClass("focus");
            if ($(this).val() == '') $(this).val('Поиск');
          });

        $('input.qty').change(function(){
            $('#basket_view_order').addClass("disabled").attr('disabled', 'disabled');
            $('#basket_view_recalc').addClass("enabled").removeAttr('disabled');
          });

        $('#order_first_name').focus(function(){
            $(this).addClass("focus");
            if ($(this).val() == 'имя') $(this).val('');
          });
        $('#order_first_name').blur(function(){
            $(this).removeClass("focus");
            if ($(this).val() == '') $(this).val('имя');
          });
        $('#order_last_name').focus(function(){
            $(this).addClass("focus");
            if ($(this).val() == 'фамилия') $(this).val('');
          });
        $('#order_last_name').blur(function(){
            $(this).removeClass("focus");
            if ($(this).val() == '') $(this).val('имя');
          });
        $('#order_street').focus(function(){
            $(this).addClass("focus");
            if ($(this).val() == 'улица, проспект, переулок, площадь') $(this).val('');
          });
        $('#order_street').blur(function(){
            $(this).removeClass("focus");
            if ($(this).val() == '') $(this).val('улица, проспект, переулок, площадь');
          });
        $('#order_building').focus(function(){
            $(this).addClass("focus");
            if ($(this).val() == 'дом') $(this).val('');
          });
        $('#order_building').blur(function(){
            $(this).removeClass("focus");
            if ($(this).val() == '') $(this).val('дом');
          });
        $('#order_apartment').focus(function(){
            $(this).addClass("focus");
            if ($(this).val() == 'квартира') $(this).val('');
          });
        $('#order_apartment').blur(function(){
            $(this).removeClass("focus");
            if ($(this).val() == '') $(this).val('квартира');
          });

        $('#order_phone').focus(function(){
            $(this).addClass("focus");
            if ($(this).val() == 'контактный телефон') $(this).val('');
          });
        $('#order_phone').blur(function(){
            $(this).removeClass("focus");
            if ($(this).val() == '') $(this).val('контактный телефон');
          });
        $('#order_email').focus(function(){
            $(this).addClass("focus");
            if ($(this).val() == 'e-mail') $(this).val('');
          });
        $('#order_email').blur(function(){
            $(this).removeClass("focus");
            if ($(this).val() == '') $(this).val('e-mail');
          });
        $('#order_source').focus(function(){
            $(this).addClass("focus");
            if ($(this).val() == 'откуда вы узнали про нас?') $(this).val('');
          });
        $('#order_source').blur(function(){
            $(this).removeClass("focus");
            if ($(this).val() == '') $(this).val('откуда вы узнали про нас?');
          });
        $('#order_misc').focus(function(){
            $(this).addClass("focus");
            if ($(this).val() == 'дополнительная информация') $(this).val('');
          });
        $('#order_misc').blur(function(){
            $(this).removeClass("focus");
            if ($(this).val() == '') $(this).val('дополнительная информация');
          });


        $('#register_username').focus(function(){
            $(this).addClass("register_focus");
            if ($(this).val() == 'ЛОГИН') $(this).val('');
          });
        $('#register_username').blur(function(){
            $(this).removeClass("register_focus");
            if ($(this).val() == '') $(this).val('ЛОГИН');
          });
        $('#register_first_name').focus(function(){
            $(this).addClass("register_focus");
            if ($(this).val() == 'ИМЯ') $(this).val('');
          });
        $('#register_first_name').blur(function(){
            $(this).removeClass("register_focus");
            if ($(this).val() == '') $(this).val('ИМЯ');
          });
        $('#register_last_name').focus(function(){
            $(this).addClass("register_focus");
            if ($(this).val() == 'ФАМИЛИЯ') $(this).val('');
          });
        $('#register_last_name').blur(function(){
            $(this).removeClass("register_focus");
            if ($(this).val() == '') $(this).val('ФАМИЛИЯ');
          });
        $('#register_password').focus(function(){
            $(this).addClass("register_focus");
            if ($(this).val() == 'ПАРОЛЬ') $(this).val('');
          });
        $('#register_password').blur(function(){
            $(this).removeClass("register_focus");
            if ($(this).val() == '') $(this).val('ПАРОЛЬ');
          });
        $('#register_confirm_password').focus(function(){
            $(this).addClass("register_focus");
            if ($(this).val() == 'ПОВТОР ПАРОЛЯ') $(this).val('');
          });
        $('#register_confirm_password').blur(function(){
            $(this).removeClass("register_focus");
            if ($(this).val() == '') $(this).val('ПОВТОР ПАРОЛЯ');
          });
        $('#register_birthday').focus(function(){
            $(this).addClass("register_focus");
            if ($(this).val() == 'ДАТА РОЖДЕНИЯ') $(this).val('');
          });
        $('#register_birthday').blur(function(){
            $(this).removeClass("register_focus");
            if ($(this).val() == '') $(this).val('ДАТА РОЖДЕНИЯ');
          });
        $('#register_address').focus(function(){
            $(this).addClass("register_focus");
            if ($(this).val() == 'АДРЕС') $(this).val('');
          });
        $('#register_address').blur(function(){
            $(this).removeClass("register_focus");
            if ($(this).val() == '') $(this).val('АДРЕС');
          });
        $('#register_phone').focus(function(){
            $(this).addClass("register_focus");
            if ($(this).val() == 'ТЕЛЕФОН') $(this).val('');
          });
        $('#register_phone').blur(function(){
            $(this).removeClass("register_focus");
            if ($(this).val() == '') $(this).val('ТЕЛЕФОН');
          });
        $('#register_email').focus(function(){
            $(this).addClass("register_focus");
            if ($(this).val() == 'ВАШ E-MAIL') $(this).val('');
          });
        $('#register_email').blur(function(){
            $(this).removeClass("register_focus");
            if ($(this).val() == '') $(this).val('ВАШ E-MAIL');
          });
        $('#register_misc').focus(function(){
            $(this).addClass("register_focus");
            if ($(this).val() == 'ПРИМЕЧАНИЯ_') $(this).val('');
          });
        $('#register_misc').blur(function(){
            $(this).removeClass("register_focus");
            if ($(this).val() == '') $(this).val('ПРИМЕЧАНИЯ_');
          });

        $('input.add_basket_submit').hover(function(){
              $(this).css('backgroundPosition', '0 -200px');
          }, function(){
              $(this).css('backgroundPosition', '0 0px');
          });

      });

