SPICEWORKS.plugin.add(     { name:"TechNet Widget", version:"0.1", description:"Embed news from Microsoft's TechNet within the Spiceworks dashboard", guid:"p-028b77a0-24bf-012c-f2b3-0011856b5722-1250780409", settings:{}, contentAreas: [{"content_type":"text/javascript","updated_at":"2010/01/25 21:03:26 -0600","id":5,"description":null,"content_name":"initialize.js","user_id":null}], initialize:function(plugin){ // ==SPICEWORKS-PLUGIN==
// @name          TechNet Widget
// @description   Embed news from Microsoft's TechNet within the Spiceworks dashboard
// @version       0.1
// ==/SPICEWORKS-PLUGIN==  

SPICEWORKS.app.dashboard.addWidgetType({
  'name': 'technet_widget',
  'label': 'TechNet',
  'icon': 'http://blogs.technet.com/favicon.ico',
  'prefs': [],

  'update': function (element, options) {


    // Remove the padding so that the iframe goes to the very edge. IE needs a width attribute.
    element.setStyle({'padding': '0', 'width': '338px'});

    embedURL = "http://resources.spiceworks.com/banners/spiceworks/plugin/ms/technet.html";

    // Build an <iframe>
    var iframe = new Element('iframe', {
      'src': embedURL,
      'frameborder': 0,
      'scrolling': 'no',
      'style': 'border:none; margin:0; padding:0; height:470px; width:338px'
    });

    // Insert the <iframe> into the Spiceworks dashboard widget
    element.insert(iframe);

  }
});
      }
    }
 );
