function go(t){document.location.href=t}function hideCatalogMenu(){$(".catalog-list",".catalog-menu").hide(),$(".catalog-menu .catalog-header-list").removeClass("active")}function showForm(t){var e=$(".comments-form-"+t);e.toggleClass("form-show"),"undefined"==typeof $.titleComment&&($.titleComment=$("#comments .c-head").text()),$("#comments .c-head").empty().html("Ответить на комментарий, оставленный пользователем "+$("#comment-"+t+" .author:first").text()+""),0==$("#cancel-comment").size()&&$("Отмена").insertAfter("#comments .sb"),$("#cancel-comment").bind("click",function(){$("#comments .c-head").html($.titleComment),$("#CommentsForm_parent_id_comment").attr("value",0),$(this).remove()}),$("#CommentsForm_parent_id_comment").attr("value",t),$("html:not(:animated),body:not(:animated)").animate({scrollTop:$("#comments-form").offset().top},1100)}function setMessage(t,e){$("#flash-messages").html('
Нажав «Да», вы заявляете, что вам исполнилось 18 лет и эта информация является достоверной, вы предприняли все необходимые действия для ограничения доступа детей к просмотру данного фильма посредством вашего компьютера или мобильного устройства.
",icon:"secure",position:"center",width:"650px"})}}function setContanerHeight(t,e){$(t).height(e)}function canPlayingFlash(){var t=!1;try{var e=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");e&&(t=!0)}catch(a){navigator.mimeTypes&&void 0!=navigator.mimeTypes["application/x-shockwave-flash"]&&navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin&&(t=!0)}return t}$(function(){if('kinopod' !== location.hostname && "kinopod.ru"!==location.hostname&&"kinopod.org"!==location.hostname&&"kinopod.vm"!==location.hostname&&(location.href="http://kinopod.ru"),$(".x-remove").click(function(){var t=new Date;t.setDate(t.getDate()+1),document.cookie="no_email = 1; expires="+t.toUTCString(),$(".no-email").remove()}),$(".catalog-desc, .video-desc").expander({collapseTimer:0,slicePoint:300,preserveWords:!0,widow:50,expandText:"подробнее…",userCollapseText:"свернуть",expandEffect:"fadeIn",collapseEffect:"fadeOut"}),$(".catalog-header-list.clear-filters").on("click",function(){window.location=$(this).data("url")}),$(".selectable").on("click",function(t){$(this).select()}),$(".video-box .thumbnail, .video-box .state-d, .horizontal-box .thumbnail:not(.episode), .review-big .thumbnail").click(function(){var t=$(this).parent().find(".title").find("a");t.hasClass("link-ero")?t.trigger("click"):go(t.attr("href"))}),$(".blur").each(function(){$(this).focus(function(){$(this).val()==$(this).attr("rel")&&$(this).removeClass("blur-text").val("")}),$(this).blur(function(){""==$(this).val()&&$(this).addClass("blur-text").val($(this).attr("rel"))}),$(this).blur()}),$("#search-submit").click(function(){""!=$("#search-query").val()&&$(this).closest("form").submit()}),$("#search-query").autocomplete({source:"search/quick.html",minLength:2,appendTo:"#header .search",focus:function(){return!1},open:function(){var t=$(".ui-autocomplete");t.find("li").length||t.hide()},select:function(t,e){if(void 0===e.item.category&&void 0!==e.item.title){if(void 0!==e.item.url)return location.href=e.item.url,!1;$("#search-query").val($.trim($(e.item.title).get(1).nodeValue))}else $("#search-query").closest("form").append('');return $("#search-query").closest("form").submit(),!1}}).data("ui-autocomplete")._renderItemData=function(t,e){if(e.online.length>0||e.reviews.length>0||e.persons.length>0||e.groups.length>0||e.news.length>0){var a=null;t.attr("id","quick_results"),e.online.length>0&&t.append($("").addClass("title").data("ui-autocomplete-item",{category:"videos"}).append('Фильмы')),$(e.online).each(function(e,i){a=$("").addClass("child").attr("rel",i.url).html(i.title),t.append($("").data("ui-autocomplete-item",i).append(a))}),e.reviews.length>0&&t.append($("").addClass("title").data("ui-autocomplete-item",{category:"reviews"}).append('Видео обзоры')),$(e.reviews).each(function(e,i){a=$("").addClass("child").attr("rel",i.url).html(i.title),t.append($("").data("ui-autocomplete-item",i).append(a))}),e.persons.length>0&&t.append($("").addClass("title").data("ui-autocomplete-item",{category:"persons"}).append('Имена')),$(e.persons).each(function(e,i){a=$("").addClass("child").attr("rel",i.url).html(i.title),t.append($("").data("ui-autocomplete-item",i).append(a))}),e.groups.length>0&&t.append($("").addClass("title").data("ui-autocomplete-item",{category:"groups"}).append('Коллекции фильмов')),$(e.groups).each(function(e,i){a=$("").addClass("child").attr("rel",i.url).html(i.title),t.append($("").data("ui-autocomplete-item",i).append(a))}),e.news.length>0&&t.append($("").addClass("title").data("ui-autocomplete-item",{category:"news"}).append('Новости')),$(e.news).each(function(e,i){a=$("").addClass("child").attr("rel",i.url).html(i.title),t.append($("").data("ui-autocomplete-item",i).append(a))})}return!0},$(".link-ero").click(function(t){checkAdult(t,this)}),$("#comments-form").bind("submit",function(){setTimeout(function(){0==$("#comments-form div.error").length&&($("#comments-form input[type=text]").val(""),$("#comments-form textarea").val(""),$("#comments-form input[type=submit]").bind("click",function(){return!1}),0==$("#load-img:enabled").length&&$("#load-img").show())},500)}),$(".catalog-menu").on("click",".catalog-header-list",function(t){t.stopPropagation(),$(this).hasClass("active")?($(this).removeClass("active"),$(".catalog-list",this).hide()):(hideCatalogMenu(),$(this).addClass("active"),$(".catalog-list a",this).each(function(){$(this).data("title")&&!$(this).data("handle")&&$(this).attr("title",$(this).html()).html($(this).data("title")).data("handle",1)}),$(".catalog-list",this).toggle())}),$("document").on("click","body",function(){hideCatalogMenu(),$("#quick_results").hide()}),$(".menu .has-submenu").on({mouseenter:function(){if($(this).hasClass("menu-videos")&&!$(this).data("av")){var t=$("").attr("href",$("base").attr("href")+"erotic.html").attr("title","Для аудитории от 18 лет и старше").addClass("link-ero").html("Эротика");t.click(function(t){checkAdult(t,this)}),$(".submenu",this).append($("").html(t)),$(this).data("av",1)}$(this).addClass("hover-active"),$(".submenu",this).show()},mouseleave:function(){$(this).removeClass("hover-active"),$(".submenu",this).hide()}}),$("#float-sidebar").size()>0){var t=0,e=0,a=0,i=0;$(window).scroll(function(){$("#float-sidebar").hasClass("scrolling")||(t=$("#float-sidebar").offset().top,e=$("#float-terminate").offset().top,a=$("#float-sidebar").height()),$(window).scrollTop()>t?($("#float-sidebar").addClass("scrolling"),i=$(window).scrollTop()-t+20,i>e-t-a&&(i=e-t-a)):($("#float-sidebar").removeClass("scrolling"),i=0),$("#float-sidebar").css({top:i})})}var o=190,n=237;$(".slider",".with-scroll").each(function(){var t=$(this);t.css("width",o*$(".video-box",t).size()+n*$(".horizontal-box",t).size())}),$(".next,.prev",".with-scroll").on("click",function(){var t=$(this);if(!t.hasClass("disabled")){var e=$(".slider",t.closest(".with-scroll")),a=e.width(),i=-1*parseInt(e.css("left"));isNaN(i)&&(i=0);var n=0;if(n=t.hasClass("next")?Math.min(i+5*o,a-5*o):Math.max(i-5*o,0),n!=i){var s=$(".prev",t.closest(".with-scroll"));n>0?s.removeClass("disabled"):s.addClass("disabled");var l=$(".next",t.closest(".with-scroll"));n