// wimpySwf
// URl to where you have wimpy.swf uploaded to your server.
// wimpySwf = "http://www/path/to/wimpy.swf";
wimpySwf = "wimpy.swf";
//
// wimpySkin
// URL to skin_name.xml file
wimpySkin = "skin_bop.xml";
//
// wimpyConfigFile
// URL to config file. if this is used, the config file will 
// over-ride the options set below.
wimpyConfigFile = "";
//
// trackPlays
// URL to script that receives information about the file
trackPlays = "";
//
// voteScript
// URL to script that receives information about the file
voteScript = "";
//
// defaultImage
// URL to default iamge (jpg or swf format only)
defaultImage = "";
//
// startPlayingOnload
// This should be pretty easy to understand.
// Options: "yes" or "no"
startPlayingOnload = "yes";
//
// shuffleOnLoad
// This should be pretty easy to understand.
// Options: "yes" or "no"
shuffleOnLoad = "yes";
//
// randomOnLoad
// This should be pretty easy to understand.
// Options: "yes" or "no"
randomOnLoad = "yes";
//
// displayDownloadButton
// This should be pretty easy to understand. Download links will open files in a new window.
// Options: "yes" or "no"
displayDownloadButton = "no";
//
// startOnTrack
// This will cause wimpy to start on a specific track in the playlist. 
// The number used will be the track number Wimpy will start to play 
// when Wimpy loads up. Using this option will over-ride "startPlayingOnload" 
// -- if startPlayingOnload is set to "no" and this option is set, then Wimpy 
// will automatically set startPlayingOnload to "yes"
// Options: "yes" or "no"
startOnTrack = "no";
//
// autoAdvance
// Force the user to click "next" to advance to the next track, 
// or automatically advance  )keep on playing tracks)
// Options: "yes" or "no"
autoAdvance = "yes";
//
// popUpHelp
// This should be pretty easy to understand.
// Options: "yes" or "no"
popUpHelp = "no";
//
// scrollInfoDisplay
// This should be pretty easy to understand.
// Options: "yes" or "no"
scrollInfoDisplay = "yes";
//
// infoDisplayTime
// This will set the speed of the scroller. 
// Higher values will increase the scroll speed.
infoDisplayTime = "3";
//
// bufferAudio
// This will cause the player to "wait" the specified period of time 
// (in seconds) before the track actually starts to play. This option 
// is good for slow internet connections, since it allows the file to 
// load X number of seconds before it starts to play -- thereby minimizing 
// a "choppy" playback. If the end user has a fast connection, the track 
// may not hesitate for the total number of seconds used for this option 
// and may start to play much sooner.
// 
// Options: Number of seconds to "wait" before playing track. (For slow connections only)
bufferAudio = "5";
//
// theVolume
// This will set the "default" volume percentage when the player starts up. 
// Options: Any number from 0 to 100
theVolume = "100";
//
// defaultVisualExt
// If you are using a skin that displays cover art, wimpy will automatically attempt 
// to load an image that has the same name as your audio.mp3 file. For example, 
// if you have a file located here:
// http://www.yoursite.com/mp3s/track1.mp3
// Then wimpy will attempt to load:
// http://www.yoursite.com/mp3s/track1.jpg
// Set this to the type of file it should load. 
// Options: "swf" or "jpg"
defaultVisualExt = "jpg";
//
//
/////////////////////////////////////////////////////////////////
//                                                             //
//                  DO NOT EDIT BELOW HERE:                    //
//                                                             //
/////////////////////////////////////////////////////////////////
randNum = 1;
function makeWimpyPlayer(theWidth, theHeight, theBkgdColor, thePlaylist){
	AmyConfigs = Array();
	AmyConfigs[AmyConfigs.length] = "wimpySkin="+wimpySkin;
	AmyConfigs[AmyConfigs.length] = "trackPlays="+trackPlays;
	AmyConfigs[AmyConfigs.length] = "voteScript="+voteScript;
	AmyConfigs[AmyConfigs.length] = "defaultImage="+defaultImage;
	AmyConfigs[AmyConfigs.length] = "startPlayingOnload="+startPlayingOnload;
	AmyConfigs[AmyConfigs.length] = "shuffleOnLoad="+shuffleOnLoad;
	AmyConfigs[AmyConfigs.length] = "randomOnLoad="+randomOnLoad;
	AmyConfigs[AmyConfigs.length] = "displayDownloadButton="+displayDownloadButton;
	AmyConfigs[AmyConfigs.length] = "startOnTrack="+startOnTrack;
	AmyConfigs[AmyConfigs.length] = "autoAdvance="+autoAdvance;
	AmyConfigs[AmyConfigs.length] = "popUpHelp="+popUpHelp;
	AmyConfigs[AmyConfigs.length] = "scrollInfoDisplay="+scrollInfoDisplay;
	AmyConfigs[AmyConfigs.length] = "infoDisplayTime="+infoDisplayTime;
	AmyConfigs[AmyConfigs.length] = "bufferAudio="+bufferAudio;
	AmyConfigs[AmyConfigs.length] = "theVolume="+theVolume;
	AmyConfigs[AmyConfigs.length] = "defaultVisualExt="+defaultVisualExt;
	myConfigs = AmyConfigs.join("&");
	randNum++;
	flashVersion = "6,0,47,0";
	if(theBkgdColor != false){
		bkgdColor = theBkgdColor
		tptBkgd_param = "";
		tptBkgd_embed = "";
	} else {
		bkgdColor = "000000";
		tptBkgd_param = '<param name="wmode" value="transparent" />';
		tptBkgd_embed = 'wmode="transparent" ';
	}
	if(thePlaylist){
		writePlaylist = "&playlist="+thePlaylist;
	} else {
		writePlaylist = "";
	}
	if(wimpyConfigFile.length > 4){
		altString = '&wimpyConfigs='+wimpyConfigFile;
	} else {
		altString = "&"+myConfigs;
	}
	queryString = wimpySwf +'?x='+randNum+altString+writePlaylist;
	flashCode = '';
	flashCode += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+flashVersion+'" width="'+theWidth+'" height="'+theHeight+'" name="wimpy'+randNum+'" id="wimpy'+randNum+'">';
	flashCode += '<param name="movie" value="'+queryString+'" />';
	flashCode += '<param name="loop" value="false" />';
	flashCode += '<param name="menu" value="false" />';
	flashCode += '<param name="quality" value="high" />';
	flashCode += '<param name="scale" value="noscale" />';
	flashCode += '<param name="salign" value="lt" />';
	flashCode += '<param name="bgcolor" value="'+bkgdColor+'" />';
	flashCode += tptBkgd_param;
	flashCode += '<embed src="'+queryString+'" width="'+theWidth+'" height="'+theHeight+'" bgcolor="'+bkgdColor+'" loop="false" menu="false" quality="high" scale="noscale" salign="lt" name="wimpy'+randNum+'" id="wimpy'+randNum+'" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" '+tptBkgd_embed+'/></object>';
	document.write(flashCode);
	//document.write('<textarea name="textarea" cols="30" rows="5" wrap="VIRTUAL">'+flashCode+'</textarea>');
}

<!-- END WIMPY PLAYER CODE -->
