function viewerPrevNext(){jQuery(".bd_rd_prev .wrp").imagesLoaded(function(){var a=jQuery(".bd_rd_prev .wrp");a.css("margin-top",-a.height()/2+50)});jQuery(".bd_rd_next .wrp").imagesLoaded(function(){var a=jQuery(".bd_rd_next .wrp");a.css("margin-top",-a.height()/2+50)})}function viewerList(){var a=jQuery("#viewer_lst");a.find("#viewer_lst_tg").click(function(){if(a.hasClass("open")){a.animate({left:-455},{duration:750,specialEasing:{left:"easeInOutBack"},complete:function(){jQuery(this).removeClass("open")},step:null,queue:false});jQuery.removeCookie("viewer_lst_cookie")}else{a.animate({left:-100},{duration:500,specialEasing:{left:"easeOutBack"}}).addClass("open");jQuery.cookie("viewer_lst_cookie","open")}});a.find("#viewer_lst_scroll").height(a.height()-132).imagesLoaded(function(){a.find("#viewer_lst_scroll").mCustomScrollbar({mouseWheelPixels:240,scrollButtons:{enable:true}})})}jQuery(function(a){viewerPrevNext();viewerList()});jQuery(window).resize(function(){jQuery("#viewer_lst_scroll").height(jQuery("#viewer_lst").height()-132).mCustomScrollbar("update")});