    if (plexData == undefined) {
      var plexData = new Array();
    }
    plexData.push(    {
      "json_source" : "http://www.squidoo.com/utility/plexus_json/4405",
      "id" : "4405",
      "lmi" : "1883283",
      "title" : "Video Production info links",
      "subtitle" : "",
      "description" : "Software, Hardware, other resources",
      "link" : "http://www.squidoo.com/video-production",
      "type" : "Link",
      "num_results" : "1000000",
      "lensmaster" : "inactivist",
      "lensmaster_link" : "http://www.squidoo.com/lensmasters/inactivist",
      "thumbnails" : "no",
      "items" : [{"id" : "32831", "title" : "http://www.videomaker.com/","points" : "0", "description" : "","link" : "http://www.videomaker.com/","thumbnail" : ""},{"id" : "32832", "title" : "Digital Cameras, Camcorders, TV\'s, Home Theater, DVD Players, Apple iPods","points" : "0", "description" : "Shop Digital Cameras, 35MM Camera Equipment, Photo Printers, Home Theater, DVD Players, Authorized Dealer Canon, Sony, Nikon, Apple, Olympus, Panasoni...","link" : "http://www.bhphotovideo.com/","thumbnail" : ""},{"id" : "32833", "title" : "CD Duplication, CD Replication, DVD Duplicators and Printers, Blank CDs and DVDs","points" : "0", "description" : "Disc Makers provides CD Duplication, DVD Duplication, CD Manufacturing, DVD Manufacturing, CD Replication, DVD Replication, CD Duplicators, DVD Duplic...","link" : "http://www.discmakers.com","thumbnail" : ""},{"id" : "32834", "title" : "Video - Wikipedia, the free encyclopedia","points" : "0", "description" : "","link" : "http://en.wikipedia.org/wiki/A/V","thumbnail" : ""},{"id" : "32835", "title" : "FRYS.com","points" : "0", "description" : "","link" : "http://www.outpost.com/","thumbnail" : ""},{"id" : "32836", "title" : "Royalty Free Music, Production Music, Music on Hold, Free Background Music, Buyout Music","points" : "0", "description" : "Royalty free music and buyout music for production, multimedia projects, film, television, video, advertising, music on hold, and background music app...","link" : "http://www.royaltyfreemusic.com/","thumbnail" : ""}],
      "display_mode" : "normal"
    }
    );
  
openPlexo = function(options) {
  if (options == undefined) {
    options = {};
  }
  var length;
  var plex = 0;

  if (plexData.length == 1) {
    plex = plexData[0];
  } else if (options.plex_id > 0 ) {
    for (i = 0; i < plexData.length; i++) {
      if (plexData[i].id == options.plex_id) {
        plex = plexData[i];
      }
    }
  }

  if (plex == 0) {
    // No plex specified
    alert("no plex");
    return false;
  }

  if (options.num_results != undefined) {
    if (options.num_results == "All") {
      length = plex.items.length;
    } else if (options.num_results > 0) {
      length = options.num_results;
    }
  } else if (plex.num_results == "All") {
    length = plex.items.length;
  } else if (plex.num_results == "") {
    length = 5;
  } else {
    length = plex.num_results;
  }

  if (length > plex.items.length) {
    length = plex.items.length;
  } else if (length == 0)
  alert(plex.num_results);

  if (options.container != undefined) {
    var el = document.getElementById(options.container);
  } else {
    var el = document.getElementById("plex");
    if (el == undefined) {
      alert("no container");
      return false;
    }
  }

/*
.flickr_plexo-item {

}
.plexo_rank-flickr {

}
.plexo_rank-flickr h4 {
}

.plexo_rank-flickr sup {

}
.points-flickr {
color:#666666;font-family:verdana,Arial,Helvetica,sans-serif;font-size:9px;font-size-adjust:none;font-stretch:normal;font-style:italic;font-variant:normal;font-weight:normal;line-height:normal;padding:0pt;
}

  */

  var out = "";
  if (options.size != "sidebar") {
    // Insert header for the regular sized widget.
    out += '\n<div style="width: 400px; border: 1px solid rgb(178, 178, 178); padding: 8px;">';
  	out += '\n<h2 style="border-bottom: 1px solid rgb(178, 178, 178); margin: 0pt 0pt 2px; padding: 6px 0pt 5px; font-family: Trebuchet MS,Arial,Helvetica,sans-serif; font-style: normal; font-variant: normal; font-weight: normal; font-size: 22px; line-height: 24px; font-size-adjust: none; font-stretch: normal; letter-spacing: 0pt; color: rgb(0, 0, 0);">' + plex.title + '</h2>';
  	out += '\n<h3 style="margin: 0pt; padding: 0pt; font-family: Trebuchet MS,Arial,Helvetica,sans-serif; font-style: normal; font-variant: normal; font-weight: normal; font-size: 15px; line-height: normal; font-size-adjust: none; font-stretch: normal; color: rgb(102, 102, 102);">' + plex.subtitle + '</h3>';
  	out += '\n<p style="margin: 14px 0pt; font-family: Verdana,Arial,Helvetica,sans-serif; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal;">' + plex.description + '</p>';
  } else {
    //Insert header for sidebar widget.
    out += '<div style="width: 200px; border: 1px solid rgb(178, 178, 178); padding: 8px;">';
    out += '\n<h2 style="border-bottom: 1px solid rgb(178, 178, 178); margin: 0pt 0pt 2px; padding: 0pt 0pt 5px; font-family: Trebuchet MS,Arial,Helvetica,sans-serif; font-style: normal; font-variant: normal; font-weight: normal; font-size: 18px; line-height: 20px; font-size-adjust: none; font-stretch: normal; letter-spacing: 0pt; color: rgb(0, 0, 0);">' + plex.title + '</h2>';
    out += '\n<h3 style="margin: 0pt; padding: 0pt; font-family: Trebuchet MS,Arial,Helvetica,sans-serif; font-style: normal; font-variant: normal; font-weight: normal; font-size: 13px; line-height: 15px; font-size-adjust: none; font-stretch: normal; color: rgb(102, 102, 102);">' + plex.subtitle + '</h3>';
    out += '\n<p style="margin: 14px 0pt; font-family: Verdana,Arial,Helvetica,sans-serif; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal;">' + plex.description + '</p>';
  }

  if (plex.type == "Flickr") {
    for (i = 0; i < length; i++) {
      var points;
      var item = plex.items[i];
      if (item.points == 1)
        points = item.points + " point";
      else
        points = item.points + " points";

      out += '\n<div id="plexItem' + item.id + '" style="float:left;height:125px;margin:0pt 4px 0pt 0pt;overflow:hidden;padding:0pt;text-align:center;width:90px;">';
        out += '\n<a target="_new" href="' + item.link + '">';
          out += '\n<img src="' + item.thumbnail + '" alt="' + item.title + '" border="0" />';
        out += '\n</a>';
        out += '\n<div id="plexItem' + item.id + '" class="plexo_item-flickr">';
          out += '\n<div style="margin:0pt auto;position:relative;text-align:center;width:75px;">';
            out += '\n<h4 style="background:transparent url(http://squidcdn.s3.amazonaws.com/images/images/bg_plexo-rank.gif) no-repeat scroll 0%;color:#FFFFFF;font-family:Trebuchet MS,Arial,Helvetica,sans-serif;font-size:16px;font-size-adjust:none;font-stretch:normal;font-style:normal;font-variant:normal;font-weight:bold;line-height:22px;margin:0pt 0pt 0pt 5px;padding:0pt 0pt 5px;text-align:center;width:45px;"><sup style="color:#FFFFFF;font-family:Trebuchet MS,Verdana,Arial,Helvetica,sans-serif;font-size:11px;font-size-adjust:none;font-stretch:normal;font-style:normal;font-variant:normal;font-weight:normal;left:0pt;line-height:11px;padding:0pt;position:relative;top:4px;">#</sup>' + (i+1) + '</h4>';
      		out += '\n<div style="background: transparent url(http://squidcdn.s3.amazonaws.com/images/images/icon_vote-up.gif) no-repeat scroll 0%; overflow: hidden; position: absolute; top: 0pt; right: 0pt; width: 16px; height: 9px; text-indent: -999em; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" onmouseover="this.style.backgroundPosition=\'-16px 0\';this.style.cursor=\'pointer\'" onmouseout="this.style.backgroundPosition=\'0 0\';this.style.cursor=\'\'" onclick="location.href=\'' + plex.link + '?plexVote=1&lmi=' + plex.lmi + '&item_id=' + item.id + '&direction=up\';"><a href="#">Vote Up</a></div>';
          out += '\n<div style="background: transparent url(http://squidcdn.s3.amazonaws.com/images/images/icon_vote-down.gif) no-repeat scroll 0%; overflow: hidden; position: absolute; top: 12px; right: 0pt; width: 16px; height: 9px; text-indent: -999em; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" onmouseover="this.style.backgroundPosition=\'-16px 0\';this.style.cursor=\'pointer\'" onmouseout="this.style.backgroundPosition=\'0 0\';this.style.cursor=\'\'" onclick="location.href=\'' + plex.link + '?plexVote=1&lmi=' + plex.lmi + '&item_id=' + item.id + '&direction=down\';"><a href="#">Vote Down</a></div>';

                        out += '\n<span id="pointsDisplay' + item.id + '" style="padding: 0pt 0pt 0pt 10px; font-family: verdana,Arial,Helvetica,sans-serif; font-style: italic; font-variant: normal; font-weight: normal; font-size: 9px; line-height: normal; font-size-adjust: none; font-stretch: normal; color: rgb(102, 102, 102);">' + points + '</span>';
          out += '\n</div>';
        out += '\n</div>';
      out += '\n</div>';
    }

    out += '\n<div style="clear: both; visibility: hidden;"></div>';
  } else if (plex.type == "YouTube") {
    for (i = 0; i < length; i++) {
      var points;
      var item = plex.items[i];
      if (item.points == 1)
        points = item.points + " point";
      else
        points = item.points + " points";

      if (plex.display_mode == "full" && options.size != "sidebar") {
        var youtube_id = item.link.split("=")[1];

  out += '\n<div class="youtube_item-full">';
    out += '\n<div class="plexo_rank" style="float:left;margin:0pt 10px 0pt 0pt;position:relative;text-align:center;width:65px;">';
      out += '\n<h4 style="background:transparent url(http://squidcdn.s3.amazonaws.com/images/images/bg_plexo-rank.gif) no-repeat scroll 0%;color:#FFFFFF;font-family:Trebuchet MS,Arial,Helvetica,sans-serif;font-size:16px;font-size-adjust:none;font-stretch:normal;font-style:normal;font-variant:normal;font-weight:bold;line-height:22px;margin:0pt 20px 0pt 0pt;padding:0pt 0pt 6px;text-align:center;width:45px;"><sup style="color:#FFFFFF;font-family:Trebuchet MS,Verdana,Arial,Helvetica,sans-serif;font-size:11px;font-size-adjust:none;font-stretch:normal;font-style:normal;font-variant:normal;font-weight:normal;left:0pt;line-height:11px;padding:0pt;position:relative;top:4px;">#</sup>' + (i+1) + '</h4>';
  		out += '\n<div style="background: transparent url(http://squidcdn.s3.amazonaws.com/images/icon_vote-up.gif) no-repeat scroll 0%; overflow: hidden; position: absolute; top: 2pt; left: 55px; width: 16px; height: 9px; text-indent: -999em; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" onmouseover="this.style.backgroundPosition=\'-16px 0\';this.style.cursor=\'pointer\'" onmouseout="this.style.backgroundPosition=\'0 0\';this.style.cursor=\'\'" onclick="location.href=\'' + plex.link + '?plexVote=1&lmi=' + plex.lmi + '&item_id=' + item.id + '&direction=up\';"><a href="#">Vote Up</a></div>';
      out += '\n<div style="background: transparent url(http://squidcdn.s3.amazonaws.com/images/icon_vote-down.gif) no-repeat scroll 0%; overflow: hidden; position: absolute; top: 14px; left: 55px; width: 16px; height: 9px; text-indent: -999em; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" onmouseover="this.style.backgroundPosition=\'-16px 0\';this.style.cursor=\'pointer\'" onmouseout="this.style.backgroundPosition=\'0 0\';this.style.cursor=\'\'" onclick="location.href=\'' + plex.link + '?plexVote=1&lmi=' + plex.lmi + '&item_id=' + item.id + '&direction=down\';"><a href="#">Vote Down</a></div>';
    out += '\n</div>';
    out += '\n<div class="plexo_video" style="margin-left:75px;width:325px;">';
      out += '\n<h3 style="font-family:Trebuchet MS,Arial,Helvetica,sans-serif;">' + item.title + '  <span class="points" style="color:#666666;font-family:verdana,Arial,Helvetica,sans-serif;font-size:9px;font-size-adjust:none;font-stretch:normal;font-style:italic;font-variant:normal;font-weight:normal;line-height:normal;padding:0pt 0pt 0pt 10px;">' + points + '</span></h3>';
      out += '\n<object data="http://www.youtube.com/v/' + youtube_id + '" style="width: 300px; height: 247px;" type="application/x-shockwave-flash">';
        out += '\n<param value="http://www.youtube.com/v/' + youtube_id + '" name="movie"/>';
      out += '\n</object>';
    out += '\n</div>';
  out += '\n</div>';

  /*
        out += '\n<div id="plexItem' + item.id + '" style="margin: 0pt; padding: 5px 0pt;">';
            out += '\n<div style="margin:0pt auto;position:relative;text-align:left;">';
              out += '\n<h4 style="display: inline; background:transparent url(http://img.squidoo.com/bg_plexo-rank.gif) no-repeat scroll 0%;color:#FFFFFF;font-family:Trebuchet MS,Arial,Helvetica,sans-serif;font-size:16px;font-size-adjust:none;font-stretch:normal;font-style:normal;font-variant:normal;font-weight:bold;line-height:22px;margin:0pt 0pt 0pt 5px;padding:0pt 0pt 5px;text-align:center;width:45px;"><sup style="color:#FFFFFF;font-family:Trebuchet MS,Verdana,Arial,Helvetica,sans-serif;font-size:11px;font-size-adjust:none;font-stretch:normal;font-style:normal;font-variant:normal;font-weight:normal;left:0pt;line-height:11px;padding:0pt;position:relative;top:4px;">#</sup>' + (i+1) + '</h4>';
        		out += '\n<div style="background: transparent url(http://squidcdn.s3.amazonaws.com/images/icon_vote-up.gif) no-repeat scroll 0%; overflow: hidden; position: absolute; top: 2pt; left: 55px; width: 16px; height: 9px; text-indent: -999em; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" onmouseover="this.style.backgroundPosition=\'-16px 0\';this.style.cursor=\'pointer\'" onmouseout="this.style.backgroundPosition=\'0 0\';this.style.cursor=\'\'" onclick="location.href=\'' + plex.link + '?plexVote=1&lmi=' + plex.lmi + '&item_id=' + item.id + '&direction=up\';"><a href="#">Vote Up</a></div>';
            out += '\n<div style="background: transparent url(http://squidcdn.s3.amazonaws.com/images/icon_vote-down.gif) no-repeat scroll 0%; overflow: hidden; position: absolute; top: 14px; left: 55px; width: 16px; height: 9px; text-indent: -999em; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" onmouseover="this.style.backgroundPosition=\'-16px 0\';this.style.cursor=\'pointer\'" onmouseout="this.style.backgroundPosition=\'0 0\';this.style.cursor=\'\'" onclick="location.href=\'' + plex.link + '?plexVote=1&lmi=' + plex.lmi + '&item_id=' + item.id + '&direction=down\';"><a href="#">Vote Down</a></div>';
                out += '\n<span style="margin-left: 80px;">' + item.title + '</span>';
            out += '\n<span id="pointsDisplay' + item.id + '" style="padding: 0pt 0pt 0pt 10px; font-family: verdana,Arial,Helvetica,sans-serif; font-style: italic; font-variant: normal; font-weight: normal; font-size: 9px; line-height: normal; font-size-adjust: none; font-stretch: normal; color: rgb(102, 102, 102);">' + points + '</span>';
            out += '\n</div>';
          out += '\n</div>';
        //out += '\n</div>';
            */
        out += '\n<div style="clear: both; visibility: hidden;"></div>';

      } else {
        out += '\n<div id="plexItem' + item.id + '" style="float:left;height:125px;margin:0pt 4px 0pt 0pt;overflow:hidden;padding:0pt;text-align:center;width:90px;">';
          out += '\n<a target="_new" href="' + item.link + '">';
            out += '\n<img width="75" src="' + item.thumbnail + '" alt="' + item.title + '" border="0" />';
          out += '\n</a>';
          out += '\n<div id="plexItem' + item.id + '" class="plexo_item-youtube">';
            out += '\n<div style="margin:0pt auto;position:relative;text-align:center;width:75px;">';
              out += '\n<h4 style="background:transparent url(http://squidcdn.s3.amazonaws.com/images/images/bg_plexo-rank.gif) no-repeat scroll 0%;color:#FFFFFF;font-family:Trebuchet MS,Arial,Helvetica,sans-serif;font-size:16px;font-size-adjust:none;font-stretch:normal;font-style:normal;font-variant:normal;font-weight:bold;line-height:22px;margin:0pt 0pt 0pt 5px;padding:0pt 0pt 5px;text-align:center;width:45px;"><sup style="color:#FFFFFF;font-family:Trebuchet MS,Verdana,Arial,Helvetica,sans-serif;font-size:11px;font-size-adjust:none;font-stretch:normal;font-style:normal;font-variant:normal;font-weight:normal;left:0pt;line-height:11px;padding:0pt;position:relative;top:4px;">#</sup>' + (i+1) + '</h4>';
        		out += '\n<div style="background: transparent url(http://squidcdn.s3.amazonaws.com/images/images/icon_vote-up.gif) no-repeat scroll 0%; overflow: hidden; position: absolute; top: 0pt; right: 0pt; width: 16px; height: 9px; text-indent: -999em; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" onmouseover="this.style.backgroundPosition=\'-16px 0\';this.style.cursor=\'pointer\'" onmouseout="this.style.backgroundPosition=\'0 0\';this.style.cursor=\'\'" onclick="location.href=\'' + plex.link + '?plexVote=1&lmi=' + plex.lmi + '&item_id=' + item.id + '&direction=up\';"><a href="#">Vote Up</a></div>';
            out += '\n<div style="background: transparent url(http://squidcdn.s3.amazonaws.com/images/images/icon_vote-down.gif) no-repeat scroll 0%; overflow: hidden; position: absolute; top: 12px; right: 0pt; width: 16px; height: 9px; text-indent: -999em; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" onmouseover="this.style.backgroundPosition=\'-16px 0\';this.style.cursor=\'pointer\'" onmouseout="this.style.backgroundPosition=\'0 0\';this.style.cursor=\'\'" onclick="location.href=\'' + plex.link + '?plexVote=1&lmi=' + plex.lmi + '&item_id=' + item.id + '&direction=down\';"><a href="#">Vote Down</a></div>';

            out += '\n<span id="pointsDisplay' + item.id + '" style="padding: 0pt 0pt 0pt 10px; font-family: verdana,Arial,Helvetica,sans-serif; font-style: italic; font-variant: normal; font-weight: normal; font-size: 9px; line-height: normal; font-size-adjust: none; font-stretch: normal; color: rgb(102, 102, 102);">' + points + '</span>';
            out += '\n</div>';
          out += '\n</div>';
        out += '\n</div>';
      }
    }

    out += '\n<div style="clear: both; visibility: hidden;"></div>';
  } else {
    for (i = 0; i < length; i++) {
      var points;
      var item = plex.items[i];

      if (item.points == 1)
        points = item.points + " point";
      else
        points = item.points + " points";

      out += '\n<div id="plexItem' + item.id + '" style="margin: 0pt; padding: 5px 0pt;">';
      	out += '\n<div style="margin: 0pt; float: left; text-align: center; position: relative; width: 65px;">';
      		out += '\n<h4 style="color: white;margin: 0pt; padding: 2px 0pt 4px; background: transparent url(http://squidcdn.s3.amazonaws.com/images/bg_plexo-rank.gif) no-repeat scroll 0%; position: absolute; top: 0pt; left: 0pt; font-family: Trebuchet MS,Arial,Helvetica,sans-serif; font-style: normal; font-variant: normal; font-weight: bold; font-size: 16px; line-height: 16px; font-size-adjust: none; font-stretch: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 45px;">#' + (i+1) + '</h4>';
      		out += '\n<div style="background: transparent url(http://squidcdn.s3.amazonaws.com/images/icon_vote-up.gif) no-repeat scroll 0%; overflow: hidden; position: absolute; top: 0pt; right: 0pt; width: 16px; height: 9px; text-indent: -999em; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" onmouseover="this.style.backgroundPosition=\'-16px 0\';this.style.cursor=\'pointer\'" onmouseout="this.style.backgroundPosition=\'0 0\';this.style.cursor=\'\'" onclick="location.href=\'' + plex.link + '?plexVote=1&lmi=' + plex.lmi + '&item_id=' + item.id + '&direction=up\';"><a href="#">Vote Up</a></div>';
          out += '\n<div style="background: transparent url(http://squidcdn.s3.amazonaws.com/images/icon_vote-down.gif) no-repeat scroll 0%; overflow: hidden; position: absolute; top: 12px; right: 0pt; width: 16px; height: 9px; text-indent: -999em; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" onmouseover="this.style.backgroundPosition=\'-16px 0\';this.style.cursor=\'pointer\'" onmouseout="this.style.backgroundPosition=\'0 0\';this.style.cursor=\'\'" onclick="location.href=\'' + plex.link + '?plexVote=1&lmi=' + plex.lmi + '&item_id=' + item.id + '&direction=down\';"><a href="#">Vote Down</a></div>';
      	out += '\n</div>';
        out += '\n<div id="plexo_item' + item.id + '" style="margin-left: 70px; font-family: Verdana,Arial,Helvetica,sans-serif; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; font-size-adjust: none; font-stretch: normal; width: auto;">';
          if (options.size != "sidebar" && item.thumbnail != "" && (plex.thumbnails != "no" || options.thumbnails == "yes") && options.thumbnails != "no") {
            if (item.link != "")
              out += '\n<a target="_new" href="' + item.link + '">';
            out += '\n<img src="' + item.thumbnail + '" alt="' + item.title + '" title="' + item.title + '" border="0" style="max-width: 50px; float:left; margin: 0 8px 0 0;" />';
            if (item.link != "")
              out += '\n</a>';
          }
          out += '\n<h4 style="margin: 0pt; padding: 0pt; font-size: 12px;">';
          if (item.link != "")
            out += '\n<a target="_new" href="' + item.link + '" style="color: rgb(204, 102, 51); text-decoration: none;">';
          out += item.title;
          if (item.link != "")
            out += '\n</a>';
          out += '</h4>';
          if (options.size != "sidebar") {
            out += '\n<p style="margin: 0pt; padding: 0pt;">' + item.description + '<span id="pointsDisplay' + item.id + '" style="padding: 0pt 0pt 0pt 10px; font-family: verdana,Arial,Helvetica,sans-serif; font-style: italic; font-variant: normal; font-weight: normal; font-size: 9px; line-height: normal; font-size-adjust: none; font-stretch: normal; color: rgb(102, 102, 102);">' + points + '</span></p>';
          }

        out += '\n</div>';
        out += '\n<div style="clear: both; visibility: hidden;"></div>';
      out += '\n</div>';
    }
  }

  if (options.size != "sidebar") {
    // Insert footer for the regular sized widget.
    if (plex.items.length == length)
      out += '<div><a href="' + plex.link + '" style="color: rgb(0, 102, 153); font-weight: bold">See the original lens</a></div>\n<div class="break"></div>\n';
    else
      out += '<div><a href="' + plex.link + '" style="color: rgb(0, 102, 153); font-weight: bold">See all ' + plex.items.length + ' and vote</a></div>\n<div class="break"></div>\n';

    out += '\n<div>';
    out += '\n<div style="margin: 12px 0pt 0pt; float: left; font-family: Verdana,Arial,Helvetica,sans-serif; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10px; line-height: normal; font-size-adjust: none; font-stretch: normal;">created by <a href="' + plex.link + '" style="color: rgb(0, 102, 153);" target="_blank">' + plex.lensmaster + '</a></div>';
    out += '\n<div style="float: right;"><a href="http://www.squidoo.com" target="_blank"><img src="http://squidcdn.s3.amazonaws.com/images/poweredbysquidoo.gif" alt="powered by Squidoo" border="0" height="35" width="105"></a></div>';
    out += '\n<div style="clear: both; visibility: hidden;"></div>';

    out += '\n</div>';
    out += '\n</div>';
  } else {
    //Insert footer for sidebar widget.
    if (plex.items.length == length)
      out += '<div><a href="' + plex.link + '" style="color: rgb(0, 102, 153); font-weight: bold">See the original lens</a></div>\n<div class="break"></div>\n';
    else
      out += '<div><a href="' + plex.link + '" style="color: rgb(0, 102, 153); font-weight: bold">See all ' + plex.items.length + ' and vote</a></div>\n<div class="break"></div>\n';

    out += '\n<div style="margin: 12px 0pt 0pt;">';
    out += '\n<div style="float: left; font-family: Verdana,Arial,Helvetica,sans-serif; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10px; line-height: normal; font-size-adjust: none; font-stretch: normal;">created by<br>';
    out += '\n<a href="' + plex.link + '" style="color: rgb(0, 102, 153);" target="_blank">' + plex.lensmaster + '</a></div>';
    out += '\n<div style="float: right;"><a href="http://www.squidoo.com" target="_blank"><img src="http://squidcdn.s3.amazonaws.com/images/poweredbysquidoo_small.gif" alt="powered by Squidoo" border="0" height="25" width="75"></a></div>';
    out += '\n<div style="clear: both; visibility: hidden;"></div>';
    out += '\n</div>';
    out += '</div>';
  }



  /*
    } else {

    }
  } else {
    if (options.size != "sidebar") {
      var out = "";
      out += '\n<div style="width: 400px; border: 1px solid rgb(178, 178, 178); padding: 8px;">';
      	out += '\n<h2 style="border-bottom: 1px solid rgb(178, 178, 178); margin: 0pt 0pt 2px; padding: 6px 0pt 5px; font-family: Trebuchet MS,Arial,Helvetica,sans-serif; font-style: normal; font-variant: normal; font-weight: normal; font-size: 22px; line-height: 24px; font-size-adjust: none; font-stretch: normal; letter-spacing: 0pt; color: rgb(0, 0, 0);">' + plex.title + '</h2>';
      	out += '\n<h3 style="margin: 0pt; padding: 0pt; font-family: Trebuchet MS,Arial,Helvetica,sans-serif; font-style: normal; font-variant: normal; font-weight: normal; font-size: 15px; line-height: normal; font-size-adjust: none; font-stretch: normal; color: rgb(102, 102, 102);">' + plex.subtitle + '</h3>';
      	out += '\n<p style="margin: 14px 0pt; font-family: Verdana,Arial,Helvetica,sans-serif; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal;">' + plex.description + '</p>';





  /*
  	<div style="margin: 6px 0pt; text-align: center; font-family: Verdana,Arial,Helvetica,sans-serif; font-style: normal; font-variant: normal; font-weight: bold; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal;"><a href="#" style="color: rgb(0, 102, 153);">Vote for more!</a></div>

    } else {
      var out = "";


        for (i = 0; i < length; i++) {
          var points, item = plex.items[i];
          if (item.points == 1)
            points = item.points + " point";
          else
            points = item.points + " points";

          out += '\n<div id="plexItem' + item.id + '" style="margin: 0pt; padding: 5px 0pt;">';
            out += '\n<div style="margin: 0pt; float: left; text-align: center; position: relative; width: 65px;">';
              out += '\n<h4 style="color: white;margin: 0pt; padding: 2px 0pt 4px; background: transparent url(http://squidcdn.s3.amazonaws.com/images/bg_plexo-rank.gif) no-repeat scroll 0%; position: absolute; top: 0pt; left: 0pt; font-family: Trebuchet MS,Arial,Helvetica,sans-serif; font-style: normal; font-variant: normal; font-weight: bold; font-size: 16px; line-height: 16px; font-size-adjust: none; font-stretch: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 45px;">#' + (i+1) + '</h4>';
              out += '\n<div style="background: transparent url(http://squidcdn.s3.amazonaws.com/images/icon_vote-up.gif) no-repeat scroll 0%; overflow: hidden; position: absolute; top: 0pt; right: 0pt; width: 16px; height: 9px; text-indent: -999em; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" onmouseover="this.style.backgroundPosition=\'-16px 0\';this.style.cursor=\'pointer\'" onmouseout="this.style.backgroundPosition=\'0 0\';this.style.cursor=\'\'" onclick="location.href=\'' + plex.link + '?plexVote=1&lmi=' + plex.lmi + '&item_id=' + item.id + '&direction=up\';"><a href="#">Vote Up</a></div>';
              out += '\n<div style="background: transparent url(http://squidcdn.s3.amazonaws.com/images/icon_vote-down.gif) no-repeat scroll 0%; overflow: hidden; position: absolute; top: 12px; right: 0pt; width: 16px; height: 9px; text-indent: -999em; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" onmouseover="this.style.backgroundPosition=\'-16px 0\';this.style.cursor=\'pointer\'" onmouseout="this.style.backgroundPosition=\'0 0\';this.style.cursor=\'\'" onclick="location.href=\'' + plex.link + '?plexVote=1&lmi=' + plex.lmi + '&item_id=' + item.id + '&direction=down\';"><a href="#">Vote Down</a></div>';
            out += '\n</div>';
            out += '\n<div id="plexo_item' + item.id + '" style="margin-left: 70px; font-family: Verdana,Arial,Helvetica,sans-serif; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; font-size-adjust: none; font-stretch: normal; width: auto;">';
              out += '\n<h4 style="margin: 0pt; padding: 0pt; font-size: 12px;">';
              if (item.link != "")
                out += '\n<a target="_new" href="' + item.link + '" style="color: rgb(204, 102, 51); text-decoration: none;">';
              out += item.title;
              if (item.link != "")
                out += '\n</a>';
              out += '</h4>';
              out += '\n<p style="margin: 0pt; padding: 0pt;"><span id="pointsDisplay87" style="padding: 0pt 0pt 0pt 10px; font-family: verdana,Arial,Helvetica,sans-serif; font-style: italic; font-variant: normal; font-weight: normal; font-size: 9px; line-height: normal; font-size-adjust: none; font-stretch: normal; color: rgb(102, 102, 102);">' + points + '</span></p>';
            out += '\n</div>';
          out += '\n</div>';

          //out += '\n<div style="clear: both; visibility: hidden;">&nbsp;</div>';
        }


    }
  }
*/
  el.innerHTML = out;

  return true;
        }