PolitiFactWidgetUpdate = new function() {
  var BASEURLU = 'http://www.politifact.com/media/js/';
  var STYLESHEETU = 'http://www.politifact.com/media/css/politifactwidget.css';
  var CONTENTURLU = 'http://www.politifact.com/truth-o-meter/widget/updates/3/';
  var ROOTU = 'politifactupdate';

  function requestStylesheetu(stylesheeturlu) {
    stylesheet_u = document.createElement("link");
    stylesheet_u.rel = "stylesheet";
    stylesheet_u.type = "text/css";
    stylesheet_u.href = stylesheeturlu;
    stylesheet_u.media = "all";
    document.lastChild.firstChild.appendChild(stylesheet_u);
  }

  function requestContentu( local ) {
    var scriptu = document.createElement('script');
    // How you'd pass the current URL into the request
    // script.src = CONTENTURLU + '&url=' + escape(local || location.href);
    scriptu.src = CONTENTURLU;
    // IE7 doesnŐt like this: document.body.appendChild(script);
    // Instead use:
    document.getElementsByTagName('head')[0].appendChild(scriptu);
  }

  this.serverResponseu = function( data ) {
    if (!data) return;
    var divu = document.getElementById('politifactupdate');
    var txtu = '';
    for (var m = 0; m < data.length; m++) {
      if (txtu.length > 0) { txtu += " "; }
      txtu += data[m];
    }
    divu.innerHTML = "<div align=\"center\"><img src=\"http://www.tampabay.com/universal/politifact/images/logopf_aboutbox-gray.gif\" /></div><div class=\"pfhed\" align=\"center\" style=\"position:relative;\">Tracking Obama\'s promises:</div>" + txtu + "<div style=\"border-top:1px solid #cccccc;\" align=\"center\"><div class=\"pfhed\"><img src=\"http://www.tampabay.com/universal/politifact/images/logosbottom_aboutbox-gray.gif\" /></div>";  // assign new HTML into #ROOTU
    divu.style.display = 'block'; // make element visible
  }

  requestStylesheetu(STYLESHEETU);
  document.write('<div id="politifactupdate"></div>');
  requestContentu();
}
