var np_widget_settings = np_widget_settings == undefined ? [] : np_widget_settings;
document.write("\n  \x3cdiv id=\"np-widget-500\" style=\"font-size:11px; font-family:Arial, Helvetica, sans-serif;background-color:#006699;color:#aaaaaa;width:160px;line-height: normal;text-align: left;\"\x3e\n    \x3ch2 id=\"np-widget-img-500\" style=\"padding:2px 7px;margin:0;color:#fff;border: 1px solid #006699;font-size:18px;text-transform:none;letter-spacing: normal;font-family: Arial, Helvetica, sans-serif; font-size: 16px;\"\x3e\x3ca href=\"http://www.nowpublic.com/?widgetid=3\" target=\"_blank\"\x3eNowPublic\x3c/a\x3e\x3c/h2\x3e\n    \x3cdiv id=\"np-widget-text-500\" style=\"color:#aaaaaa; line-height: normal; overflow: hidden;background-color: #fff; padding: 2px 0;\"\x3e\n      \x3cdiv class=\"widget-block\" style=\"border:1px solid #006699;margin:1px 0 2px;\"\x3e\n    \x3ch3 class=\"widget-block-title\" style=\"font-family: Arial, Helvetica, sans-serif;font-size:11px;margin: 0 0 5px;padding: 2px 7px;color:#fff;background-color:#4cc3ff;text-transform:uppercase;\"\x3e Front Page\x3c/h3\x3e\n  \x3cdiv class=\"widget-story-block\" style=\"padding:2px 7px;\"\x3e\x3ca href=\"http://www.nowpublic.com/sports/jamaican-usain-bolt-bolts-new-world-record-200-meter-dash?widgetid=3\" class=\"widget-story-footage\" style=\"display: block;text-align: center;\" target=\"_blank\"\x3e\x3cimg class=\"widget-story-footage-img\" style=\"padding:1px;border:1px solid #aaa;\"\" src=\"http://media.nowpublic.net/images//8f/1/8f1aedf5b017b585e23c7699c0d86a7d.jpg\" alt=\"Jamaican, Usain Bolt,  Bolts to a New World Record in 200 meter Dash\" lowsrc=\"http://media.nowpublic.net/images//6d/1/6d1b1924e36a22ffa9bf5e64c7430366.jpg\" /\x3e\x3c/a\x3e\x3ca href=\"http://www.nowpublic.com/sports/jamaican-usain-bolt-bolts-new-world-record-200-meter-dash?widgetid=3\" style=\"display:block; font-size:13px; font-weight:bold; padding:5px 0pt 0pt; color:#000000\" class=\"widget-story-title\" target=\"_blank\"\x3eJamaican, Usain Bolt,  Bolts to a New World Record in 200 meter Dash\x3c/a\x3e \x3cspan class=\"widget-creation\" style=\"display:block;\"\x3eby \x3ca href=\"http://www.nowpublic.com/politisite?widgetid=3\" class=\"widget-creator\" style=\"color:#006699\" target=\"_blank\"\x3epolitisite\x3c/a\x3e | 2 hrs ago | \x3ca href=\"http://www.nowpublic.com/tag/Sports?widgetid=3\" class=\"widget-tag\" style=\"color:#006699\" target=\"_blank\"\x3eSports\x3c/a\x3e\x3c/span\x3e\x3c/div\x3e\x3cdiv class=\"widget-story-block\" style=\"padding:2px 7px;\"\x3e\x3ca href=\"http://www.nowpublic.com/world/plane-skids-runway-madrid-airport-43-reported-dead-19-seriously-injured?widgetid=3\" class=\"widget-story-footage\" style=\"display: block;text-align: center;\" target=\"_blank\"\x3e\x3cimg class=\"widget-story-footage-img\" style=\"padding:1px;border:1px solid #aaa;\"\" src=\"http://media.nowpublic.net/images//4a/d/4ad6adecd220fee2b9f794424dd9de4b.jpg\" alt=\"Accidente avión Spanair en Barajas, Madrid\" lowsrc=\"http://media.nowpublic.net/images//93/a/93a80d54f5befeca997c93581dc055cf.jpg\" /\x3e\x3c/a\x3e\x3ca href=\"http://www.nowpublic.com/world/plane-skids-runway-madrid-airport-43-reported-dead-19-seriously-injured?widgetid=3\" style=\"display:block; font-size:13px; font-weight:bold; padding:5px 0pt 0pt; color:#000000\" class=\"widget-story-title\" target=\"_blank\"\x3ePlane skids off runway at Madrid airport: 43 reported dead, 19 seriously injured\x3c/a\x3e \x3cspan class=\"widget-creation\" style=\"display:block;\"\x3eby \x3ca href=\"http://www.nowpublic.com/barry_artiste?widgetid=3\" class=\"widget-creator\" style=\"color:#006699\" target=\"_blank\"\x3eBarry Artiste\x3c/a\x3e | 3 hrs ago | \x3ca href=\"http://www.nowpublic.com/tag/World?widgetid=3\" class=\"widget-tag\" style=\"color:#006699\" target=\"_blank\"\x3eWorld\x3c/a\x3e\x3c/span\x3e\x3c/div\x3e\x3cdiv class=\"widget-story-block\" style=\"padding:2px 7px;\"\x3e\x3ca href=\"http://www.nowpublic.com/world/suffering-and-sacrifice-olympics-opening-ceremony-zhang-cultural-differences?widgetid=3\" class=\"widget-story-footage\" style=\"display: block;text-align: center;\" target=\"_blank\"\x3e\x3cimg class=\"widget-story-footage-img\" style=\"padding:1px;border:1px solid #aaa;\"\" src=\"http://media.nowpublic.net/images//9a/6/9a6141b3f82c62c09911a5674f0116fe.jpg\" alt=\"Beijing Olympics 2008: Opening Ceremony\" lowsrc=\"http://media.nowpublic.net/images//d8/7/d87da3a8a259a9eaf29c7620c0a872fb.jpg\" /\x3e\x3c/a\x3e\x3ca href=\"http://www.nowpublic.com/world/suffering-and-sacrifice-olympics-opening-ceremony-zhang-cultural-differences?widgetid=3\" style=\"display:block; font-size:13px; font-weight:bold; padding:5px 0pt 0pt; color:#000000\" class=\"widget-story-title\" target=\"_blank\"\x3eSuffering and Sacrifice at the Olympics Opening Ceremony: Zhang \x26amp; Cultural Differences\x3c/a\x3e \x3cspan class=\"widget-creation\" style=\"display:block;\"\x3eby \x3ca href=\"http://www.nowpublic.com/pep?widgetid=3\" class=\"widget-creator\" style=\"color:#006699\" target=\"_blank\"\x3ePEP\x3c/a\x3e | 6 hrs ago | \x3ca href=\"http://www.nowpublic.com/tag/World?widgetid=3\" class=\"widget-tag\" style=\"color:#006699\" target=\"_blank\"\x3eWorld\x3c/a\x3e\x3c/span\x3e\x3c/div\x3e\x3cdiv class=\"widget-story-block\" style=\"padding:2px 7px;\"\x3e\x3ca href=\"http://www.nowpublic.com/world/german-mps-racist-debacle?widgetid=3\" class=\"widget-story-footage\" style=\"display: block;text-align: center;\" target=\"_blank\"\x3e\x3cimg class=\"widget-story-footage-img\" style=\"padding:1px;border:1px solid #aaa;\"\" src=\"http://media.nowpublic.net/images//d2/5/d258704ac3903c24f2b52b14ae62c458.jpg\" alt=\"German MPs in racist debacle\" lowsrc=\"http://media.nowpublic.net/images//30/9/309bd398ad07d359d64f29b7fded5f83.jpg\" /\x3e\x3c/a\x3e\x3ca href=\"http://www.nowpublic.com/world/german-mps-racist-debacle?widgetid=3\" style=\"display:block; font-size:13px; font-weight:bold; padding:5px 0pt 0pt; color:#000000\" class=\"widget-story-title\" target=\"_blank\"\x3eGerman MPs in racist debacle\x3c/a\x3e \x3cspan class=\"widget-creation\" style=\"display:block;\"\x3eby \x3ca href=\"http://www.nowpublic.com/mchawk?widgetid=3\" class=\"widget-creator\" style=\"color:#006699\" target=\"_blank\"\x3emchawk\x3c/a\x3e | 7 hrs ago | \x3ca href=\"http://www.nowpublic.com/tag/World?widgetid=3\" class=\"widget-tag\" style=\"color:#006699\" target=\"_blank\"\x3eWorld\x3c/a\x3e\x3c/span\x3e\x3c/div\x3e\x3cdiv class=\"widget-story-block\" style=\"padding:2px 7px;\"\x3e\x3ca href=\"http://www.nowpublic.com/world/yet-another-police-beatdown-victim-sustains-severe-head-injuries-25-staples-scalp?widgetid=3\" class=\"widget-story-footage\" style=\"display: block;text-align: center;\" target=\"_blank\"\x3e\x3cimg class=\"widget-story-footage-img\" style=\"padding:1px;border:1px solid #aaa;\"\" src=\"http://media.nowpublic.net/images//b6/7/b67fd5ab3dc2936c8d3de8a24a17b5f7.jpg\" alt=\"Yet Another Police Beatdown - Victim sustains severe head injuries, 25 staples in scalp\" lowsrc=\"http://media.nowpublic.net/images//ef/1/ef1e4f776f98d07e9ea2d118b79202ad.jpg\" /\x3e\x3c/a\x3e\x3ca href=\"http://www.nowpublic.com/world/yet-another-police-beatdown-victim-sustains-severe-head-injuries-25-staples-scalp?widgetid=3\" style=\"display:block; font-size:13px; font-weight:bold; padding:5px 0pt 0pt; color:#000000\" class=\"widget-story-title\" target=\"_blank\"\x3eYet Another Police Beatdown - Victim sustains severe head injuries, 25 staples in scalp\x3c/a\x3e \x3cspan class=\"widget-creation\" style=\"display:block;\"\x3eby \x3ca href=\"http://www.nowpublic.com/emilio-lizardo?widgetid=3\" class=\"widget-creator\" style=\"color:#006699\" target=\"_blank\"\x3eEmilio Lizardo\x3c/a\x3e | 1 hr ago | \x3ca href=\"http://www.nowpublic.com/tag/World?widgetid=3\" class=\"widget-tag\" style=\"color:#006699\" target=\"_blank\"\x3eWorld\x3c/a\x3e\x3c/span\x3e\x3c/div\x3e\x3c/div\x3e\n\x3cdiv class=\"widget-block\" style=\"border:1px solid #006699;margin:1px 0 2px;\"\x3e\n  \x3ch3 class=\"widget-block-title\" style=\"font-family: Arial, Helvetica, sans-serif;font-size:11px;margin: 0 0 5px;padding: 2px 7px;color:#fff;background-color:#4cc3ff;text-transform:uppercase;\"\x3e\n    Good Members  \x3c/h3\x3e\n  \x3cdiv class=\"widget-users\" style=\"padding:0 7px 5px\"\x3e\n    \x3ca href=\"http://www.nowpublic.com/barry_artiste?widgetid=3\" class=\"np-member-bubble\"\x3e\x3cimg style=\"border-style: none;\" src=\"http://media.nowpublic.net/files/mpics/picture-91047.jpg\"  class=\"np-member-bubble-91047\" width=\"30\" height=\"30\" alt=\"Barry Artiste\" /\x3e\x3c/a\x3e\x3ca href=\"http://www.nowpublic.com/pep?widgetid=3\" class=\"np-member-bubble\"\x3e\x3cimg style=\"border-style: none;\" src=\"http://media.nowpublic.net/files/mpics_derivatives/small_830dddabd0f35df9269eb2a6ccdd26a3.jpg\"  class=\"np-member-bubble-126058\" width=\"30\" height=\"30\" alt=\"PEP\" /\x3e\x3c/a\x3e\x3ca href=\"http://www.nowpublic.com/politisite?widgetid=3\" class=\"np-member-bubble\"\x3e\x3cimg style=\"border-style: none;\" src=\"http://media.nowpublic.net/files/mpics_derivatives/small_a3f41b22c6840cd12723dbbfd9ee516b.jpg\"  class=\"np-member-bubble-158233\" width=\"30\" height=\"30\" alt=\"politisite\" /\x3e\x3c/a\x3e\x3ca href=\"http://www.nowpublic.com/mchawk?widgetid=3\" class=\"np-member-bubble\"\x3e\x3cimg style=\"border-style: none;\" src=\"http://media.nowpublic.net/files/mpics_derivatives/small_aff631b38b8b38d80bdbb09dcecc74fc.jpg\"  class=\"np-member-bubble-274101\" width=\"30\" height=\"30\" alt=\"mchawk\" /\x3e\x3c/a\x3e\x3ca href=\"http://www.nowpublic.com/emilio-lizardo?widgetid=3\" class=\"np-member-bubble\"\x3e\x3cimg style=\"border-style: none;\" src=\"http://media.nowpublic.net/files/mpics_derivatives/small_366b8247a94bc803c978483abab61be1.jpg\"  class=\"np-member-bubble-294887\" width=\"30\" height=\"30\" alt=\"Emilio Lizardo\" /\x3e\x3c/a\x3e  \x3c/div\x3e\n\x3c/div\x3e\n  \x3cdiv class=\"widget-block\" style=\"border:1px solid #006699;margin:1px 0 2px;\"\x3e\n    \x3ch3 class=\"widget-block-title\" style=\"font-family: Arial, Helvetica, sans-serif;font-size:11px;margin: 0 0 5px;padding: 2px 7px;color:#333;background-color:#transparent;text-transform:uppercase;text-align:center;\"\x3eNowPublic Voice Reports\x3c/h3\x3e\n    \x3cdiv class=\"widget-extra\" style=\"text-align:center;font-weight: bold;margin: 0 0 5px;\"\x3e1 866 255 9530\x3c/div\x3e\n  \x3c/div\x3e\n    \x3c/div\x3e\n    \x3cdiv id=\"np-widget-footer500\" style=\"border: 1px solid #006699;padding: 10px 15px; line-height: 18px; height: 18px;\"\x3e\n      \x3ca href=\"http://www.nowpublic.com/widget/prebuilt/?widgetid=3\" style=\"display: block; margin: 0 auto; width: 80px; line-height: 18px; text-decoration: none; background: transparent url(\'http://static.nowpublic.net/graphics/graphics/widget/wb_button_gray.png?r=55\') 0 0 no-repeat; color: #fff; text-align: center; font-weight: bold;\" target=\"_blank\"\x3eget widget\x3c/a\x3e\x3cdiv style=\"line-height: 1px; height: 1px; margin: 0; padding: 0; font-size: 1px; clear: left;\"\x3e\x3c!--  --\x3e\x3c/div\x3e\n    \x3c/div\x3e\n  \x3c/div\x3e\n  \x3c!-- end widget --\x3e\n");

var np_links = document.getElementById('np-widget-text-500').getElementsByTagName('a');
var np_story_footage;
for (var i = 0; i < np_links.length; i++) {
  if (np_links[i].className == 'widget-story-footage') {
    np_story_footage = np_links[i].getElementsByTagName('img');
    if (np_story_footage.length > 0) {
      np_story_footage = np_story_footage[0];
    }
    else {
      delete np_story_footage;
    }
  }
}
delete np_links;
if (np_story_footage) {
  var np_oWidth = document.getElementById('np-widget-text-500').offsetWidth;
  if (np_oWidth < 135) {
    np_story_footage.height = 72;
  }
  else if (np_oWidth < 159) {
    np_story_footage.src = np_story_footage.lowsrc;
    np_story_footage.height = 90;
  }
  else if (np_oWidth < 209) {
    np_story_footage.height = 108;
  }
  delete np_oWidth;
  delete np_story_footage;
}

var Drupal = Drupal || { 'settings': {}, 'behaviors': {}, 'themes': {}, 'locale': {} };

document.write('<scr' + 'ipt type="text/javascript" src="http://www.nowpublic.com/misc/jquery.js?1219260233"><' + '/script>');
document.write('<scr' + 'ipt type="text/javascript" src="http://www.nowpublic.com/sites/all/modules/shownowpublic/widget.js?1219260233"><' + '/script>');
document.write('<scr' + 'ipt type="text/javascript" src="http://www.nowpublic.com/sites/all/modules/np_potpourri/modal/modal.js?1219260233"><' + '/script>');
document.write('<scr' + 'ipt type="text/javascript" src="http://www.nowpublic.com/sites/all/modules/package/slideshow.js?1219260233"><' + '/script>');
document.write('<style type="text/css" media="all">@import "http://www.nowpublic.com/sites/all/modules/package/slideshow.css";</style><style type="text/css" media="all">@import "http://www.nowpublic.com/sites/all/modules/package/modal.css";</style>');
var np_widget = np_widget || {
  currents : [],
  intervals : [],
  slideshows : [],
  theme : [],
  base_url : 'http://www.nowpublic.com/',
  media_url : 'http://media.nowpublic.net/',

  ready : function () {
    // Make sure that the DOM is not already loaded
    if ( !np_widget.isReady ) {
      // Remember that the DOM is ready
      np_widget.isReady = true;
      np_widget.extend(np_widget_funcs);
      delete np_widget_funcs;
      // If there are functions bound, to execute
      // Remove event lisenter to avoid memory leak
      if ( np_widget.browser.mozilla || np_widget.browser.opera )
        document.removeEventListener( "DOMContentLoaded", np_widget.ready, false );
      np_widget.init.apply(document);
    }
  },

  extend : function(obj) {
    for (var i in obj) {
      if (this[i]) {
        np_widget.extend.apply(this[i], [obj[i]]);
      }
      else {
        this[i] = obj[i];
      }
    }
  }
};

Drupal.dimensions = function (el) {
  return { width: el.offsetWidth, height: el.offsetHeight };
};

new function() {
  var userAgent = navigator.userAgent.toLowerCase();

  // Figure out what browser is being used
  np_widget.browser = {
    version: (userAgent.match( /.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/ ) || [])[1],
    safari: /webkit/.test( userAgent ),
    opera: /opera/.test( userAgent ),
    msie: /msie/.test( userAgent ) && !/opera/.test( userAgent ),
    mozilla: /mozilla/.test( userAgent ) && !/(compatible|webkit)/.test( userAgent )
  };
};

new function(){
  // Mozilla, Opera (see further below for it) and webkit nightlies currently support this event
  if ( document.addEventListener && !np_widget.browser.opera)
    // Use the handy event callback
    document.addEventListener( "DOMContentLoaded", np_widget.ready, false );

  // If IE is used and is not in a frame
  // Continually check to see if the document is ready
  if ( np_widget.browser.msie && window == top ) (function(){
    try {
      // If IE is used, use the trick by Diego Perini
      // http://javascript.nwbox.com/IEContentLoaded/
      document.documentElement.doScroll("left");
    } catch( error ) {
      setTimeout( arguments.callee, 0 );
      return;
    }
    // and execute any waiting functions
    np_widget.ready();
  })();

  if ( np_widget.browser.opera )
    document.addEventListener( "DOMContentLoaded", function () {
      for (var i = 0; i < document.styleSheets.length; i++)
        if (document.styleSheets[i].disabled) {
          setTimeout( arguments.callee, 0 );
          return;
        }
      // and execute any waiting functions
      np_widget.ready();
    }, false);

  if ( np_widget.browser.safari ) {
    var numStyles;
    (function(){
      if ( document.readyState != "loaded" && document.readyState != "complete" ) {
        setTimeout( arguments.callee, 0 );
        return;
      }
      if ( numStyles === undefined ) {
        numStyles = document.getElementsByTagName("style").length;
        var links = document.getElementsByTagName("link");
        for ( var i = 0; i < links.length; i++ ) {
          if ( links[i].rel && links[i].rel == "stylesheet" ) {
            numStyles++;
          }
        }
      }
      if ( document.styleSheets.length != numStyles ) {
        setTimeout( arguments.callee, 0 );
        return;
      }
      // and execute any waiting functions
      np_widget.ready();
    })();
  }

}
np_widget.theme[500] = { "width": "#0000a0", "base": "#006699", "link": "#006699", "bottom": "#4cc3ff", "text": "#aaaaaa" };
