///////////////////////////////////////
// //
// Wimpy Button Maker //
// //
// By Mike Gieson //
// ©2006 Plain Inc. //
// Available at //
// www.wimpyplayer.com //
// //
///////////////////////////////////////
function writeWimpyButton(theFile, wimpyWidth, wimpyHeight, wimpyConfigs, backgroundColor){
var defaultWidth = 35;
var defaultHeight = 35;
var defaultConfigs = "";
var baseURL = "";
var wimpySwf = "http://me.unpluggedsw.com/public/wimpy/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 = Math.round((Math.random()*1000)+1);
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 = ''+newlineChar;
tptEmbed = 'wmode="transparent"'+newlineChar;
} else {
tptParam = ''+newlineChar;
tptEmbed = 'bgcolor="#'+backgroundColor+'"';
}
flashCode += ''+newlineChar;
//document.write('
')+newlineChar;
document.write(flashCode);
}