
var wimpyButtonRewindOrPause="pause";var wimpyUserAgent=navigator.appName.indexOf("Microsoft");var wimpyButtonIDs=wimpyButtonIDs||Array();function wimpyButtonStopOthers(myid_in){for(i=0;i<wimpyButtonIDs.length;i++){if(wimpyButtonIDs[i][0]!=myid_in){var el=document.getElementById(wimpyButtonIDs[i][0]);if(wimpyButtonRewindOrPause=="pause"){el.js_wimpy_pause();}else{el.js_wimpy_stop();}}}}
function wimpyButtonTrackStarted(fileName){var len=wimpyButtonIDs.length;for(i=0;i<len;i++){if(unescape(wimpyButtonIDs[i][1])==unescape(fileName)){wimpyButtonStopOthers(wimpyButtonIDs[i][0]);break;}}}
function writeWimpyButton(theFile,wimpyWidth,wimpyHeight,wimpyConfigs,backgroundColor){var wimpyReg="NHlLTCU1Q0VHd2YlN0VRcnAlN0Nxa00lMkYlM0ZteSU2MHp1S0VPb3klM0FpemY3THdGRWElM0FoRXElM0NG";var defaultWidth=35;var defaultHeight=35;var defaultConfigs="";var baseURL="";var wimpySwf="includes/wimpy_button.swf";var wimpyWidth=(wimpyWidth==null)?defaultWidth:wimpyWidth;var wimpyHeight=(wimpyHeight==null)?defaultHeight:wimpyHeight;var wimpyConfigs=(wimpyConfigs==null)?defaultConfigs:wimpyConfigs;var backgroundColor=(backgroundColor==null)?false:backgroundColor;var myid="wimpybutton"+Math.round((Math.random()*1000)+1);var myInfo=Array(myid,baseURL+theFile);wimpyButtonIDs[wimpyButtonIDs.length]=myInfo;var flashCode="";var newlineChar="\n";var backgroundColor=(backgroundColor==null)?false:backgroundColor;if(typeof(backgroundColor)=="string"){var Astring=backgroundColor.split("");if(Astring[0]=="#"){Astring.shift();backgroundColor=Astring.join("");}}
if(backgroundColor==false){tptParam='<param name="wmode" value="transparent" />'+newlineChar;tptEmbed=' wmode="transparent"';}else{tptParam='<param name="bgcolor" value="#'+backgroundColor+'" />'+newlineChar;tptEmbed=' bgcolor="#'+backgroundColor+'"';}
flashCode+='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+wimpyWidth+'" height="'+wimpyHeight+'" id="'+myid+'">'+newlineChar;flashCode+='<param name="movie" value="'+wimpySwf+'" />'+newlineChar;flashCode+='<param name="loop" value="false" />'+newlineChar;flashCode+='<param name="menu" value="false" />'+newlineChar;flashCode+='<param name="quality" value="high" />'+newlineChar;flashCode+='<param name="wmode" value="transparent" />'+newlineChar;flashCode+='<param name="allowScriptAccess" value="always" />'+newlineChar;flashCode+='<param name="flashvars" value="theFile='+baseURL+theFile+wimpyConfigs+'&wimpyReg='+wimpyReg+'&myid='+myid+'" />'+newlineChar;flashCode+='<embed src="'+wimpySwf+'" width="'+wimpyWidth+'" height="'+wimpyHeight+'" flashvars="theFile='+baseURL+theFile+wimpyConfigs+'&wimpyReg='+wimpyReg+'&myid='+myid+'"'+tptEmbed+' loop="false" menu="false" quality="high" name="'+myid+'" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>'+newlineChar;document.write(flashCode);}
