    if (plexData == undefined) {
      var plexData = new Array();
    }
    plexData.push(    {
      "json_source" : "http://www.squidoo.com/utility/plexus_json/4388",
      "id" : "4388",
      "lmi" : "",
      "title" : "",
      "subtitle" : "",
      "description" : "",
      "link" : "http://www.squidoo.com/",
      "type" : "",
      "num_results" : "",
      "lensmaster" : "",
      "lensmaster_link" : "http://www.squidoo.com/lensmasters",
      "thumbnails" : "no",
      "items" : [{"id" : "34113", "title" : "Greenpeace","points" : "147", "description" : "What\'s smart: The &quot;Defending our Oceans&quot; campaign gives their members a voice and a platform.","link" : "http://oceans.greenpeace.org/en","thumbnail" : ""},{"id" : "34218", "title" : "KIVA","points" : "104", "description" : "What\'s smart: Personalized sponsorships--you choose which entrepreneur to support. Leveraging traditional TV to support online efforts. Flickr, Squido...","link" : "http://www.kiva.org/","thumbnail" : ""},{"id" : "34225", "title" : "Modest Needs","points" : "73", "description" : "What\'s smart: Structured around small one-time gifts of financial assistance. Highlight: the ability for donors to give through eBay auctions.","link" : "http://www.modestneeds.org","thumbnail" : ""},{"id" : "34238", "title" : "New York City Coalition Against Hunger","points" : "51", "description" : "What\'s smart: Find more than 1,200 local soup kitchens and food pantries via first-ever interactive maps of hunger and food resources in New York City...","link" : "http://www.nyccah.org/","thumbnail" : ""},{"id" : "34234", "title" : "WorldChanging","points" : "44", "description" : "What\'s smart: A well-designed group blog on tools, ideas, and solutions that bring about positive change. Users can also post comments in the communit...","link" : "http://www.worldchanging.com/","thumbnail" : ""},{"id" : "34426", "title" : "Ferrets Unlimited Ferret Shelter","points" : "33", "description" : "What\'s smart: It\'s not the size of the ferret that matters, it\'s the size of the heart in their supporters. Yes, small is the new big.","link" : "http://www.ferretsunlimited.org/","thumbnail" : ""},{"id" : "32665", "title" : "St. Jude Children\'s Research Hospital","points" : "31", "description" : "What\'s smart: St. Jude\'s won\'t turn a child away. Insurance or no, kids get treated.","link" : "http://www.stjude.org/","thumbnail" : ""},{"id" : "34215", "title" : "ASPCA","points" : "25", "description" : "What\'s smart: microdonations are encouraged; use of MySpace, YouTube, message boards.","link" : "http://www.aspca.org","thumbnail" : ""},{"id" : "34221", "title" : "Doctors Without Borders","points" : "25", "description" : "What\'s smart: using videos and blogs as recruitment tools for volunteers and interns.","link" : "http://www.msf.org","thumbnail" : ""},{"id" : "34435", "title" : "The ONE Campaign","points" : "20", "description" : "What\'s smart: Aggressive use of free media, and micro-donations.","link" : "http://www.one.org/","thumbnail" : ""},{"id" : "34219", "title" : "Bridges 2 Hope Project","points" : "17", "description" : "What\'s smart: offering patients, their family members, and supporters a FREE opportunity to participate in the advocacy effort.","link" : "http://www.bridges2hope.org","thumbnail" : ""},{"id" : "45487", "title" : "Oxfam America","points" : "16", "description" : "What\'s smart: a daring Starbucks campaign, MySpace Rock for Darfur, winner of the Squidoo 50,000 lens contest.","link" : "http://www.oxfamamerica.org/","thumbnail" : ""},{"id" : "34228", "title" : "Natural Resources Defense Council (NRDC)","points" : "14", "description" : "What\'s smart: their BioGems microsite dedicated to critical natural habitats, includes Google Earth video tours.","link" : "http://www.savebiogems.org/","thumbnail" : ""},{"id" : "34229", "title" : "Save the Children","points" : "14", "description" : "What\'s smart: Harnessing everyday passions. A knitting/crocheting campaign with downloadable kits, local events and interactive maps.","link" : "http://www.savethechildren.org","thumbnail" : ""},{"id" : "34433", "title" : "The Michael J. Fox Foundation for Parkinson\'s Research","points" : "14", "description" : "What\'s smart: 3 cheers for Team Fox.","link" : "http://www.michaeljfox.org/","thumbnail" : ""},{"id" : "34211", "title" : "Amnesty International","points" : "13", "description" : "What\'s smart: Online advocacy powerhouse, empowers blogging community, runs numerous campaigns that solicit letters, video, petition signings","link" : "http://www.amnesty.org/","thumbnail" : ""},{"id" : "34216", "title" : "Rainforest Action Network","points" : "13", "description" : "What\'s smart: active recommendation economy that cycles through MySpace, Flickr, blogs, and videos.","link" : "http://www.ran.org/","thumbnail" : ""},{"id" : "34231", "title" : "MoveOn","points" : "13", "description" : "What\'s smart: This isn\'t your grandfather\'s nonprofit. Their 2006 recap [http://pol.moveon.org/2006report/] highlights the strategy behind their mid-t...","link" : "http://www.moveon.org/","thumbnail" : ""},{"id" : "34249", "title" : "Juvenile Diabetes Research Foundation","points" : "13", "description" : "What\'s smart: Forget the gatekeepers. The volunteers are empowered, trusted, and valued in a way that every org can learn from.","link" : "http://www.jdrf.org","thumbnail" : ""},{"id" : "34420", "title" : "Ad Council","points" : "12", "description" : "What\'s smart: Use of YouTube, change in media, the recommendation economy online.","link" : "http://www.adcouncil.org/","thumbnail" : ""},{"id" : "34203", "title" : "Nature Conservancy","points" : "11", "description" : "What\'s smart: Call for user-generated photos, customizable e-cards","link" : "http://www.nature.org/","thumbnail" : ""},{"id" : "34240", "title" : "DonorsChoose","points" : "11", "description" : "What\'s smart: An online platform enabling teachers to propose projects for funding and donors to contribute to specific projects.","link" : "http://www.donorschoose.org/","thumbnail" : ""},{"id" : "34243", "title" : "Music For America (MFA)","points" : "11", "description" : "What\'s smart: an Internet radio station for young musicians to contribute to online. Access to live music events in exchange for doing political outre...","link" : "http://www.musicforamerica.org/","thumbnail" : ""},{"id" : "34252", "title" : "Room to Read","points" : "11", "description" : "What\'s smart: What\'s not?! These guys get most things Org 2.0. Check them out.","link" : "http://www.roomtoread.org","thumbnail" : ""},{"id" : "34210", "title" : "Environmental Defense","points" : "10", "description" : "What\'s smart: Aggressive and relevant and authentic permission marketing campaigns. Yes, all 3!","link" : "http://www.environmentaldefense.org/","thumbnail" : ""},{"id" : "34248", "title" : "Rainforest Alliance","points" : "10", "description" : "What\'s smart: Transforming land-use practices, business practices and consumer behavior.","link" : "http://www.rainforest-alliance.org/","thumbnail" : ""},{"id" : "34428", "title" : "Ecotrust: Building Salmon Nation","points" : "10", "description" : "What\'s smart: Harnessing new marketing media across the web.","link" : "http://www.ecotrust.org/","thumbnail" : ""},{"id" : "34227", "title" : "Opendemocracy.net","points" : "9", "description" : "What\'s smart: Encourages readers to challenge authors and express their views on forum pages.","link" : "http://www.opendemocracy.net","thumbnail" : ""},{"id" : "34209", "title" : "Human Rights Campaign","points" : "8", "description" : "What\'s smart: Use of ebook action guides, passalong of scorecards for grading members of Congress.","link" : "http://www.hrc.org/","thumbnail" : ""},{"id" : "34235", "title" : "Interplast","points" : "8", "description" : "What\'s smart: Providing free reconstructive surgery to children in developing countries--uses storytelling to keep visitors  connected through blogs,...","link" : "http://interplast.blogs.com/","thumbnail" : ""},{"id" : "34222", "title" : "World Vision","points" : "7", "description" : "What\'s smart:  Radio, podcasts, RSS, story ideas section.","link" : "http://www.worldvision.org","thumbnail" : ""},{"id" : "34224", "title" : "The Leukemia &amp; Lymphoma Society","points" : "7", "description" : "What\'s smart: Very focused online, have tons of events and participation for advocates, encourage supporters to blog and make lenses and videos.","link" : "http://www.leukemia-lymphoma.org/hm_lls","thumbnail" : ""},{"id" : "34237", "title" : "TakingITGlobal","points" : "7", "description" : "What\'s smart: Focus on young philanthropists online. Its website features a blog, free online team planning space, and video chats.","link" : "http://www.takingitglobal.org/","thumbnail" : ""},{"id" : "34244", "title" : "Witness","points" : "7", "description" : "What\'s smart: The Witness Video Hub Pilot--anyone with human-rights related footage will be able to upload video to create change.","link" : "http://www.witness.org","thumbnail" : ""},{"id" : "34246", "title" : "Bookcrossing","points" : "7", "description" : "What\'s smart: Donate books and watch their progression around the world. Highlights: A uniquely transparent tell-a-friend feature.","link" : "http://www.bookcrossing.org","thumbnail" : ""},{"id" : "34427", "title" : "Center for Church Communication","points" : "7", "description" : "What\'s smart: Kudos to the Church Marketing Sucks blog.","link" : "http://www.cfcclabs.org/","thumbnail" : ""},{"id" : "34217", "title" : "The Gates Foundation","points" : "6", "description" : "What\'s smart: Outstanding and singular commitment to philanthropy, which can be forgotten in a fast-paced online world. (Hey, it\'s Bill).","link" : "http://www.gatesfoundation.org","thumbnail" : ""},{"id" : "34220", "title" : "Sierra Club","points" : "6", "description" : "What\'s smart: Sierra Club gets points for their creative &quot;cool cities&quot; local advocacy. And a bonus for Sierra Club Radio.","link" : "http://www.sierraclub.org","thumbnail" : ""},{"id" : "34232", "title" : "MobileActive","points" : "6", "description" : "What\'s smart: A global network of organizations and activists using mobile phones in their social-change work.","link" : "http://www.mobileactive.org/","thumbnail" : ""},{"id" : "34430", "title" : "Inner-City Scholarship Fund","points" : "6", "description" : "What\'s smart: Total relentless passion for what they\'re doing. Low overhead sponsoring of underprivileged children. Kudos to Anne Reidy.","link" : "http://www.innercitysf.org/","thumbnail" : ""},{"id" : "32666", "title" : "Grameen Foundation - Fighting poverty with microfinance","points" : "5", "description" : "What\'s smart: Microfinance, fearless innovation and use of new media like YouTube, Squidoo. Congrats on the Nobel Prize!","link" : "http://www.grameenfoundation.org","thumbnail" : ""},{"id" : "34205", "title" : "People for the Ethical Treatment of Animals (PETA)","points" : "5", "description" : "What\'s smart: Tight activist network, focus on social features online, great user-generated content","link" : "http://www.peta.org/","thumbnail" : ""},{"id" : "34213", "title" : "National MS Society","points" : "5", "description" : "What\'s smart: Advocacy via the MS Action Networks; FaceofMS.org looks for stories.","link" : "http://www.nationalmssociety.org/","thumbnail" : ""},{"id" : "34214", "title" : "Mayo Clinic: Medical Treatment and Research Centers","points" : "5", "description" : "What\'s smart: lots of RSS feeds and videos, and tons of personal experiences and stories.","link" : "http://www.mayoclinic.org/","thumbnail" : ""},{"id" : "34247", "title" : "Share Our Strength","points" : "5", "description" : "What\'s smart: Volunteer-led special events across the country and online.","link" : "http://www.strength.org/","thumbnail" : ""},{"id" : "34250", "title" : "New Orleans Voices for Peace","points" : "5", "description" : "What\'s smart: An org whose core is aligned with the web. Providing web access, hosting, media development for communities affected by the Hurricanes R...","link" : "http://www.neworleansvfp.org","thumbnail" : ""},{"id" : "34429", "title" : "NPR\'s Science Friday","points" : "5", "description" : "What\'s smart: Show host Ira Flatow, for testing conversion from radio mentions to website visits.","link" : "http://www.sciencefriday.com/","thumbnail" : ""},{"id" : "34201", "title" : "Product (RED)","points" : "4", "description" : "What\'s smart: crossover between offline retailers, and online storytelling. (Not to mention Bono-power!).","link" : "http://www.joinred.com/","thumbnail" : ""},{"id" : "34202", "title" : "Susan G. Komen Breast Cancer Foundation","points" : "4", "description" : "What\'s smart: Crossover offline and retail partnerships, evangelists on Facebook.","link" : "http://www.komen.org/","thumbnail" : ""},{"id" : "34208", "title" : "Planned Parenthood Federation of America, Inc.","points" : "4", "description" : "What\'s smart: specialized constituent database management.","link" : "http://www.plannedparenthood.org/","thumbnail" : ""},{"id" : "34212", "title" : "Hybrid Center","points" : "4", "description" : "What\'s smart: Part of the Union of Concerned Scientists. Excellent single issue ideavirus/tool","link" : "http://www.hybridcenter.org/","thumbnail" : ""},{"id" : "34236", "title" : "Arts Engine Inc.","points" : "4", "description" : "What\'s smart: Fostering the production of independent film, video, and other new media. Kudos to MediaRights.org: a database-driven resource for filmm...","link" : "http://www.artsengine.net","thumbnail" : ""},{"id" : "34242", "title" : "Earth Share of Washington","points" : "4", "description" : "What\'s smart: Decentralization. This is a federation of 66 uniquely empowered environmental organizations around the state and online.","link" : "http://www.esw.org/","thumbnail" : ""},{"id" : "34207", "title" : "Scorecard","points" : "3", "description" : "What\'s smart: going small and local and personal, not big. they provide detailed local environmental reports.","link" : "http://www.scorecard.org/","thumbnail" : ""},{"id" : "34233", "title" : "PledgeBank--a project of mySociety.org","points" : "3", "description" : "What\'s smart: A &quot;new marketing&quot; tool that allows people to pledge online and take action to make a difference-but only if others will also agree to ta...","link" : "http://www.pledgebank.com","thumbnail" : ""},{"id" : "34239", "title" : "CivicSpace","points" : "3", "description" : "What\'s smart: A free, open-source platform for grassroots organizing and civic activity, incorporates blogging, forums, file storage, and surveys.","link" : "http://civicspacelabs.org/home/","thumbnail" : ""},{"id" : "34226", "title" : "The American Institute of Architects","points" : "2", "description" : "What\'s smart: Encouraging architects to design inspiring shelters for homeless and disaster victims. DIY online goes offline! How smart.","link" : "http://www.aia.org","thumbnail" : ""},{"id" : "34241", "title" : "Covenant House of California","points" : "2", "description" : "What\'s smart: Features stories of their clients, included same content in outbound email campaign to drive donations.","link" : "http://www.covdove.org","thumbnail" : ""},{"id" : "34245", "title" : "Freedom Toaster","points" : "2", "description" : "What\'s smart:  Open source! The Freedom Toaster is a free vending machine/kiosk that dispenses open source software burned to CD or DVD in locations t...","link" : "http://www.freedomtoaster.org/","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;
        }