var wimpyReg="",wimpySwfBasename="rave.swf",wimpyAppBasename="rave.php",wimpyPopout="rave_popout.html",wimpyFullscreen="rave_fullscreen.html",defaultWimpyConfigs={};defaultWimpyConfigs.wimpyReg=wimpyReg;defaultWimpyConfigs.wimpySwf=wimpySwfBasename;defaultWimpyConfigs.wimpyApp=wimpyAppBasename;defaultWimpyConfigs.wimpySkin="";defaultWimpyConfigs.startPlayingOnload="";defaultWimpyConfigs.startOnTrack="";defaultWimpyConfigs.autoAdvance="";defaultWimpyConfigs.loopTrack="";defaultWimpyConfigs.repeatPlaylist="";defaultWimpyConfigs.randomPlayback="";defaultWimpyConfigs.randomOnLoad="";defaultWimpyConfigs.sortField="";defaultWimpyConfigs.sortOrder="";defaultWimpyConfigs.bufferSeconds="";defaultWimpyConfigs.theVolume="";defaultWimpyConfigs.limitPlaytime="";defaultWimpyConfigs.resume="";defaultWimpyConfigs.scrollFormat="";defaultWimpyConfigs.timeFormat="";defaultWimpyConfigs.infoDisplaySpeed="";defaultWimpyConfigs.fsMode="";defaultWimpyConfigs.setAspectRatio="";defaultWimpyConfigs.clickWindowAction="";defaultWimpyConfigs.infoButtonAction="";defaultWimpyConfigs.linkToWindow="";defaultWimpyConfigs.coverartBasename="";defaultWimpyConfigs.popUpHelp="";defaultWimpyConfigs.enableDownloads="";defaultWimpyConfigs.useSysCodePage="";defaultWimpyConfigs.wimpyHTMLpageTitle="";defaultWimpyConfigs.tptBkgd="";defaultWimpyConfigs.bkgdColor="#000000";defaultWimpyConfigs.wimpyWidth="250";defaultWimpyConfigs.wimpyHeight="290";defaultWimpyConfigs.debugMode="";defaultWimpyConfigs.startupLogo="";defaultWimpyConfigs.defaultImage="";defaultWimpyConfigs.onTrackComplete="";defaultWimpyConfigs.onTrackCompleteURL="";defaultWimpyConfigs.plugPlaylist="";defaultWimpyConfigs.plugEvery="";defaultWimpyConfigs.getMyid3info="";defaultWimpyConfigs.findAllMedia="";defaultWimpyConfigs.hide_folders="";defaultWimpyConfigs.hide_files="";defaultWimpyConfigs.playlist="";var enableWimpyEvents=false;function handleWimpyInit(b){var a="Wimpy is ready:"+b+"<br>";writeitAppend(a,"wimpySaid")}function handlTrackStarted(a){var b='Track Started. <br>&nbsp;&nbsp;Track data should be visible in the "Track info" section below.<br>';writeitAppend(b,"wimpySaid");displayPlaylistObject(a)}function handleTrackDone(a){var b='Track Done. <br>&nbsp;&nbsp;Track data should be visible in the "Track info" section below.<br>';writeitAppend(b,"wimpySaid");displayPlaylistObject(a)}function handleLinkClick(a){var b='Link Click. <br>&nbsp;&nbsp;Track "link" field data:'+a+"<br>";writeitAppend(b,"wimpySaid");displayPlaylistObject(a)}function randomNumber(a,b){return a+Math.floor(Math.random()*(b-a+1))}function path_parts(h){var i=unescape(h).split("?"),a=i[0];if(a.lastIndexOf("/")==a.length-1)a=a.substr(0,a.length-1);var e=a.split("/"),g=e.pop(),f=g.split("."),d="";if(f.length>1)d=f.pop();var j=f.join(".");d==""&&e.push(g);var c=e.join("/");if(c.length>0)c=c+"/";var b={};b.filename=g;b.extension=d;b.basename=j;b.basepath=c;b.filepath=a;return b}function getExtension(a){return unescape(a).split("/").pop().split(".").pop().toLowerCase()}function trim(a){return a.replace(/^\s+|\s+$/g,"")}function stripWhiteSpace(a){return a.split("\n").join("").split("\r\n").join("").split("\t").join("").split("%0A").join("").split("%09").join("")}function getQueryString(){for(var d=[],h=window.location.search||document.location.hash,e=h.substring(1),b=e.split("&"),a=0;a<b.length;a++){var c=b[a].indexOf("=");if(c>0){var f=b[a].substring(0,c),g=b[a].substring(c+1);d[f]=g}}return d}var XMLio=[];function XMLimport(c,b){if(window.ActiveXObject){for(var a=XMLio.length,e=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Microsoft.XMLDOM"],d=0;!XMLio[a]&&d<e.length;d++)try{XMLio[a]=new ActiveXObject(e[d])}catch(f){}if(XMLio[a]){XMLio[a].onreadystatechange=new Function("if( XMLio["+a+"].readyState == 4 ) { "+b+"(XMLio["+a+"].responseXML);}");if(XMLio[a].load)XMLio[a].load(c);else{XMLio[a].open("GET",c,true);XMLio[a].send(null)}return true}}else{var a=XMLio.length;XMLio[a]=new XMLHttpRequest;XMLio[a].onreadystatechange=new Function("if(XMLio["+a+"].readyState == 4){if(XMLio["+a+"].status == 200 ) {"+b+"(XMLio["+a+"].responseXML);} else {"+b+"(false);}}");XMLio[a].open("GET",c,true);XMLio[a].send(null);return true}return false}var wimpyDomID="wimpy";function makeWimpyPlayer(d,e){var a=d||"",e=e||"flashcontent";if(typeof a=="string"){var a=defaultWimpyConfigs;if(a!="")a.playlist=d}for(var c in defaultWimpyConfigs)a[c]=a[c]||defaultWimpyConfigs[c];if(a.bkgdColor.substring(0,1)!="#")a.bkgdColor="#"+a.bkgdColor;var b=new SWFObject(a.wimpySwf+"?cachebust="+(new Date).getTime(),wimpyDomID,a.wimpyWidth,a.wimpyHeight,"8",a.bkgdColor);a.wimpyHTMLpageTitle="";a.wimpyJS="";a.wimpySwf="";a.wimpyWidth="";a.wimpyHeight="";a.bkgdColor="";a.hide_files="";a.hide_folders="";a.findAllMedia="";for(var c in a){if(c=="playlist")var f=a[c];else var f=encodeURI(a[c]);f!=""&&b.addVariable(c,f)}b.addParam("scale","noscale");b.addParam("salign","lt");b.addParam("allowScriptAccess","always");b.addParam("allowFullScreen","true");b.addParam("menu","false");b.addParam("wmode","transparent");b.write(e)}var wimpy_popout_window;function wimpyIsOpen(){return!wimpy_popout_window||wimpy_popout_window.closed?false:true}function isNull(a){return a=="undefined"||a=="null"||a==""||a==null?true:false}function notifyOpener(){if(self.opener||!self.opener.wimpy_popout_window)self.opener.wimpy_popout_window=self}function wimpy_popAndPlay(d,b,a,e,c){if(isNull(d))d=wimpyPopout;if(isNull(b))b=defaultWimpyConfigs.wimpyWidth;if(isNull(a))a=defaultWimpyConfigs.wimpyHeight;if(isNull(c))c="";var f="a"+randomNumber(1,1e3),g=d+"?w="+b+"&h="+a+"&startPlayingOnload="+c+"&playlist="+e;wimpy_popout_window=window.open(g,f,"width="+b+",height="+a)}function wimpy_popout_make(){var b=getQueryString(),c=path_parts(location.href),a=new SWFObject(c.basepath+wimpySwfBasename+"?cachebust="+(new Date).getTime(),wimpyDomID,b.w,b.h,"8","#000000");a.addVariable("wimpyPop","yes");a.addParam("scale","noscale");a.addParam("salign","lt");a.addParam("allowScriptAccess","always");a.addParam("allowFullScreen","true");a.addParam("menu","false");a.write("flashcontent");setInterval(notifyOpener,1e3)}function wimpy_fullscreen(a){var b="a"+randomNumber(1,1e3);window.open(a+wimpyFullscreen,b,"resizable=yes")}function wimpy_fullscreen_make(){window.moveTo(0,0);window.resizeTo(screen.availWidth/2,screen.availHeight/2);var b=path_parts(location.href),a=new SWFObject(b.basepath+wimpySwfBasename,"wimpyFS","100%","100%","8","#000000");a.addVariable("wimpyFS","yes");a.addVariable("cachebust",(new Date).getTime());a.addParam("scale","noscale");a.addParam("salign","lt");a.addParam("allowScriptAccess","always");a.addParam("menu","false");a.write("flashcontent")}var wimpyUserAgent=navigator.appName.indexOf("Microsoft");function wimpy_getWimpyByID(){return document.getElementById(wimpyDomID)}function wimpy_play(){return wimpy_getWimpyByID().js_wimpy_play()}function wimpy_stop(){return wimpy_getWimpyByID().js_wimpy_stop()}function wimpy_pause(){return wimpy_getWimpyByID().js_wimpy_pause()}function wimpy_next(){return wimpy_getWimpyByID().js_wimpy_next()}function wimpy_prev(){return wimpy_getWimpyByID().js_wimpy_prev()}function wimpy_gotoTrack(a){return wimpy_getWimpyByID().js_wimpy_gotoTrack(a)}function wimpy_clearPlaylist(){return wimpy_getWimpyByID().js_wimpy_clearPlaylist()}function wimpy_appendPlaylist(a,b){return wimpy_getWimpyByID().js_wimpy_appendPlaylist(a,b)}function wimpy_getTrackInfo(b){var a=b||false;return wimpy_getWimpyByID().js_wimpy_getTrackInfo(a)}function wimpy_loadExternalPlaylist(a,b){return wimpy_getWimpyByID().js_wimpy_loadExternalPlaylist(a,b)}function wimpy_amReady_ask(){return wimpy_getWimpyByID().js_wimpy_amReady_ask()}function wimpy_setVolume(a){return wimpy_getWimpyByID().js_wimpy_setVolume(a)}function wimpy_setLoopTrackState(a){return wimpy_getWimpyByID().js_wimpy_setLoopTrackState(a)}function wimpy_setRandomState(a){return wimpy_getWimpyByID().js_wimpy_setRandomState(a)}function wimpy_setRepeatState(a){return wimpy_getWimpyByID().js_wimpy_setRepeatState(a)}function wimpy_setMuteState(a){return wimpy_getWimpyByID().js_wimpy_setMuteState(a)}function wimpy_updateInfoDisplay(a,b){return wimpy_getWimpyByID().js_wimpy_updateInfoDisplay(a,b)}function wimpy_getPlayheadPercent(){return wimpy_getWimpyByID().js_wimpy_getPlayheadPercent()}function wimpy_getPlayheadSeconds(){return wimpy_getWimpyByID().js_wimpy_getPlayheadSeconds()}function wimpy_setPlayheadPercent(a){return wimpy_getWimpyByID().js_wimpy_setPlayheadPercent(a)}function wimpy_setPlayheadSeconds(a){return wimpy_getWimpyByID().js_wimpy_setPlayheadSeconds(a)}function wimpy_getLoadPercent(){var a="";a=wimpy_getWimpyByID().js_wimpy_getLoadPercent();return a}function wimpy_getLoadState(){var a="";return wimpy_getWimpyByID().js_wimpy_getLoadState();return a}function wimpy_getPlayerState(){var a="";return wimpy_getWimpyByID().js_wimpy_getPlayerState();return a}function wimpy_getTotalPlaylistItems(){var a="";a=wimpy_getWimpyByID().js_wimpy_getTotalPlaylistItems();return a}function wimpy_getPlaylist(){var a;a=wimpy_getWimpyByID().js_wimpy_getPlaylist();return a}function wimpy_getPlaylistXML(){var a="";a=wimpy_getWimpyByID().js_wimpy_getPlaylistXML();return a}function wimpy_callPlugin(b,c){var a="";a=wimpy_getWimpyByID().js_wimpy_callPlugin(b,c);return a}function wimpy_resume_kill(){var a="";a=wimpy_getWimpyByID().js_wimpy_resume_kill();return a}function wimpy_amReady(a){enableWimpyEvents&&handleWimpyInit(a)}function wimpy_trackStarted(a){enableWimpyEvents&&handlTrackStarted(a)}function wimpy_trackDone(a){enableWimpyEvents&&handleTrackDone(a)}function wimpy_linkClick(a){enableWimpyEvents&&handleLinkClick(a)}if(typeof deconcept=="undefined")var deconcept={};if(typeof deconcept.util=="undefined")deconcept.util={};if(typeof deconcept.SWFObjectUtil=="undefined")deconcept.SWFObjectUtil={};deconcept.SWFObject=function(b,a,j,i,c,h,d,e,f,g){if(!document.getElementById)return;this.DETECT_KEY=g?g:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params={};this.variables={};this.attributes=[];b&&this.setAttribute("swf",b);a&&this.setAttribute("id",a);j&&this.setAttribute("width",j);i&&this.setAttribute("height",i);c&&this.setAttribute("version",new deconcept.PlayerVersion(c.toString().split(".")));this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7)deconcept.SWFObject.doPrepUnload=true;h&&this.addParam("bgcolor",h);var l=d?d:"high";this.addParam("quality",l);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var k=e?e:window.location;this.setAttribute("xiRedirectUrl",k);this.setAttribute("redirectUrl","");f&&this.setAttribute("redirectUrl",f)};deconcept.SWFObject.prototype={useExpressInstall:function(a){this.xiSWFPath=!a?"expressinstall.swf":a;this.setAttribute("useExpressInstall",true)},setAttribute:function(a,b){this.attributes[a]=b},getAttribute:function(a){return this.attributes[a]},addParam:function(a,b){this.params[a]=b},getParams:function(){return this.params},addVariable:function(a,b){this.variables[a]=b},getVariable:function(a){return this.variables[a]},getVariables:function(){return this.variables},getVariablePairs:function(){var b=[],a,c=this.getVariables();for(a in c)b[b.length]=a+"="+c[a];return b},getSWFHTML:function(){var a="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath)}a='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'"';a+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';var c=this.getParams();for(var b in c)a+=[b]+'="'+c[b]+'" ';var d=this.getVariablePairs().join("&");if(d.length>0)a+='flashvars="'+d+'"';a+="/>"}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath)}a='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'">';a+='<param name="movie" value="'+this.getAttribute("swf")+'" />';var e=this.getParams();for(var b in e)a+='<param name="'+b+'" value="'+e[b]+'" />';var f=this.getVariablePairs().join("&");if(f.length>0)a+='<param name="flashvars" value="'+f+'" />';a+="</object>"}return a},write:function(a){if(this.getAttribute("useExpressInstall")){var b=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(b)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title)}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var c=typeof a=="string"?document.getElementById(a):a;c.innerHTML=this.getSWFHTML();return true}else this.getAttribute("redirectUrl")!=""&&document.location.replace(this.getAttribute("redirectUrl"));return false}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var b=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var d=navigator.plugins["Shockwave Flash"];if(d&&d.description)b=new deconcept.PlayerVersion(d.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}else if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var a=1,c=3;while(a)try{c++;a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+c);b=new deconcept.PlayerVersion([c,0,0])}catch(e){a=null}}else{try{var a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(e){try{var a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");b=new deconcept.PlayerVersion([6,0,21]);a.AllowScriptAccess="always"}catch(e){if(b.major==6)return b}try{a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(e){}}if(a!=null)b=new deconcept.PlayerVersion(a.GetVariable("$version").split(" ")[1].split(","))}return b};deconcept.PlayerVersion=function(a){this.major=a[0]!=null?parseInt(a[0]):0;this.minor=a[1]!=null?parseInt(a[1]):0;this.rev=a[2]!=null?parseInt(a[2]):0};deconcept.PlayerVersion.prototype.versionIsValid=function(a){return this.major<a.major?false:this.major>a.major?true:this.minor<a.minor?false:this.minor>a.minor?true:this.rev<a.rev?false:true};deconcept.util={getRequestParameter:function(d){var c=document.location.search||document.location.hash;if(d==null)return c;if(c)for(var b=c.substring(1).split("&"),a=0;a<b.length;a++)if(b[a].substring(0,b[a].indexOf("="))==d)return b[a].substring(b[a].indexOf("=")+1);return""}};deconcept.SWFObjectUtil.cleanupSWFs=function(){for(var b=document.getElementsByTagName("OBJECT"),a=b.length-1;a>=0;a--){b[a].style.display="none";for(var c in b[a])if(typeof b[a][c]=="function")b[a][c]=function(){}}};if(deconcept.SWFObject.doPrepUnload)if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs)};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true}if(!document.getElementById&&document.all)document.getElementById=function(a){return document.all[a]};var getQueryParamValue=deconcept.util.getRequestParameter,FlashObject=deconcept.SWFObject,SWFObject=deconcept.SWFObject
