    if (plexData == undefined) {
      var plexData = new Array();
    }
    plexData.push(    {
      "json_source" : "http://www.squidoo.com/utility/plexus_json/9351",
      "id" : "9351",
      "lmi" : "2003473",
      "title" : "Vote for Your Favorite Books on Bosnia!",
      "subtitle" : "",
      "description" : "Feel free to add your favorite Bosnia-related books to this list if it\'s not already listed!",
      "link" : "http://www.squidoo.com/Bosnia",
      "type" : "Amazon",
      "num_results" : "1000000",
      "lensmaster" : "John_Fenzel",
      "lensmaster_link" : "http://www.squidoo.com/lensmasters/John_Fenzel",
      "thumbnails" : "yes",
      "items" : [{"id" : "78497", "title" : "Bosnia: A Short History by Noel Malcolm","points" : "1", "description" : "","link" : "http://www.amazon.com/gp/redirect.html%3FASIN=0814755615%26tag=squidoo-20%26lcode=xm2%26cID=2025%26ccmID=165953%26location=/o/ASIN/0814755615%253FSubscriptionId=19BAZMZQFZJ6G2QYGCG2","thumbnail" : "http://ecx.images-amazon.com/images/I/51WHWB77JDL._SL75_.jpg"},{"id" : "78498", "title" : "Endgame: The Betrayal and Fall of Srebrenica, Europe\'s Worst Massacre Since World War II by David Rohde","points" : "1", "description" : "","link" : "http://www.amazon.com/gp/redirect.html%3FASIN=0813335337%26tag=squidoo-20%26lcode=xm2%26cID=2025%26ccmID=165953%26location=/o/ASIN/0813335337%253FSubscriptionId=19BAZMZQFZJ6G2QYGCG2","thumbnail" : "http://ecx.images-amazon.com/images/I/41KPH4NBAML._SL75_.jpg"},{"id" : "78500", "title" : "Blood and Vengeance: One Family\'s Story of the War in Bosnia by Chuck Sudetic","points" : "1", "description" : "","link" : "http://www.amazon.com/gp/redirect.html%3FASIN=0140286810%26tag=squidoo-20%26lcode=xm2%26cID=2025%26ccmID=165953%26location=/o/ASIN/0140286810%253FSubscriptionId=19BAZMZQFZJ6G2QYGCG2","thumbnail" : "http://ecx.images-amazon.com/images/I/51PF0BV2FAL._SL75_.jpg"},{"id" : "78501", "title" : "To End a War (Modern Library Paperbacks) by Richard Holbrooke","points" : "1", "description" : "","link" : "http://www.amazon.com/gp/redirect.html%3FASIN=0375753605%26tag=squidoo-20%26lcode=xm2%26cID=2025%26ccmID=165953%26location=/o/ASIN/0375753605%253FSubscriptionId=19BAZMZQFZJ6G2QYGCG2","thumbnail" : "http://ecx.images-amazon.com/images/I/31xctt9egWL._SL75_.jpg"},{"id" : "78502", "title" : "Love Thy Neighbor: A Story of War by Peter Maass","points" : "1", "description" : "","link" : "http://www.amazon.com/gp/redirect.html%3FASIN=0679763899%26tag=squidoo-20%26lcode=xm2%26cID=2025%26ccmID=165953%26location=/o/ASIN/0679763899%253FSubscriptionId=19BAZMZQFZJ6G2QYGCG2","thumbnail" : "http://ecx.images-amazon.com/images/I/51N8RMW7E8L._SL75_.jpg"},{"id" : "78504", "title" : "The Bridge Betrayed: Religion and Genocide in Bosnia (Comparative Studies in Religion and Society , No 11) by Michael A. Sells","points" : "1", "description" : "","link" : "http://www.amazon.com/gp/redirect.html%3FASIN=0520216628%26tag=squidoo-20%26lcode=xm2%26cID=2025%26ccmID=165953%26location=/o/ASIN/0520216628%253FSubscriptionId=19BAZMZQFZJ6G2QYGCG2","thumbnail" : "http://ecx.images-amazon.com/images/I/41EVPA3D0GL._SL75_.jpg"},{"id" : "78516", "title" : "War Hospital: A True Story of Surgery and Survival by Sheri Fink","points" : "1", "description" : "","link" : "http://www.amazon.com/gp/redirect.html%3FASIN=1586481134%26tag=squidoo-20%26lcode=xm2%26cID=2025%26ccmID=165953%26location=/o/ASIN/1586481134%253FSubscriptionId=19BAZMZQFZJ6G2QYGCG2","thumbnail" : "http://ecx.images-amazon.com/images/I/51PG79TYDML._SL75_.jpg"},{"id" : "78499", "title" : "Inferno by James Nachtwey","points" : "0", "description" : "","link" : "http://www.amazon.com/gp/redirect.html%3FASIN=0714838152%26tag=squidoo-20%26lcode=xm2%26cID=2025%26ccmID=165953%26location=/o/ASIN/0714838152%253FSubscriptionId=19BAZMZQFZJ6G2QYGCG2","thumbnail" : "http://ecx.images-amazon.com/images/I/31ZSQCJMDBL._SL75_.jpg"},{"id" : "78503", "title" : "The War in Bosnia-Herzegovina : Ethnic Conflict and International Intervention by Steven L. Burg","points" : "0", "description" : "","link" : "http://www.amazon.com/gp/redirect.html%3FASIN=1563243091%26tag=squidoo-20%26lcode=xm2%26cID=2025%26ccmID=165953%26location=/o/ASIN/1563243091%253FSubscriptionId=19BAZMZQFZJ6G2QYGCG2","thumbnail" : "http://ecx.images-amazon.com/images/I/51V8T2A1MML._SL75_.jpg"},{"id" : "78505", "title" : "Unfinest Hour: Britain and the Destruction of Bosnia by Brendan Simms","points" : "0", "description" : "","link" : "http://www.amazon.com/gp/redirect.html%3FASIN=0140289836%26tag=squidoo-20%26lcode=xm2%26cID=2025%26ccmID=165953%26location=/o/ASIN/0140289836%253FSubscriptionId=19BAZMZQFZJ6G2QYGCG2","thumbnail" : "http://ecx.images-amazon.com/images/I/519Hl9Q9hXL._SL75_.jpg"},{"id" : "78506", "title" : "When History Is a Nightmare : Lives and Memories of Ethnic Cleansing in Bosnia-Herzegovina by Stevan M. Weine","points" : "0", "description" : "","link" : "http://www.amazon.com/gp/redirect.html%3FASIN=0813526760%26tag=squidoo-20%26lcode=xm2%26cID=2025%26ccmID=165953%26location=/o/ASIN/0813526760%253FSubscriptionId=19BAZMZQFZJ6G2QYGCG2","thumbnail" : "http://ecx.images-amazon.com/images/I/510673HMECL._SL75_.jpg"},{"id" : "78507", "title" : "Fools Rush In: A True Story of Love, War, and Redemption by Bill Carter","points" : "0", "description" : "","link" : "http://www.amazon.com/gp/redirect.html%3FASIN=1932958509%26tag=squidoo-20%26lcode=xm2%26cID=2025%26ccmID=165953%26location=/o/ASIN/1932958509%253FSubscriptionId=19BAZMZQFZJ6G2QYGCG2","thumbnail" : "http://ecx.images-amazon.com/images/I/51M5MK1XE3L._SL75_.jpg"},{"id" : "78508", "title" : "National Deconstruction: Violence, Identity, and Justice in Bosnia by David Campbell","points" : "0", "description" : "","link" : "http://www.amazon.com/gp/redirect.html%3FASIN=0816629374%26tag=squidoo-20%26lcode=xm2%26cID=2025%26ccmID=165953%26location=/o/ASIN/0816629374%253FSubscriptionId=19BAZMZQFZJ6G2QYGCG2","thumbnail" : "http://ecx.images-amazon.com/images/I/5114266JY9L._SL75_.jpg"},{"id" : "78509", "title" : "CLEANSE THEIR SOULS: Peace Keeping and War Fighting in Bosnia 1992-1993 by Monty Woolley","points" : "0", "description" : "","link" : "http://www.amazon.com/gp/redirect.html%3FASIN=1844151298%26tag=squidoo-20%26lcode=xm2%26cID=2025%26ccmID=165953%26location=/o/ASIN/1844151298%253FSubscriptionId=19BAZMZQFZJ6G2QYGCG2","thumbnail" : "http://ecx.images-amazon.com/images/I/51S8R2D4T2L._SL75_.jpg"},{"id" : "78510", "title" : "Safe Area Gorazde: The War in Eastern Bosnia 1992-1995 by Joe Sacco","points" : "0", "description" : "","link" : "http://www.amazon.com/gp/redirect.html%3FASIN=1560974702%26tag=squidoo-20%26lcode=xm2%26cID=2025%26ccmID=165953%26location=/o/ASIN/1560974702%253FSubscriptionId=19BAZMZQFZJ6G2QYGCG2","thumbnail" : "http://ecx.images-amazon.com/images/I/51wqDkvOkRL._SL75_.jpg"},{"id" : "78511", "title" : "Genocide and Resistance in Hitler\'s Bosnia: The Partisans and the Chetniks, 1941-1943 (British Academy Postdoctoral Fellowship Monographs) by Marko Attila Hoare","points" : "0", "description" : "","link" : "http://www.amazon.com/gp/redirect.html%3FASIN=0197263801%26tag=squidoo-20%26lcode=xm2%26cID=2025%26ccmID=165953%26location=/o/ASIN/0197263801%253FSubscriptionId=19BAZMZQFZJ6G2QYGCG2","thumbnail" : "http://ecx.images-amazon.com/images/I/51aoqJ5kV%2BL._SL75_.jpg"},{"id" : "78512", "title" : "Srebrenica: Record of a War Crime by Jan Willem Honig","points" : "0", "description" : "","link" : "http://www.amazon.com/gp/redirect.html%3FASIN=0140266321%26tag=squidoo-20%26lcode=xm2%26cID=2025%26ccmID=165953%26location=/o/ASIN/0140266321%253FSubscriptionId=19BAZMZQFZJ6G2QYGCG2","thumbnail" : "http://ecx.images-amazon.com/images/I/51Y45AQPSJL._SL75_.jpg"},{"id" : "78513", "title" : "My Childhood Under Fire: A Sarajevo Diary by Nadja Halilbegovich","points" : "0", "description" : "","link" : "http://www.amazon.com/gp/redirect.html%3FASIN=1553377974%26tag=squidoo-20%26lcode=xm2%26cID=2025%26ccmID=165953%26location=/o/ASIN/1553377974%253FSubscriptionId=19BAZMZQFZJ6G2QYGCG2","thumbnail" : "http://ecx.images-amazon.com/images/I/51PV8qAuFUL._SL75_.jpg"},{"id" : "78514", "title" : "The Space Between Us: Negotiating Gender and National Identities in Conflict by Cynthia Cockburn","points" : "0", "description" : "","link" : "http://www.amazon.com/gp/redirect.html%3FASIN=185649618X%26tag=squidoo-20%26lcode=xm2%26cID=2025%26ccmID=165953%26location=/o/ASIN/185649618X%253FSubscriptionId=19BAZMZQFZJ6G2QYGCG2","thumbnail" : "http://ecx.images-amazon.com/images/I/41EBYET965L._SL75_.jpg"},{"id" : "78515", "title" : "Farewell to Bosnia by Gilles Peress","points" : "0", "description" : "","link" : "http://www.amazon.com/gp/redirect.html%3FASIN=1881616223%26tag=squidoo-20%26lcode=xm2%26cID=2025%26ccmID=165953%26location=/o/ASIN/1881616223%253FSubscriptionId=19BAZMZQFZJ6G2QYGCG2","thumbnail" : "http://ecx.images-amazon.com/images/I/61XZC4HDTML._SL75_.jpg"},{"id" : "78517", "title" : "Hearts Grown Brutal:: Sagas of Sarajevo by Roger Cohen","points" : "0", "description" : "","link" : "http://www.amazon.com/gp/redirect.html%3FASIN=0679452435%26tag=squidoo-20%26lcode=xm2%26cID=2025%26ccmID=165953%26location=/o/ASIN/0679452435%253FSubscriptionId=19BAZMZQFZJ6G2QYGCG2","thumbnail" : "http://ecx.images-amazon.com/images/I/51WRNK2D51L._SL75_.jpg"},{"id" : "78518", "title" : "Genocide in Bosnia: The Policy of Ethnic Cleansing (Eastern European Studies) by Norman Cigar","points" : "0", "description" : "","link" : "http://www.amazon.com/gp/redirect.html%3FASIN=1585440043%26tag=squidoo-20%26lcode=xm2%26cID=2025%26ccmID=165953%26location=/o/ASIN/1585440043%253FSubscriptionId=19BAZMZQFZJ6G2QYGCG2","thumbnail" : "http://ecx.images-amazon.com/images/I/3155MHY6WCL._SL75_.jpg"},{"id" : "78519", "title" : "The Paratroopers of the French Foreign Legion: From Vietnam to Bosnia by Howard R. Simpson","points" : "0", "description" : "","link" : "http://www.amazon.com/gp/redirect.html%3FASIN=1574882260%26tag=squidoo-20%26lcode=xm2%26cID=2025%26ccmID=165953%26location=/o/ASIN/1574882260%253FSubscriptionId=19BAZMZQFZJ6G2QYGCG2","thumbnail" : "http://ecx.images-amazon.com/images/I/514KYNJHKEL._SL75_.jpg"},{"id" : "78520", "title" : "Sarajevo: A War Journal by Zlatko Dizdarevic","points" : "0", "description" : "","link" : "http://www.amazon.com/gp/redirect.html%3FASIN=0805035354%26tag=squidoo-20%26lcode=xm2%26cID=2025%26ccmID=165953%26location=/o/ASIN/0805035354%253FSubscriptionId=19BAZMZQFZJ6G2QYGCG2","thumbnail" : ""},{"id" : "78521", "title" : "This Time We Knew: Western Responses to Genocide in Bosnia","points" : "0", "description" : "","link" : "http://www.amazon.com/gp/redirect.html%3FASIN=0814715354%26tag=squidoo-20%26lcode=xm2%26cID=2025%26ccmID=165953%26location=/o/ASIN/0814715354%253FSubscriptionId=19BAZMZQFZJ6G2QYGCG2","thumbnail" : "http://ecx.images-amazon.com/images/I/517p1wAo2sL._SL75_.jpg"},{"id" : "78522", "title" : "Postcards from the Grave by Emir Suljagic","points" : "0", "description" : "","link" : "http://www.amazon.com/gp/redirect.html%3FASIN=0863565190%26tag=squidoo-20%26lcode=xm2%26cID=2025%26ccmID=165953%26location=/o/ASIN/0863565190%253FSubscriptionId=19BAZMZQFZJ6G2QYGCG2","thumbnail" : "http://ecx.images-amazon.com/images/I/41OlBdlLU8L._SL75_.jpg"},{"id" : "78523", "title" : "Bosnia after Dayton: Nationalist Partition and International Intervention by Sumantra Bose","points" : "0", "description" : "","link" : "http://www.amazon.com/gp/redirect.html%3FASIN=0195158482%26tag=squidoo-20%26lcode=xm2%26cID=2025%26ccmID=165953%26location=/o/ASIN/0195158482%253FSubscriptionId=19BAZMZQFZJ6G2QYGCG2","thumbnail" : "http://ecx.images-amazon.com/images/I/41xviYJNCwL._SL75_.jpg"},{"id" : "78524", "title" : "The Graves: Srebrenica And Vukovar by Eric Stover","points" : "0", "description" : "","link" : "http://www.amazon.com/gp/redirect.html%3FASIN=3931141764%26tag=squidoo-20%26lcode=xm2%26cID=2025%26ccmID=165953%26location=/o/ASIN/3931141764%253FSubscriptionId=19BAZMZQFZJ6G2QYGCG2","thumbnail" : "http://ecx.images-amazon.com/images/I/51AQ0ME9AFL._SL75_.jpg"},{"id" : "78525", "title" : "The Road to Kosovo: A Balkan Diary by Greg Campbell","points" : "0", "description" : "","link" : "http://www.amazon.com/gp/redirect.html%3FASIN=0813337674%26tag=squidoo-20%26lcode=xm2%26cID=2025%26ccmID=165953%26location=/o/ASIN/0813337674%253FSubscriptionId=19BAZMZQFZJ6G2QYGCG2","thumbnail" : "http://ecx.images-amazon.com/images/I/51fn-fhTS-L._SL75_.jpg"},{"id" : "78526", "title" : "Ottoman Bosnia: A History in Peril","points" : "0", "description" : "","link" : "http://www.amazon.com/gp/redirect.html%3FASIN=0299207145%26tag=squidoo-20%26lcode=xm2%26cID=2025%26ccmID=165953%26location=/o/ASIN/0299207145%253FSubscriptionId=19BAZMZQFZJ6G2QYGCG2","thumbnail" : "http://ecx.images-amazon.com/images/I/418B5D9Q4SL._SL75_.jpg"},{"id" : "78527", "title" : "The Road to the Dayton Accords: A Study of American Statecraft by Derek Chollet","points" : "0", "description" : "","link" : "http://www.amazon.com/gp/redirect.html%3FASIN=1403965005%26tag=squidoo-20%26lcode=xm2%26cID=2025%26ccmID=165953%26location=/o/ASIN/1403965005%253FSubscriptionId=19BAZMZQFZJ6G2QYGCG2","thumbnail" : "http://ecx.images-amazon.com/images/I/51Sefa9hQVL._SL75_.jpg"},{"id" : "78528", "title" : "Empire Lite: Nation-Building in Bosnia, Kosovo, and Afghanistan by Michael Ignatieff","points" : "0", "description" : "","link" : "http://www.amazon.com/gp/redirect.html%3FASIN=0143014919%26tag=squidoo-20%26lcode=xm2%26cID=2025%26ccmID=165953%26location=/o/ASIN/0143014919%253FSubscriptionId=19BAZMZQFZJ6G2QYGCG2","thumbnail" : "http://ecx.images-amazon.com/images/I/51TZGZWN86L._SL75_.jpg"},{"id" : "78529", "title" : "Welcome to Sarajevo: Natasha\'s Story by Michael Nicholson","points" : "0", "description" : "","link" : "http://www.amazon.com/gp/redirect.html%3FASIN=0786882344%26tag=squidoo-20%26lcode=xm2%26cID=2025%26ccmID=165953%26location=/o/ASIN/0786882344%253FSubscriptionId=19BAZMZQFZJ6G2QYGCG2","thumbnail" : "http://ecx.images-amazon.com/images/I/71G9YV8NVXL._SL75_.gif"}],
      "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;
        }