var FlashHelper={movieIsLoaded:function(a){if(typeof(a)!="undefined"){return a.PercentLoaded()==100}else{return}false},getMovie:function(a){if(navigator.appName.indexOf("Microsoft")!=-1){return window[a]}else{return document[a]}}};function niftyplayer(a){this.obj=FlashHelper.getMovie(a);if(!FlashHelper.movieIsLoaded(this.obj)){return}this.play=function(){this.obj.TCallLabel("/","play")};this.stop=function(){this.obj.TCallLabel("/","stop")};this.pause=function(){this.obj.TCallLabel("/","pause")};this.playToggle=function(){this.obj.TCallLabel("/","playToggle")};this.reset=function(){this.obj.TCallLabel("/","reset")};this.load=function(b){this.obj.SetVariable("currentSong",b);this.obj.TCallLabel("/","load")};this.loadAndPlay=function(b){this.load(b);this.play()};this.getState=function(){var c=this.obj.GetVariable("playingState");var b=this.obj.GetVariable("loadingState");if(c=="playing"){if(b=="loaded"){return c}else{return b}}if(c=="stopped"){if(b=="empty"){return b}}if(b=="error"){return b}else{return c}return c};this.getPlayingState=function(){return this.obj.GetVariable("playingState")};this.getLoadingState=function(){return this.obj.GetVariable("loadingState")};this.registerEvent=function(b,c){this.obj.SetVariable(b,c)};return this};
