/**
 * BandMix.com - http://www.bandmix.com/
 * Copyright (C) 2010 BandMix.com
 *
 * V 1.0.0 BandMix.com profile widget
 */
var w =
  '<table cellpadding="0" cellspacing="0" border="0" style="margin:0;">'
+ '  <tr>'
+ '    <td style="vertical-align:top; width:100px;">'
+ '      <a href="http://www.bandmix.com/rljames29/"><img src="http://s3.amazonaws.com/bandmix-us/354832/495603-s.jpg" height="100" width="100" alt="Rick James Band image" title="Rick James Band" style="border:1px solid #000000;" /></a>'
+ '    </td>'
+ '    <td style="padding-left:10px; vertical-align:top;">'
+ '      <strong style="font-size:16px;">Rick James Band</strong><br /><br />'
+ '      <strong>Band</strong> '
+ '      in Springfield, '
+ '      <abbr title="Ohio">OH</abbr>.<br />'
+ '      <strong>Style:</strong> Alternative/Modern Rock, Country, Christian Contemporary.<br />'
+ '      <strong>Now seeking:</strong> Drums.<br /><br />'
+ '      <a href="http://www.bandmix.com/rljames29/">Rick James Band\'s</a> Band profile.'
+ '    </td>'
+ '  </tr>'
+ '</table>';

function BMIX(background, border, link, color) {
    this.background = background;
    this.border = border;
    this.link = link;
    this.color = color;
    this.code = '';
    this.render = function() {
        background = 'background-color:' + ( ( this.background != '') ? this.background : 'transparent' );
        border = 'border:' + ( (this.border != '') ? '1px solid ' + this.border : 'none' );
        link = this.link;
        color = 'color:' + this.color;

        this.code = ''
                    + '<div style="padding:1px;'
                    + background + ';'
                    + border + ';'
                    + color
                    + ';">'
                    + w
                    + '</div>';
        return this
    };
    this.write = function() {
        document.write(this.code);
    };
};