jQuery(document).ready(function(a){a(".sp-body img").each(function(){a(this).attr({alt:a(this).attr("src"),src:smf_default_theme_url+"/images/loading.gif"})}),a(".sp-body_mobile img").each(window.innerWidth>720?function(){a(this).attr({alt:a(this).attr("src"),src:a(this).attr("src")})}:function(){a(this).attr({alt:a(this).attr("src"),src:smf_default_theme_url+"/images/loading.gif"})}),a("body").on("click",".sp-head",function(){$this=a(this),$this.hasClass("unfolded")?($this.removeClass("unfolded"),$this.next().slideUp("fast"),$this.next().addClass("folded")):($this.addClass("unfolded"),$this.next().slideDown("fast"),$this.next().removeClass("folded")),c=$this.parent().children(".sp-body"),c.find("img").each(function(){a(this).attr("src",a(this).attr("alt"))})}),a("body").on("click",".sp-head_mobile",function(){$this=a(this),$this.hasClass("unfolded")?($this.removeClass("unfolded"),$this.next().slideUp("fast"),$this.next().addClass("folded")):($this.addClass("unfolded"),$this.next().slideDown("fast"),$this.next().removeClass("folded")),c=$this.parent().children(".sp-body_mobile"),c.find("img").each(function(){a(this).attr("src",a(this).attr("alt"))})}),a("body").on("click",".sp-foot",function(){$this=a(this).closest("div.sp-body").prev(),$this.hasClass("unfolded")&&($this.removeClass("unfolded"),$this.next().slideUp("fast"),$this.next().addClass("folded"))}),a("body").on("click",".sp-foot_mobile",function(){$this=a(this).closest("div.sp-body_mobile").prev(),$this.hasClass("unfolded")&&($this.removeClass("unfolded"),$this.next().slideUp("fast"),$this.next().addClass("folded"))})});