$(function() {
	// 連携キット、local時はexit
	if ($.LiVE.bdkit && location.protocol=="file:") return;
	
	var $navi = $.LiVE.Elements.WIDGETS.navi.find(".default_sound");
	$navi.each(function() {
		var $this = $(this);
		
		if ($.LiVE.mode.edit.activate == false && $.LiVE.panelsound.useSound == false) {
			$this.hide();
			
		} else {
			$this.find("a")
				.css({ width: $this.width(), height: $this.height() })
				.toggle(function() {
					$.LiVE.panelsound.mute(true);
					$this.css("background-position", "0px -" + $this.height() + "px");
				},
				function() {
					$.LiVE.panelsound.mute(false);
					$this.css("background-position", "0px 0px");
				});
				
		}
		
	});
});