<p onclick="openmore3(this);" class="slide"><span>Развернуть</span></p> Показать / Скрыть текстfunction rotateBlock(id, timeFade, timeChange){ this.id = id; var el = $('#' + this.id), img = el.find('img'), current = 0, count = img.length, stop = false, change; if (count < 2) return false; var show = function(n){ img.removeClass('active').removeClass('preactive').css&amp;amp;#40;'opacity', 1); img.eq&#40;n).addClass('active'); var imgNext = img.eq(n).parent().next('a').find('img&amp;amp;#39;); (imgNext.length != 0) ? imgNext.addClass('preactive') : img.eq(0).addClass('preactive'); }, showNext = function(){ current++; if (current == count ) current = 0; img.eq&#40;current - 1).stop().animate( {'opacity':0} , timeFade , function(){ &nbsp; show(current); }); }, run = function(){ if (!stop){ &nbsp; showNext(); &nbsp; change = setTimeout(run, timeChange); } }, goFrom = function(n){ show(;n); change = setTimeout(run, timeChange); }; goFrom(current); }var imgsrc = '';$(window).ready(function(){/* $('.chs img').hover( function () { imgsrc = $(this).attr("src"); var src = imgsrc.substr(0,imgsrc.length-6) + 'color' + imgsrc.substr(-4); $(this).attr("src",src); }, function () { $(this).attr("src",imgsrc); } );*/ $('.icons img.icon, .icons div.absbubble').hover( function () { &nbsp; if($(this).hasClass('icon')){ &nbsp; imgsrc = $(this).attr("src"); &nbsp; //var src = imgsrc.substr(0,imgsrc.length-4) + 'hov' + imgsrc.substr(-4); &nbsp; //$(this).attr("src",src); &nbsp; $(this).next().css(&#34;display", "block"); &nbsp; }else if($(this).hasClass('absbubble')){ &nbsp; $(this).css("display";, "block"); &nbsp; } }, function () { &nbsp; if($(this).hasClass('icon')){ &nbsp; $(this).attr("src",imgsrc); &nbsp; $(this).next().css(&#34;display", "none"); &nbsp; }else if($(this).hasClass('absbubble')){ &nbsp; $(this).css("display";, "none"); &nbsp; } } ); $('.rate .ratestars, .rate div.bubble2, .b-best .ratestars, .b-best div.bubble2').hover( function () { &nbsp; if($(this).hasClass('ratestars'));{ &nbsp; $(this).next().css(&#34;display", "block"); &nbsp; }else if($(this).hasClass('bubble2')){ &nbsp; $(this).css("display";, "block"); &nbsp; } }, function () { &nbsp; if($(this).hasClass('ratestars'));{ &nbsp; $(this).next().css(&#34;display", "none"); &nbsp; }else if($(this).hasClass('bubble2')){ &nbsp; $(this).css("display";, "none"); &nbsp; } } ); // $(".flboxbg #clickslide").click(function () {// if($(this).parent&#40;).hasClass("open")){// $(this).next().hide("slide", { direction: "right" }, 5000, function () {$(this).parent().removeClass("open");});// }else{// $(this).next().show("slide", { direction: "right" }, 5000, function () {$(this).parent().addClass("open");});// }// }); // $(".flboxbg #clickslide").click(function () {// $(this).next().hide("slide";, { direction: "right" }, 1000);// $(this).parent().removeClass("open").addClass("close");//});////$(".flboxbg .close #clickslide").click(function () {////console.info(1);////$(this).next().show("slide", { direction: "left" }, 1000);////$(this).parent().removeClass("close").addClass("open");////});////$(".flboxbg #clickslide").click(function () {//if($(this).parent().hasClass("open")){// $(this).parent().animate({"margin-right": "-210px"}, 1000, function () {$(this).parent().removeClass("open")});//// $(this).parent().animate({"margin-right": "-210px"}, 1000, .removeClass("open"));//}else{// $(this).parent().animate({"margin-right": "0px"}, 1000, function () {$(this).parent().addClass("open")});//// $(this).parent().animate({"margin-right": "0px"}, 1000, .addClass("open"));//}// ////console.info(2);////$(this).next().hide("slide", { direction: "right" }, 1000);////$(this).parent().removeClass("open").addClass("close");//}); $(".flboxbg #clickslide").click(function () { if($(this).parent0;).hasClass("open")){ $(this).parent().removeClass("open"); }else{ $(this).parent().addClass("open"); } }); function calculateTotal() { var n = $("input:checked"); var total = 0; for (var i = 0; i < n.length; i++) { if($(n[i]).parent().parent().find('.realprice').length>0){ &nbsp; total += parseInt($(n[i]).parent().parent().find('.realprice').html()); &nbsp; } } $("#totalprice").html(total + ' руб.'); } $(".packets .checkbox").click(calculateTotal); calculateTotal();});function openmore(obj){ if(obj.innerHTML.toLowerCase() == "<span>развернуть</span>"){ obj.innerHTML = "<span>Свернуть</span>"; $(obj).parent().parent().parent().parent().addClass("open"&amp;amp;#41;; var arr = $($(obj).parent().par