/*! 2018-07-13 */
var playbox=function(){var a=function(){var a=this;a.box=null,a.player=null,a.src=null,a.on=!0,a.autoPlayFix={on:!0,evtName:"ontouchstart"in window?"touchend":"click"}};return a.prototype={init:function(a){return this.box="string"==typeof a?document.getElementById(a):a,this.player=this.box.querySelectorAll("audio")[0],this.src=this.player.src,this.init=function(){return this},this.autoPlayEvt(!0),this},play:function(){this.autoPlayFix.on&&(this.autoPlayFix.on=!1,this.autoPlayEvt(!1)),this.on=!this.on,1==this.on?(this.player.src=this.src,this.player.play()):(this.player.pause(),this.player.src=null),"function"==typeof this.play_fn&&this.play_fn.call(this)},handleEvent:function(a){this.play()},autoPlayEvt:function(a){a||this.autoPlayFix.on?document.body.addEventListener(this.autoPlayFix.evtName,this,!1):document.body.removeEventListener(this.autoPlayFix.evtName,this,!1)}},new a}();playbox.play_fn=function(){this.box.className=this.on?"btn_music on":"btn_music"};