    if (plexData == undefined) {
      var plexData = new Array();
    }
    plexData.push(    {
      "json_source" : "http://www.squidoo.com/utility/plexus_json/25971",
      "id" : "25971",
      "lmi" : "2390021",
      "title" : "Gardening Links",
      "subtitle" : "Add your own links, and vote on them",
      "description" : "",
      "link" : "http://www.squidoo.com/medieval-garden",
      "type" : "Link",
      "num_results" : "1000000",
      "lensmaster" : "Nathanville",
      "lensmaster_link" : "http://www.squidoo.com/lensmasters/Nathanville",
      "thumbnails" : "no",
      "items" : [{"id" : "287004", "title" : "Gone Gardening - Biological Pest Control","points" : "2", "description" : "The Biological Pest Control department at GoneGardening.com. Every gardener wants to be as environmentally friendly as possible. Many common garden pr...","link" : "http://www.gonegardening.com/xq/ASP/dept_id.60061/referer./qx/gg_shop/dept.htm","thumbnail" : ""},{"id" : "390906", "title" : "More Garden Links on Nathanville","points" : "2", "description" : "A selection of usefull garden links on Nathanville.","link" : "http://www.nathanville.pwp.blueyonder.co.uk/html/addlinks.htm#h3","thumbnail" : ""},{"id" : "424685", "title" : "Sundials: 5000 Years of Timetelling on Squidoo","points" : "2", "description" : "Many people think of sundials as nothing more than historical curiosities. How wrong can you be?","link" : "http://www.squidoo.com/sundial/","thumbnail" : ""},{"id" : "259627", "title" : "Garden Guides","points" : "1", "description" : "Whether you are new to gardening, or a seasoned gardening pro, Garden Guides has everything you need. For more than eight years, Garden Guides has bee...","link" : "http://www.gardenguides.com/","thumbnail" : ""},{"id" : "259628", "title" : "DIGS","points" : "1", "description" : "Garden Landscaping in the Bristol area.","link" : "http://www.garden-digs.pwp.blueyonder.co.uk/index.htm","thumbnail" : ""},{"id" : "259629", "title" : "National Gardening Association","points" : "1", "description" : "","link" : "http://www.garden.org/home","thumbnail" : ""},{"id" : "259630", "title" : "Garden Web - The Internet\'s Garden Community","points" : "1", "description" : "GardenWeb is the largest gardening site on the Web, with garden forums, articles on gardening, directories of nurseries, gardens and gardening organiz...","link" : "http://www.gardenweb.com/","thumbnail" : ""},{"id" : "262583", "title" : "water saving gardens and rock gardens from south africa","points" : "1", "description" : "Replace the lawn with pebbles and stones in patterns to save water.Build a rock garden in the shape of a wall to fit into small space. Descriptions wi...","link" : "http://succulentplants.net","thumbnail" : ""},{"id" : "262584", "title" : "http://made-in-afrika.com/aloes","points" : "1", "description" : "more than thirty succulent aloe species and hybrids with photos, travel in succulent nature, stay healthy with aloes and attract birds to your garden....","link" : "http://made-in-afrika.com/aloes","thumbnail" : ""},{"id" : "262820", "title" : "Shop on line with Nathanville","points" : "1", "description" : "Shop on line with Nathanville for all your gardening needs and supplies.","link" : "http://www.nathanville.co.uk","thumbnail" : ""},{"id" : "263560", "title" : "http://www.squidoo.com/thevirtualgarden/","points" : "1", "description" : "My favorite spot is a bench in the center of my perennial garden, in the middle of summer. It is a great place to sit quietly, meditate, and reflect o...","link" : "http://www.squidoo.com/thevirtualgarden/","thumbnail" : ""},{"id" : "345599", "title" : "Vegetable Gardening Books for the Home Hobbyist","points" : "1", "description" : "Free vegetable gardening tips, advice and techniques by Jacob Mittleider. Vegetable gardening books, CD%u2019s and videos to produce the best organic...","link" : "http://www.foodforeveryone.org/","thumbnail" : ""},{"id" : "390901", "title" : "Garden Web Album","points" : "1", "description" : "Lots of brilliant photos of a wildlife garden.  Plenty of close-up images of flowers and insects.","link" : "http://picasaweb.google.com/janeanne29/Keepers?authkey=zXwYxdhcN74","thumbnail" : ""},{"id" : "436525", "title" : "Fresh Cooking from your Garden-Gardening Tips and Great Vegetable Recipes from your Harvest","points" : "1", "description" : "Get great gardening tips with accompanying vegetable recipes for your complete garden harvest","link" : "http://www.gardenandhearth.com/gardencooking.htm","thumbnail" : ""},{"id" : "469235", "title" : "Rhino Beetles","points" : "1", "description" : "All you wanted to know about Rhino Beetles, and frogs too.","link" : "http://www.squidoo.com/insects/","thumbnail" : ""},{"id" : "587230", "title" : "Medieval Gardens","points" : "1", "description" : "Garden planning, plants and layout of the Medieval and Renaissance periods.","link" : "http://www.gallowglass.org/jadwiga/herbs/medievalgardens.htm","thumbnail" : ""},{"id" : "591796", "title" : "Container Gardening","points" : "1", "description" : "","link" : "http://www.container-garden.info/","thumbnail" : ""},{"id" : "635077", "title" : "The Herb Garden","points" : "1", "description" : "Herbs are grown in raised beds and containers in this Mediaeval Organic Garden to add diversity to the garden and for kitchen use. Herbs grown in this...","link" : "http://www.squidoo.com/garden-herbs/","thumbnail" : ""},{"id" : "739267", "title" : "Gardening.co.uk - the total online gardening resource","points" : "1", "description" : "Practical gardening advice and news, from lawns and plants to landscaping.","link" : "http://www.gardening.co.uk/","thumbnail" : ""},{"id" : "1295991", "title" : "Wildlife Scene Etched Glass-Top 3 Sites To Buy Wildlife Glass &amp; Gifts","points" : "1", "description" : "One of my passions in life is appreciating the great wildlife we have here on our planet. Since a young age I have had a fascination with most animals...","link" : "http://www.squidoo.com/wildlifeglass","thumbnail" : ""},{"id" : "1331895", "title" : "Caring for a Pond at pondexpert.co.uk","points" : "1", "description" : "whether you\'re a gardening expert or a novice, we cover all aspects of pond construction, maintenance and wildlife.","link" : "http://www.pondexpert.co.uk/","thumbnail" : ""},{"id" : "1618563", "title" : "http://www.squidoo.com/FrogUnitStudy","points" : "1", "description" : "Learn how to build a Frog Pond","link" : "http://www.squidoo.com/FrogUnitStudy","thumbnail" : ""},{"id" : "1618564", "title" : "http://www.squidoo.com/bluebirds","points" : "1", "description" : "Bluebird houses fit beautifully into your gardening theme.","link" : "http://www.squidoo.com/bluebirds","thumbnail" : ""},{"id" : "1658734", "title" : "Container Gardening Tips | Easy Container Gardens","points" : "1", "description" : "Learn how to grow fabulous vegetables, fruits, herbs, and more in containers. Set up your own container garden quickly and easily!","link" : "http://www.container-gardening-tips.com","thumbnail" : ""},{"id" : "1700132", "title" : "Gardening Guides | Secret Organic Tips","points" : "1", "description" : "Our gardening guides give you tips and secrets to getting the most out of your garden.","link" : "http://www.gardeningguidetips.com/","thumbnail" : ""},{"id" : "7975882", "title" : "Gift Ideas for Gardeners","points" : "1", "description" : "Are you looking for a gift for your favorite gardener? Do you want something fun, whimsical or functional for a friend or yourself? How about some gre...","link" : "http://www.squidoo.com/GiftsForGardeners","thumbnail" : ""},{"id" : "9124782", "title" : "Cleaning And Outdoor Koi Fish Pond","points" : "1", "description" : "Like any other type of pet, people find it fun and popular to give their pet Koi treats. You might delight in seeing your Koi respond","link" : "http://www.insightempire.com/cleaning-and-outdoor-koi-fish-pond/","thumbnail" : ""},{"id" : "15276201", "title" : "John Deere Riding Mowers","points" : "1", "description" : "Fine The Finest John Deere Riding Mowers Here","link" : "http://johndeereridingmowers.org/","thumbnail" : ""},{"id" : "8877822", "title" : "Topsy Turvy","points" : "0", "description" : "As Seen On Tv Topsy Turvy Upside down Tomato Growing System","link" : "http://www.asseenontvhome.com/toolsoutdoor/as-seen-on-tv-topsy-turvey-upside-down-tomato-growing-system-reviewed/","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://cdn.squidoo.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://cdn.squidoo.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://cdn.squidoo.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://cdn.squidoo.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://cdn.squidoo.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://cdn.squidoo.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://cdn.squidoo.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://cdn.squidoo.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://cdn.squidoo.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://cdn.squidoo.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://cdn.squidoo.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://cdn.squidoo.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://cdn.squidoo.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://cdn.squidoo.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://cdn.squidoo.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://cdn.squidoo.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://cdn.squidoo.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://cdn.squidoo.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://cdn.squidoo.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;
        }