
function WebPageGadgetsCom2() {
  this.gadget_number = '2';
  this.d__background_color = '#FFFFFF';
  this.d__text_color = '#0000FF';
  this.d__font_size = 12;
  this.d__font_family = 'Verdana';
  this.display = function() {
    this.the_html = '<style type="text/css">   #wpg2 { text-align:center; width:240px; padding:10px 0px 10px 0px; }   #wpg2 a, #wpg2 a:visited { text-decoration:none; }   .wpg2_t { padding-bottom:6px; }   .wpg2_c { font-size:10px; }   #loginBar { background-color:#01273D; } </style> <div id="wpg2_con" class="wpg2"> <div><iframe src="http://www.tcgchat.com/magic-the-gathering-chat.html" style="width:97%; height:321px; overflow:auto;" alt="Magic The Gathering Chat Room"></iframe></div> <div class="clr"></div> </div>  ';
    document.write(this.the_html);
    this.the_body_tag = document.getElementsByTagName("body")[0];
    this.the_css = document.getElementById('wpg' + this.gadget_number).style;
    if(this.background_color) { this.the_css.backgroundColor = this.background_color; } else { this.the_css.backgroundColor = this.d__background_color; }
    if(this.text_color) {
      this.the_css.color = this.text_color;
      this.the_body_tag.setAttribute('link', this.text_color);
	  this.the_body_tag.setAttribute('alink', this.text_color);
 	  this.the_body_tag.setAttribute('vlink', this.text_color);
    }
    else {
      this.the_css.color = this.d__text_color;
      this.the_body_tag.setAttribute('link', this.d__text_color);
	  this.the_body_tag.setAttribute('alink', this.d__text_color);
	  this.the_body_tag.setAttribute('vlink', this.d__text_color);
    }
    if(this.font_size) { this.the_css.fontSize = this.font_size; } else { this.the_css.fontSize = this.d__font_size; }
    if(this.font_family) { this.the_css.fontFamily = this.font_family; } else { this.the_css.fontFamily = this.d__font_family; }
  }
}