This code is responsible for folding / unfolding the block.
<script type="text/javascript" src="http://yandex.st/jquery/1.7.2/jquery.js"></script> <script type="text/javascript" src="http://yandex.st/jquery/cookie/1.0/jquery.cookie.js"></script> <script type="text/javascript"> function showhide(n){ if(n == 3){ $('#std'+n).slideToggle('slow'); if($("#openlink").html() == "<img src=\"/style/default/img/otdz.png\" alt=\"\" title=\"Свернуть\"/>"){ $("#openlink").html("<img src=\"/style/default/img/otdz.png\" alt=\"\" title=\"Развернуть\"/>"); $.cookie("filter_open", "0"); }else{ $("#openlink").html("<img src=\"/style/default/img/otdz.png\" alt=\"close\" title=\"Свернуть\"/>"); $.cookie("filter_open", "1"); } } } </script>
But a little bit wrong. By default, my block is minimized. When I expand it, then I fold it back, I refresh the page, it will still be expanded from me until I clean the cookie.