var createAudioController,audioController;createAudioController=function(){var e,f,c,d,a,b;f=function(h){var g;g=jQuery(h).attr("href");if(soundManager.sounds[g]){soundManager.destroySound(g)}soundManager.createSound({id:g,url:g,onplay:c(h),onfinish:d(h),onstop:d(h)})};c=function(g){return function(){jQuery(g).unbind("click");jQuery(g).bind("click",a);jQuery(g).removeClass("play").addClass("stop")}};d=function(g){return function(){jQuery(g).unbind("click");jQuery(g).bind("click",b);jQuery(g).removeClass("stop").addClass("play")}};b=function(h){var g;h.preventDefault();g=jQuery(this).attr("href");soundManager.stopAll();f(this);soundManager.play(g)};a=function(g){g.preventDefault();soundManager.stopAll();d(this)()};e=function(){jQuery("a.audio-clip").each(function(){jQuery(this).html("")}).click(b)};return{init:e}};audioController=createAudioController();
