var wimpyReg="";var wimpySwfBasename="rave.swf";var wimpyAppBasename="rave.php";var wimpyPopout="rave_popout.html";var wimpyFullscreen="rave_fullscreen.html";var defaultWimpyConfigs=new Object();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="Fwickimedia Player";defaultWimpyConfigs.tptBkgd="yes";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(a){var b="Wimpy is ready:"+a+"<br>";writeitAppend(b,"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 randomNumber(a,b){return(a+Math.floor(Math.random()*(b-a+1)))}function path_parts(a){if(a.lastIndexOf("/")==a.length-1){a=a.substr(0,a.length-1)}var b=a.split("/");var c=b.pop();var d=c.split(".");var e="";if(d.length>1){e=d.pop()}var f=d.join(".");if(e==""){b.push(c)}var g=b.join("/");if(g.length>0){g=g+"/"}var h=new Object();h.filename=c;h.extension=e;h.basename=f;h.basepath=g;h.filepath=a;return h}function getExtension(a){return unescape(a).split("/").pop().split(".").pop().toLowerCase()}function trim(a){return a.replace(/^\s+|\s+$/g,"")}function stripWhiteSpace(a){var b=a.split("\n").join("").split("\r\n").join("").split("\t").join("").split("%0A").join("").split("%09").join("");return b}function getQueryString(){var a=new Array();var q=window.location.search||document.location.hash;var b=q.substring(1);var c=b.split('&');for(var i=0;i<c.length;i++){var d=c[i].indexOf('=');if(d>0){var e=c[i].substring(0,d);var f=c[i].substring(d+1);a[e]=f}}return a}var XMLio=[];function XMLimport(a,b){if(window.ActiveXObject){var c=XMLio.length;var d=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Microsoft.XMLDOM"];for(var i=0;!XMLio[c]&&i<d.length;i++){try{XMLio[c]=new ActiveXObject(d[i])}catch(e){}}if(XMLio[c]){XMLio[c].onreadystatechange=new Function('if( XMLio['+(c)+'].readyState == 4 ) { '+b+'(XMLio['+(c)+'].responseXML);}');if(XMLio[c].load){XMLio[c].load(a)}else{XMLio[c].open('GET',a,true);XMLio[c].send(null)}return true}}else{var c=XMLio.length;XMLio[c]=new XMLHttpRequest();XMLio[c].onreadystatechange=new Function('if(XMLio['+(c)+'].readyState == 4){if(XMLio['+(c)+'].status == 200 ) {'+b+'(XMLio['+(c)+'].responseXML);} else {'+b+'(false);}}');XMLio[c].open("GET",a,true);XMLio[c].send(null);return true}return false}function makeWimpyPlayer(a,b){var c=a||"";var b=b||"flashcontent";if(typeof(c)=="string"){var c=defaultWimpyConfigs;if(c!=""){c.playlist=a}}for(var d in defaultWimpyConfigs){c[d]=c[d]||defaultWimpyConfigs[d]}if(c.bkgdColor.substring(0,1)!="#"){c.bkgdColor="#"+c.bkgdColor}var e=new SWFObject(c.wimpySwf+"?cachebust="+new Date().getTime(),"wimpy",c.wimpyWidth,c.wimpyHeight,"8",c.bkgdColor);c["wimpyHTMLpageTitle"]="";c["wimpyJS"]="";c["wimpySwf"]="";c["wimpyWidth"]="";c["wimpyHeight"]="";c["bkgdColor"]="";c["hide_files"]="";c["hide_folders"]="";c["findAllMedia"]="";for(var d in c){if(d=="playlist"){var f=c[d]}else{var f=encodeURI(c[d])}if(f!=""){e.addVariable(d,f)}}e.addParam("scale","noscale");e.addParam("salign","lt");e.addParam("allowScriptAccess","always");e.addParam("allowFullScreen","true");e.addParam("menu","false");e.write(b)}var wimpy_popout_window;function wimpyIsOpen(){if(!wimpy_popout_window||wimpy_popout_window.closed){return false}else{return true}}function notifyOpener(){if(self.opener||!self.opener.wimpy_popout_window){self.opener.wimpy_popout_window=self}}function wimpy_popAndPlay(a,b,c,d,e){var a=a||wimpyPopout;var f=f||"";var b=b||defaultWimpyConfigs.wimpyWidth;var c=c||defaultWimpyConfigs.wimpyHeight;var e=e||"";var g="a"+randomNumber(1,1000);var h=a+"?w="+b+"&h="+c+"&startPlayingOnload="+e+"&playlist="+d;wimpy_popout_window=window.open(h,g,'width='+b+',height='+c)}function wimpy_popout_make(){var a=getQueryString();var b=path_parts(location.href);var c=new SWFObject(b.basepath+wimpySwfBasename+"?cachebust="+new Date().getTime(),"wimpy",a['w'],a['h'],"8","#000000");c.addVariable("wimpyPop","yes");c.addParam("scale","noscale");c.addParam("salign","lt");c.addParam("allowScriptAccess","always");c.addParam("allowFullScreen","true");c.addParam("menu","false");c.write("flashcontent");setInterval(notifyOpener,1000)}function wimpy_fullscreen(a){var b="a"+randomNumber(1,1000);window.open(a+wimpyFullscreen,b,'resizable=yes')}function wimpy_fullscreen_make(){window.moveTo(0,0);window.resizeTo(screen.availWidth/2,screen.availHeight/2);var a=path_parts(location.href);var b=new SWFObject(a.basepath+wimpySwfBasename+"?cachebust="+new Date().getTime(),"wimpyFS","100%","100%","8","#000000");b.addVariable("wimpyFS","yes");b.addParam("scale","noscale");b.addParam("salign","lt");b.addParam("allowScriptAccess","always");b.addParam("menu","false");b.write("flashcontent")}var wimpyUserAgent=navigator.appName.indexOf("Microsoft");function wimpy_play(){if(wimpyUserAgent!=-1){return window["wimpy"].js_wimpy_play()}else{return document["wimpy"].js_wimpy_play()}}function wimpy_stop(){if(wimpyUserAgent!=-1){return window["wimpy"].js_wimpy_stop()}else{return document["wimpy"].js_wimpy_stop()}}function wimpy_pause(){if(wimpyUserAgent!=-1){return window["wimpy"].js_wimpy_pause()}else{return document["wimpy"].js_wimpy_pause()}}function wimpy_next(){if(wimpyUserAgent!=-1){return window["wimpy"].js_wimpy_next()}else{return document["wimpy"].js_wimpy_next()}}function wimpy_prev(){if(wimpyUserAgent!=-1){return window["wimpy"].js_wimpy_prev()}else{return document["wimpy"].js_wimpy_prev()}}function wimpy_gotoTrack(a){if(wimpyUserAgent!=-1){return window["wimpy"].js_wimpy_gotoTrack(a)}else{return document["wimpy"].js_wimpy_gotoTrack(a)}}function wimpy_clearPlaylist(){if(wimpyUserAgent!=-1){return window["wimpy"].js_wimpy_clearPlaylist()}else{return document["wimpy"].js_wimpy_clearPlaylist()}}function wimpy_appendPlaylist(a,b){if(wimpyUserAgent!=-1){return window["wimpy"].js_wimpy_appendPlaylist(a,b)}else{return document["wimpy"].js_wimpy_appendPlaylist(a,b)}}function wimpy_getTrackInfo(a){var b=a||false;if(wimpyUserAgent!=-1){return window["wimpy"].js_wimpy_getTrackInfo(b)}else{return document["wimpy"].js_wimpy_getTrackInfo(b)}}function wimpy_loadExternalPlaylist(a,b){if(wimpyUserAgent!=-1){return window["wimpy"].js_wimpy_loadExternalPlaylist(a,b)}else{return document["wimpy"].js_wimpy_loadExternalPlaylist(a,b)}}function wimpy_amReady_ask(){if(wimpyUserAgent!=-1){return window["wimpy"].js_wimpy_amReady_ask()}else{return document["wimpy"].js_wimpy_amReady_ask()}}function wimpy_setVolume(a){if(wimpyUserAgent!=-1){return window["wimpy"].js_wimpy_setVolume(a)}else{return document["wimpy"].js_wimpy_setVolume(a)}}function wimpy_setLoopTrackState(a){if(wimpyUserAgent!=-1){return window["wimpy"].js_wimpy_setLoopTrackState(a)}else{return document["wimpy"].js_wimpy_setLoopTrackState(a)}}function wimpy_setRandomState(a){if(wimpyUserAgent!=-1){return window["wimpy"].js_wimpy_setRandomState(a)}else{return document["wimpy"].js_wimpy_setRandomState(a)}}function wimpy_setRepeatState(a){if(wimpyUserAgent!=-1){return window["wimpy"].js_wimpy_setRepeatState(a)}else{return document["wimpy"].js_wimpy_setRepeatState(a)}}function wimpy_setMuteState(a){if(wimpyUserAgent!=-1){return window["wimpy"].js_wimpy_setMuteState(a)}else{return document["wimpy"].js_wimpy_setMuteState(a)}}function wimpy_updateInfoDisplay(a,b){if(wimpyUserAgent!=-1){return window["wimpy"].js_wimpy_updateInfoDisplay(a,b)}else{return document["wimpy"].js_wimpy_updateInfoDisplay(a,b)}}function wimpy_getPlayheadPercent(){if(wimpyUserAgent!=-1){return window["wimpy"].js_wimpy_getPlayheadPercent()}else{return document["wimpy"].js_wimpy_getPlayheadPercent()}}function wimpy_getPlayheadSeconds(){if(wimpyUserAgent!=-1){return window["wimpy"].js_wimpy_getPlayheadSeconds()}else{return document["wimpy"].js_wimpy_getPlayheadSeconds()}}function wimpy_setPlayheadPercent(a){if(wimpyUserAgent!=-1){return window["wimpy"].js_wimpy_setPlayheadPercent(a)}else{return document["wimpy"].js_wimpy_setPlayheadPercent(a)}}function wimpy_setPlayheadSeconds(a){if(wimpyUserAgent!=-1){return window["wimpy"].js_wimpy_setPlayheadSeconds(a)}else{return document["wimpy"].js_wimpy_setPlayheadSeconds(a)}}function wimpy_getLoadPercent(){var a="";if(wimpyUserAgent!=-1){a=window["wimpy"].js_wimpy_getLoadPercent()}else{a=document["wimpy"].js_wimpy_getLoadPercent()}return a}function wimpy_getLoadState(){var a="";if(wimpyUserAgent!=-1){return window["wimpy"].js_wimpy_getLoadState()}else{return document["wimpy"].js_wimpy_getLoadState()}return a}function wimpy_getPlayerState(){var a="";if(wimpyUserAgent!=-1){return window["wimpy"].js_wimpy_getPlayerState()}else{return document["wimpy"].js_wimpy_getPlayerState()}return a}function wimpy_getTotalPlaylistItems(){var a="";if(wimpyUserAgent!=-1){a=window["wimpy"].js_wimpy_getTotalPlaylistItems()}else{a=document["wimpy"].js_wimpy_getTotalPlaylistItems()}return a}function wimpy_getPlaylist(){var a;if(wimpyUserAgent!=-1){a=window["wimpy"].js_wimpy_getPlaylist()}else{a=document["wimpy"].js_wimpy_getPlaylist()}return a}function wimpy_getPlaylistXML(){var a="";if(wimpyUserAgent!=-1){a=window["wimpy"].js_wimpy_getPlaylistXML()}else{a=document["wimpy"].js_wimpy_getPlaylistXML()}return a}function wimpy_callPlugin(a,b){var c="";if(wimpyUserAgent!=-1){c=window["wimpy"].js_wimpy_callPlugin(a,b)}else{c=document["wimpy"].js_wimpy_callPlugin(a,b)}return c}function wimpy_resume_kill(){var a="";if(wimpyUserAgent!=-1){a=window["wimpy"].js_wimpy_resume_kill()}else{a=document["wimpy"].js_wimpy_resume_kill()}return a}function wimpy_amReady(a){if(enableWimpyEvents){handleWimpyInit(a)}}function wimpy_trackStarted(a){if(enableWimpyEvents){handlTrackStarted(a)}}function wimpy_trackDone(a){if(enableWimpyEvents){handleTrackDone(a)}}if(typeof deconcept=="undefined"){var deconcept=new Object()}if(typeof deconcept.util=="undefined"){deconcept.util=new Object()}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object()}deconcept.SWFObject=function(a,b,w,h,d,c,e,f,g,i){if(!document.getElementById){return}this.DETECT_KEY=i?i:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(a){this.setAttribute("swf",a)}if(b){this.setAttribute("id",b)}if(w){this.setAttribute("width",w)}if(h){this.setAttribute("height",h)}if(d){this.setAttribute("version",new deconcept.PlayerVersion(d.toString().split(".")))}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true}if(c){this.addParam("bgcolor",c)}var q=e?e:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var j=(f)?f:window.location;this.setAttribute("xiRedirectUrl",j);this.setAttribute("redirectUrl","");if(g){this.setAttribute("redirectUrl",g)}};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 a=new Array();var b;var c=this.getVariables();for(b in c){a[a.length]=b+"="+c[b]}return a},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 b=this.getParams();for(var c in b){a+=[c]+"=\""+b[c]+"\" "}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 c in e){a+="<param name=\""+c+"\" value=\""+e[c]+"\" />"}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 n=(typeof a=="string")?document.getElementById(a):a;n.innerHTML=this.getSWFHTML();return true}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"))}}return false}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var a=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){a=new deconcept.PlayerVersion(x.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 b=1;var c=3;while(b){try{c++;b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+c);a=new deconcept.PlayerVersion([c,0,0])}catch(e){b=null}}}else{try{var b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(e){try{var b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");a=new deconcept.PlayerVersion([6,0,21]);b.AllowScriptAccess="always"}catch(e){if(a.major==6){return a}}try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(e){}}if(b!=null){a=new deconcept.PlayerVersion(b.GetVariable("$version").split(" ")[1].split(","))}}}return a};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){if(this.major<a.major){return false}if(this.major>a.major){return true}if(this.minor<a.minor){return false}if(this.minor>a.minor){return true}if(this.rev<a.rev){return false}return true};deconcept.util={getRequestParameter:function(a){var q=document.location.search||document.location.hash;if(a==null){return q}if(q){var b=q.substring(1).split("&");for(var i=0;i<b.length;i++){if(b[i].substring(0,b[i].indexOf("="))==a){return b[i].substring((b[i].indexOf("=")+1))}}}return""}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var a=document.getElementsByTagName("OBJECT");for(var i=a.length-1;i>=0;i--){a[i].style.display="none";for(var x in a[i]){if(typeof a[i][x]=="function"){a[i][x]=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;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;
