$(document).ready(function() {    $(".faq_list li span").click(function(){        $(this).parent().find('div').slideToggle();    });                                    $('input[name=user_login],input[name=user_password],input[name=nomber],input[name=user_family],input[name=user_name],input[name=user_telephone],input[name=user_email]').each(function() {        var form_i=$(this);        if (form_i.val()=='') {            form_i.val(form_i.attr('alt')).css({'color':'#aaa'}).click(function() {                            if ($(this).val()==form_i.attr('alt')) $(this).val('').css({'color':'#000'});                                                                                }).blur(function(){                if ($(this).val() == '')$(this).val(form_i.attr('alt')).css({'color':'#aaa'});            });                 }    });          $('.cheker li a').click(function(){      $('.cheker li').removeClass('select');      $(this).parent().addClass('select');            if (this.className=='catalog_original') {          $("div.trueItems").slideDown();          $("div.otherItems").slideUp();           $("div.presenceItems").slideUp();      }      else if (this.className=='catalog_nooriginal') {          $("div.otherItems").slideDown();          $("div.trueItems").slideUp();                    $("div.presenceItems").slideUp();      }      else if (this.className=='catalog_presence') {          $("div.otherItems").slideUp();          $("div.trueItems").slideUp();                    $("div.presenceItems").slideDown();      }      else {          $("div.trueItems").slideDown();          $("div.otherItems").slideDown();          $("div.presenceItems").slideDown();      }                 return false;    });         $("a.infoOrder").click(function(){        $("."+$(this).attr('id')+" div").slideToggle("fast").toggleClass("active");        return false;    });        $("a#NewObj").click(function(){        $(".NewObj").slideToggle("fast");        return false;    });        $("img.information").hover(function(){        $(".information_d").remove();        $(this).parent().append('<div class="information_d">'+$(this).attr('alt')+'</div>');            },function(){        $(".information_d").remove();    });});function add_b(ID,br,element) {    $(element).parent().html('<b class="minus" onClick="remove_c(\''+ID+'\','+br+',this)">&ndash;</b> <b class="count">1</b> <b class="plus" onClick="add_c(\''+ID+'\','+br+',this)">+</b>');        add_c(ID,br,element);            return false;}function add_c(ID,br,element) {    var coutn=parseInt($(element).parent().find("b.count").text(),10);    $(element).parent().find("b.count").text(coutn+1);        $.getJSON("/body/includes/library/cart.php?n="+ID+"&br="+br+"&action=plus", function(data){        if (data.content_count) $("i.countItem").html(data.content_count);        if (data.content_price) $("span#count_price").html('('+data.content_price+')');        $("#sendItems").show();    }); }function add_used(ID,element) {    $(element).parent().html('<b class="minus" onClick="remove_used(\''+ID+'\',this)">&ndash;</b> <b class="count">1</b>');    $.getJSON("/body/includes/library/cart.php?used="+ID+"&action=plus", function(data){        if (data.content_count) $("i.countItem").html(data.content_count);        if (data.content_price) $("span#count_price").html('('+data.content_price+')');            });        return false;}function remove_used(ID,element) {     $(element).parent().html('<a href="#" onClick="return add_used(\''+ID+'\',this)" class="add"></a>');        $.getJSON("/body/includes/library/cart.php?used="+ID+"&action=minus", function(data){        if (data.content_count) $("i.countItem").html(data.content_count);        if (data.content_price) $("span#count_price").html('('+data.content_price+')');            });    }    function remove_c(ID,br,element) {    var coutn=parseInt($(element).parent().find("b.count").text(),10);        if (coutn!=1) $(element).parent().find("b.count").text(coutn-1);    else $(element).parent().html('<a href="#" onClick="return add_b(\''+ID+'\','+br+',this)" class="add"></a>');        $.getJSON("/body/includes/library/cart.php?n="+ID+"&br="+br+"&action=minus", function(data){        if (data.content_count) $("i.countItem").html(data.content_count);        if (data.content_price) $("span#count_price").html('('+data.content_price+')');    });    }function remove_all(ID,br,element) {    $.getJSON("/body/includes/library/cart.php?n="+ID+"&br="+br+"&action=remove", function(data){        $(element).parent().parent().remove();        tableSize();                if (data.content_count) $("i.countItem").html(data.content_count);        if (data.content_price) $("span#count_price").html('('+data.content_price+')');                if (data.content_count==0) {            $("#sendItems").hide();                    }    });    }function remove_all_used(ID,element) {    $.getJSON("/body/includes/library/cart.php?used="+ID+"&action=remove", function(data){        $(element).parent().parent().remove();        tableSize();                if (data.content_count) $("i.countItem").html(data.content_count);        if (data.content_price) $("span#count_price").html('('+data.content_price+')');        if (data.content_count==0) $("#sendItems").hide();                        });     }
