var MyTheme={"Browser":{url:document.URL,domain:document.domain,title:document.title,language:(navigator.browserLanguage||navigator.language).toLowerCase(),canvas:function(){return !!document.createElement("canvas").getContext}(),useragent:function(){var a=navigator.userAgent;return{mobile:!!a.match(/AppleWebKit.*Mobile.*/),ios:!!a.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),android:-1<a.indexOf("Android")||-1<a.indexOf("Linux"),iPhone:-1<a.indexOf("iPhone")||-1<a.indexOf("Mac"),iPad:-1<a.indexOf("iPad"),trident:-1<a.indexOf("Trident"),presto:-1<a.indexOf("Presto"),webKit:-1<a.indexOf("AppleWebKit"),gecko:-1<a.indexOf("Gecko")&&-1==a.indexOf("KHTML"),weixin:-1<a.indexOf("MicroMessenger")}}()},"Other":{"Player":function(){if($("#player-left").length){var PlayerLeft=$("#player-left");var PlayerSide=$("#player-sidebar");var LeftHeight=PlayerLeft.outerHeight();var Position=$("#playlist li.active").position().top;$("#player-sidebar-is").click(function(){PlayerSide.toggle();if(PlayerSide.css("display")==="none"){PlayerLeft.css("width","100%");$(this).html("<i class='fa fa-angle-left'></i>")}if(PlayerSide.css("display")==="block"){PlayerLeft.css("width","");$(this).html("<i class='fa fa-angle-right'></i>")}});if(!MyTheme.Browser.useragent.mobile){PlayerSide.css({"height":LeftHeight,"overflow":"auto"});PlayerSide.scrollTop(Position);if($(".player-fixed").length){$(window).scroll(function(){if($(window).scrollTop()>window.outerHeight){$(".player-fixed").addClass("fixed fadeInDown");$(".player-fixed-off").show()}else{if($(window).scrollTop()<window.outerHeight){$(".player-fixed").removeClass("fixed fadeInDown");$(".player-fixed-off").hide()}}})}$(".player-fixed-off").click(function(){$(".player-fixed").removeClass("fixed fadeInDown")})}}},"Close":function(){$(".close-btn").on("click",function(){$(this).parents(".close-box").remove()})},}};$(function(){MyTheme.Other.Player();MyTheme.Other.Close()});