// Wimpy JavaScript Button
// Version 1.0
// by Mike Gieson info@wimpyplayer.com
// http://www.wimpyplayer.comx
// ©2002-2006 plaino, inc.


// Please refer to the "wimpy button readme.txt" file for installation and usage instructions.


// WHERE IS WIMPY?
wimpySWF = "http://www.wimpyplayer.com/mp3s/-.swf";

id = 0;
function makeWimpyButton(theFile, theWidth, theHeight, bkgdColor, alignment, playOnLoad){
	//
	// You can set the default values by adjusting the following:
	var theWidth = theWidth || 30;
	var theHeight = theHeight || 30;
	var bkgdColor = bkgdColor || "FFFFFF";
	var alignment = alignment || "absmiddle";
	var playOnLoad = playOnLoad || "no";
	//
	// Do not edit anything below here!!!!
	//
	id++;
	var setAlign = "";
	var content = "";
	//
	if(alignment=="baseline" || alignment=="top" || alignment=="middle" || alignment=="bottom" || alignment=="texttop" || alignment=="absmiddle" || alignment=="left" || alignment=="right"){
		setAlign = ' align="'+alignment+'"';
	}
	content += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,47,0" width="'+theWidth+'" height="'+theHeight+'"'+setAlign+' id="wimpy_button_'+id+'">'+"\n";
	content += '<param name="movie" value="'+wimpySWF+'?theFile='+theFile+'&autoplay='+playOnLoad+'" />'+"\n";
	content += '<param name="quality" value="high" />'+"\n";
	content += '<param name="BGCOLOR" value="#'+bkgdColor+'" />'+"\n";
	content += '<embed src="'+wimpySWF+'?theFile='+theFile+'&autoplay='+playOnLoad+'" width="'+theWidth+'" height="'+theHeight+'"'+setAlign+' quality="high" bgcolor="#'+bkgdColor+'" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="wimpy_button_'+id+'"></embed></object>'+"\n";
	document.write(content);
}