function SoundClass(namemusic,isInMp3,isInOGG,isInAAC){this.soundaudio=document.createElement("audio");if(isInOGG){if(BrowserDetect.browser=="Firefox"){this.soundaudio.setAttribute("src","sound/"+namemusic+".ogg");}}if(isInMp3){if(BrowserDetect.browser!="Firefox"){this.soundaudio.setAttribute("src","sound/"+namemusic+".mp3");}}this.soundaudio.load();}SoundClass.prototype.play=function(){this.soundaudio.play();};SoundClass.prototype.playDelay=function(delay){this.soundaudio.play();};SoundClass.prototype.pause=function(){this.soundaudio.pause();};SoundClass.prototype.setVolume=function(level){this.soundaudio.volume=level;};SoundClass.prototype.playTo=function(time){this.soundaudio.currentTime=time;this.soundaudio.play();};function fakeClick(fn){var $a=$('<a href="#" id="fakeClick"></a>');$a.bind("click",function(e){e.preventDefault();fn();});$("body").append($a);var evt,el=$("#fakeClick").get(0);if(document.createEvent){evt=document.createEvent("MouseEvents");if(evt.initMouseEvent){evt.initMouseEvent("click",true,true,window,0,0,0,0,0,false,false,false,false,0,null);el.dispatchEvent(evt);}}$(el).remove();}
