    if (plexData == undefined) {
      var plexData = new Array();
    }
    plexData.push(    {
      "json_source" : "http://www.squidoo.com/utility/plexus_json/297268",
      "id" : "297268",
      "lmi" : "11316105",
      "title" : "List your tactics here (and don\'t forget to vote for your favorites",
      "subtitle" : "Feel free to be specific",
      "description" : "Online or offline tactics for building a tribe.",
      "link" : "http://www.squidoo.com/tribebuilding",
      "type" : "Text",
      "num_results" : "1000000",
      "lensmaster" : "sethgodin",
      "lensmaster_link" : "http://www.squidoo.com/lensmasters/sethgodin",
      "thumbnails" : "no",
      "items" : [{"id" : "2359526", "title" : "Share stories","points" : "34", "description" : "Use them to build bonds and strengthen ties between tribe members.","link" : "","thumbnail" : ""},{"id" : "2360103", "title" : "Be the Example","points" : "30", "description" : "Walk the walk and talk the talk...people only follow those who take their own advice and show they mean what they say.","link" : "","thumbnail" : ""},{"id" : "2360033", "title" : "Build the Story of the Tribe. Set the Vision","points" : "29", "description" : "Define the tribe\'s journey, goals, interactions, future, and how teamwork will get them where they want to go in a story that epitomizes what the trib...","link" : "","thumbnail" : ""},{"id" : "2358929", "title" : "Create a goal","points" : "28", "description" : "Define something people want to rally around achieving","link" : "","thumbnail" : ""},{"id" : "2359142", "title" : "Celebrate Accomplishment","points" : "27", "description" : "Reward tribal milestones or goals reached, whether collective or that of a tribal individual, with shared praise and/or a small physical gift of appre...","link" : "","thumbnail" : ""},{"id" : "2360358", "title" : "Lead with Passion","points" : "25", "description" : "Show them you are there because you want to be not because you have to.","link" : "","thumbnail" : ""},{"id" : "2359368", "title" : "Listen Carefully","points" : "24", "description" : "As well as speaking have a strong ear for what the group is saying. Trust that the tribe knows what it needs to grow.","link" : "","thumbnail" : ""},{"id" : "2358913", "title" : "Introduce Tribe Members to Each Other","points" : "22", "description" : "Listen, Learn &amp; Introduce people to each other.  Make connecting people a priority.  One of the biggest fears in life is rejection.  If you can help e...","link" : "","thumbnail" : ""},{"id" : "2359017", "title" : "Invent rituals","points" : "22", "description" : "Summer camps do it. So does organized religion. Great corporations have their own lingo, their own culture. How you speak and the totems and daily rit...","link" : "","thumbnail" : ""},{"id" : "2360369", "title" : "Be Authentic","points" : "22", "description" : "Phoney is as phoney does.Show how genuine you really are.","link" : "","thumbnail" : ""},{"id" : "2359030", "title" : "Create exclusivity","points" : "21", "description" : "Don\'t invite everyone to the tribe. Just leaders or influential people, or those with something tangible to add.","link" : "","thumbnail" : ""},{"id" : "2360203", "title" : "Empower Members....","points" : "18", "description" : "Suggest types of activities/projects that would \'advance the tribe\' thereby giving the tribe members a method to feel empowered and responsible. And,...","link" : "","thumbnail" : ""},{"id" : "2360078", "title" : "Educate","points" : "16", "description" : "Educate your tribe to help them see things in ways they never imagined. Use simple concepts to help them understand complicated ones. Break things dow...","link" : "","thumbnail" : ""},{"id" : "2361428", "title" : "Identify the shared values that unite the tribe","points" : "15", "description" : "When people share a common set of values it can galvanise a tribe to achieve its goals. The process of identifying the tribe\'s values can involve peop...","link" : "","thumbnail" : ""},{"id" : "2368864", "title" : "Give Peoples\' Lives Meaning","points" : "15", "description" : "Have tribal goals that enrich peoples\' lives and give them more meaning","link" : "","thumbnail" : ""},{"id" : "2359063", "title" : "Set some ground rules all can buy into","points" : "14", "description" : "I like Liz Strauss\'s rule at www.Success-blog.com, &quot;The rules are simple %u2014 be nice. Do be nice. :),&quot;but even outlining what will and won\'t fly is...","link" : "","thumbnail" : ""},{"id" : "2360038", "title" : "Fun and Stimulating","points" : "13", "description" : "When possible, work to maintain a fun and stimulating tribal environment.  A happy tribe is a productive tribe.  Intellectually stimulated tribe membe...","link" : "","thumbnail" : ""},{"id" : "2360059", "title" : "Mentor &amp; Encourage Mentoring","points" : "11", "description" : "How? By giving feedback and rewarding feedback.","link" : "","thumbnail" : ""},{"id" : "2389655", "title" : "Create a manifesto.","points" : "11", "description" : "Your tribe already exists... it just hasn\'t been defined yet.  So create a manifesto.  Give voice to the frustrations of your tribe members.  If you s...","link" : "","thumbnail" : ""},{"id" : "2360647", "title" : "Go Somewhere Different - e.g. Surprise the heck out of them!","points" : "10", "description" : "As one of my mentors likes to say &quot;zig when when they expect you to zag&quot;. Well said! Be Unique. How? Through the element of surprise! Surprise them wi...","link" : "","thumbnail" : ""},{"id" : "2359339", "title" : "Be and Encourager","points" : "9", "description" : "Whether you\'re a tribe leader or a tribe member - you wield power.  Use that power to encourage other tribe members.","link" : "","thumbnail" : ""},{"id" : "2359686", "title" : "Enourage a Respectful Environment","points" : "9", "description" : "Whether you\'re a tribe member or a tribe leader treat leaders and tribe members with respect.  Tribes filled with respect and respectful people become...","link" : "","thumbnail" : ""},{"id" : "2359961", "title" : "Use Carrots, Not Sticks","points" : "9", "description" : "Leaders of successful tribes don\'t use sticks, they use carrots.  Sticks don\'t motivate people, carrots do.  Offer cool incentives to tribe members wh...","link" : "","thumbnail" : ""},{"id" : "2360388", "title" : "Use the web 2.0 power","points" : "9", "description" : "Blog about your tribe. Create a Squidoo lens. Get a Facebook or Myspace group. Connect them. Get going a Ning network. Create a wiki for your tribe.","link" : "","thumbnail" : ""},{"id" : "2360618", "title" : "Be Timely and Relevant","points" : "9", "description" : "Adapt, evolve, while learning from lessons learned.","link" : "","thumbnail" : ""},{"id" : "2361287", "title" : "Require an Ante to Get in","points" : "9", "description" : "An ante will weed out people who are not serious and encourage people who put in the initial time/money/effort to be active and participate.","link" : "","thumbnail" : ""},{"id" : "2368831", "title" : "Don\'t control the Tribe","points" : "9", "description" : "The collective intelligence of a group is far greater than that of a controlling leader","link" : "","thumbnail" : ""},{"id" : "2361634", "title" : "Make It Profitable To Be In, Less To Be Out","points" : "8", "description" : "Only buyers can be affiliates.  Club members get unlimited access to facilities.  Insiders get first dibs at buying stock.  Join and enjoy 30 days ext...","link" : "","thumbnail" : ""},{"id" : "2368849", "title" : "Be a Coach - an Enabler","points" : "8", "description" : "The tribe needs someone to set the initial ethos, and to keep it on a sensible course - without telling it what to do.","link" : "","thumbnail" : ""},{"id" : "2358935", "title" : "Ask what members need, then provide it","points" : "7", "description" : "A quick survey (formal or not) to find out what people need or what they are in the tribe for, and then facilitate getting that need met.","link" : "","thumbnail" : ""},{"id" : "2359367", "title" : "Invent language","points" : "7", "description" : "Great corporations have their own lingo, so do great sports teams and niche gurus everywhere. (separate from Invent rituals--they support each other b...","link" : "","thumbnail" : ""},{"id" : "2360034", "title" : "Make it Easier","points" : "7", "description" : "Narrow the distance between intention and action.  In doing so, tribal interaction becomes more fluid and productive.  As this distance becomes narrow...","link" : "","thumbnail" : ""},{"id" : "2361700", "title" : "Have \'particular\' experiences together","points" : "7", "description" : "Activities that become \'rites of passage\' that tribe members experience together, whether it\'s cooking, hunting, dancing, tribes have always done this...","link" : "","thumbnail" : ""},{"id" : "2368863", "title" : "Have a goal that seems too big to achieve","points" : "7", "description" : "A committed tribe can achieve extraordinary results - if they\'re inspired to greatness.","link" : "","thumbnail" : ""},{"id" : "2359622", "title" : "Don\'t tell, show","points" : "6", "description" : "Telling a tribe won\'t make it change. Showing how and what to do can lead them to change. As Ghandi said &quot;Be the change you want to see&quot;","link" : "","thumbnail" : ""},{"id" : "2364357", "title" : "Create a Tribal Book","points" : "6", "description" : "Create a Tribal book which has the picture and profile for every member of the Tribe. It\'s like the yearly book for schools and Universities. Anyone w...","link" : "","thumbnail" : ""},{"id" : "2359920", "title" : "Ask Tough Questions","points" : "5", "description" : "Asking tribe members and leaders tough (challenging) questions serves three purposes.  1) Helps solve challenging problems, 2) Starts deep, important...","link" : "","thumbnail" : ""},{"id" : "2360009", "title" : "Host Virtual Events","points" : "5", "description" : "Host virtual events so that all members, regardless of geographical location, can participate and interact in an engaging format.","link" : "","thumbnail" : ""},{"id" : "2360032", "title" : "Identify what will be enforced","points" : "5", "description" : "What many organizations misunderstand is that their standards and values are not defined by their aspirations but by what they are prepared to enforce...","link" : "","thumbnail" : ""},{"id" : "2372236", "title" : "Build a Mecca","points" : "5", "description" : "A place that members can go to be surrounded by specific examples of your realized vision.  Incorporate ways for them to learn, celebrate, tinker, and...","link" : "","thumbnail" : ""},{"id" : "2359808", "title" : "","points" : "4", "description" : "Have a noticeboardA central touchpoint where people can get information and congregate","link" : "","thumbnail" : ""},{"id" : "2359992", "title" : "Have a regular contest - weekly, monthly","points" : "4", "description" : "Feature/Highlight &quot;winner&quot;","link" : "","thumbnail" : ""},{"id" : "2360021", "title" : "Survey your Tribe members - Ask for Feedback","points" : "4", "description" : "What\'s working/what\'s not working/Ask them for their input/feedback","link" : "","thumbnail" : ""},{"id" : "2360079", "title" : "Encourage Tribal Equality","points" : "4", "description" : "Be conscientious to think of all tribe members in equal terms.  Each tribe member offers unique value to the tribe.  When each tribe member feels valu...","link" : "","thumbnail" : ""},{"id" : "2360315", "title" : "Tribe Members First","points" : "4", "description" : "Remember to put the members of the tribe first.  Don%u2019t neglect your tribe members by focusing too much on recruiting new members.  Tribe members...","link" : "","thumbnail" : ""},{"id" : "2360849", "title" : "Communicate and Plan It.","points" : "4", "description" : "Make a specific plan a year out for communicating. Take it personally and seriously. Your tribe has a reason to exist.  Over-communicate it and in you...","link" : "","thumbnail" : ""},{"id" : "2364421", "title" : "Community Outreach","points" : "4", "description" : "Triiibes already has great ideas to help those outside the tribe. The Case Study e-book is an example. Yes, the membership can be exclusive, but benef...","link" : "","thumbnail" : ""},{"id" : "2367746", "title" : "Interview Tribe Members","points" : "4", "description" : "Interview members of your Tribe. Let others submit questions. Who knows, maybe they\'ll be interviewed next?","link" : "","thumbnail" : ""},{"id" : "2369373", "title" : "Feature (Recognize) Members","points" : "4", "description" : "Similar to what\'s being done in Tribes.....but this could work offline too.","link" : "","thumbnail" : ""},{"id" : "2371204", "title" : "Encourage Play","points" : "4", "description" : "Everyone likes to play, and not just because it\'s fun. Play makes you feel like you\'re a part of something larger than yourself.","link" : "","thumbnail" : ""},{"id" : "2358921", "title" : "Club T-Shirts","points" : "3", "description" : "Everybody wants to be a part of something, T-shirts are a way to express yourself.","link" : "","thumbnail" : ""},{"id" : "2359960", "title" : "Confront the tribe\'s anxieties","points" : "3", "description" : "","link" : "","thumbnail" : ""},{"id" : "2360060", "title" : "Appreciate them! And be Specific!","points" : "3", "description" : "Use their name, appreciate them for what they\'re doing, and make the appreciation very SPECIFIC! &quot;Seth, giving 50% of Squidoo\'s profits to charity is...","link" : "","thumbnail" : ""},{"id" : "2360421", "title" : "Encourage Accessible Leadership","points" : "3", "description" : "Great tribal leaders are accessible to tribe members.  Accessible leaders better understand the tribal environment and specific needs of the tribe.  F...","link" : "","thumbnail" : ""},{"id" : "2364168", "title" : "Create a tribal school or playground","points" : "3", "description" : "Create a tribal school or playground, a place where where the youngsters can meet, interact and learn how to be valuable tribe members in the future.","link" : "","thumbnail" : ""},{"id" : "2365640", "title" : "Tactics are concrete, so use concrete as a tactic.","points" : "3", "description" : "&quot;A tactic is a concrete action you can take to support a strategy.&quot;At my agency, we actually use concrete as a tactic. Literally. Something as simple...","link" : "","thumbnail" : ""},{"id" : "2382617", "title" : "Lead by sharing power, not monopolizing it","points" : "3", "description" : "If your tribe has a great idea, approve it, and let them run with it.","link" : "","thumbnail" : ""},{"id" : "2382830", "title" : "Don\'t be afraid to excommunicate members","points" : "3", "description" : "It strengthens the tribe when you remove negative, disruptive influences - and provides more incentive for existing members to act in good faith. (Exa...","link" : "","thumbnail" : ""},{"id" : "2398153", "title" : "Be Firm, Fair, and Consistent","points" : "3", "description" : "As a leader, enforce the rules of your tribe in a way that benefits everyone.  Playing favorites will only make your tribe distrust you.","link" : "","thumbnail" : ""},{"id" : "2787532", "title" : "Encourage Volunteerism","points" : "3", "description" : "Let the tribe decide what cause they would like to take up.  Give them time to volunteer, perhaps a couple of hours a month.","link" : "","thumbnail" : ""},{"id" : "2358893", "title" : "Start a hero newsletter","points" : "2", "description" : "Send the core members of the tribe a regular newsletter, with each issue highlighting the achievements of member of the tribe.","link" : "","thumbnail" : ""},{"id" : "2359378", "title" : "Have a common enemy","points" : "2", "description" : "From the cold war to global warming, a powerful enemy can be the tie that binds","link" : "","thumbnail" : ""},{"id" : "2360015", "title" : "Host a virtual event - Potluck?","points" : "2", "description" : "All members are invited to participate.","link" : "","thumbnail" : ""},{"id" : "2360020", "title" : "Encourage a Collective Mindset","points" : "2", "description" : "Encourage tribe members to think in terms of the tribe %u2013 not just themselves.  A collective mentality rises above pride of ownership and encourag...","link" : "","thumbnail" : ""},{"id" : "2360287", "title" : "Create (or encourage) Sub-tribes (Communities)","points" : "2", "description" : "Everyone has different skills and interests....provide a place/forum/groups to optimize this uniqueness.","link" : "","thumbnail" : ""},{"id" : "2361635", "title" : "Brag About It","points" : "2", "description" : "&quot;Triiibes.com has some GREAT conversations going on.  Too bad you can\'t share in them.  You\'d love it!&quot;.  Or &quot;Seen this?  It\'s my new iPhone!&quot;.  Or &quot;M...","link" : "","thumbnail" : ""},{"id" : "2361763", "title" : "Encourage a gift culture","points" : "2", "description" : "Giving is one of our most important rituals. When you receive a gift, learn to appreciate the act itself, not the product. Then give yourself. Don\'t c...","link" : "","thumbnail" : ""},{"id" : "2364386", "title" : "Show Appreciation to Non-member Tribe Supporters","points" : "2", "description" : "Not all resources and talents come from within a tribe. A spouse or business associate of a member may contribute something of value. Same for non-mem...","link" : "","thumbnail" : ""},{"id" : "2365273", "title" : "Classic: Ethical bribe for email address","points" : "2", "description" : "Find out what they want. Give them your best advice for free and spread the word about it. In exchange they become your tribe member with their email...","link" : "","thumbnail" : ""},{"id" : "2376669", "title" : "Building a good tribe, builds a better tribe","points" : "2", "description" : "Everyone wants to belong to something bigger than themselves. If you build a tribe that becomes popular, it becomes more popular. If the tribe is havi...","link" : "","thumbnail" : ""},{"id" : "2584985", "title" : "Do something!","points" : "2", "description" : "The worst thing you can do for your Tribe...is nothing. Do something...now, today, tomorrow, next week. Keep doing something!","link" : "","thumbnail" : ""},{"id" : "2916101", "title" : "Hold Tribes Parties around local events!","points" : "2", "description" : "Example with hold a party for past clients on opening day of Cincinnati Reds Opening Day! We do it at a local pub, everything is on us during game, gr...","link" : "","thumbnail" : ""},{"id" : "3016370", "title" : "Make a Video","points" : "2", "description" : "I just joined a group over on Facebook called the Hurricane of Gratitude.  They are using mostly videos to communicate within the group.  It is awesom...","link" : "","thumbnail" : ""},{"id" : "5476862", "title" : "Talk to neighborhood tribes","points" : "2", "description" : "Interview other stakeholders and tribal members from different industries, passions and outlooks. It\'s amazing what you\'ll be able to apply to your ow...","link" : "","thumbnail" : ""},{"id" : "6859932", "title" : "Honesty","points" : "2", "description" : "Be someone people can trust, someone people can believe in.","link" : "","thumbnail" : ""},{"id" : "2359018", "title" : "Be a Star Promise","points" : "1", "description" : "Everybody have a need to be respected, to have the respect and admiration of others in their tribes. People need to engage themselves to gain recognit...","link" : "","thumbnail" : ""},{"id" : "2359772", "title" : "Team up with another Tribe","points" : "1", "description" : "Teaming up with some other tribes. This does not necessarily mean in everything but having some common intersecting interests with other tribes..you o...","link" : "","thumbnail" : ""},{"id" : "2359958", "title" : "Give Feedback","points" : "1", "description" : "Both Positive and Negative","link" : "","thumbnail" : ""},{"id" : "2360036", "title" : "Invite. Invite. Invite.","points" : "1", "description" : "Entice more of what you want to see with personal invitations and request, lots of them.","link" : "","thumbnail" : ""},{"id" : "2372287", "title" : "Have a [remarkable] uniform","points" : "1", "description" : "No, I don\'t mean golf shirts with your company logo. At my creative services company (currently staffed completely by women so we might need to modify...","link" : "","thumbnail" : ""},{"id" : "2372354", "title" : "Keep Busy With Your Tribal Cause","points" : "1", "description" : "Tribes that have a worthy cause should always keep busy. Activity draws talents out. Activity binds people of like minds. Activity breeds creativity.","link" : "","thumbnail" : ""},{"id" : "2377204", "title" : "Bring them shiny new things","points" : "1", "description" : "Bring new ideas, trends, colours, concepts from other tribes.  Talk about the new thing in wedding gowns to your business tribe; and the best ways man...","link" : "","thumbnail" : ""},{"id" : "2629383", "title" : "Absorb, Deflect, Scatter - the Heat ","points" : "1", "description" : "Act like sunscreen for your tribe. The leader keeps the harmful rays and heat off the tribe while the tribe does the important work. Keep Mr. No and M...","link" : "","thumbnail" : ""},{"id" : "2863206", "title" : "Don\'t assume everyone wants in","points" : "1", "description" : "Just look for those who resonate with your mission","link" : "","thumbnail" : ""},{"id" : "3847082", "title" : "Purpose, Passion, and Promotion....","points" : "1", "description" : "Promote your tribe every day in every way by demonstrating genuine belief in the tribe and giving your time and energy to everyone you meet.  Do this...","link" : "","thumbnail" : ""},{"id" : "7238422", "title" : "Connect with Strangers","points" : "1", "description" : "Compliment a cleaning person - tell them how beautiful they make the place! They often go unappreciated.","link" : "","thumbnail" : ""},{"id" : "7356682", "title" : "Aggregate tribe information","points" : "1", "description" : "Become the information portal for a tribe and empower them to brag about their thoughts. Get non tribe members to become jealous because they don%u201...","link" : "","thumbnail" : ""},{"id" : "8887742", "title" : "Be available to build a tribe","points" : "1", "description" : "Sometimes we don\'t even make ourselves available for the opportunity to build a tribe at all.  That to me is the first step...and it\'s an internal ste...","link" : "","thumbnail" : ""},{"id" : "9437442", "title" : "Always come together in a circle","points" : "1", "description" : "Throughout generations, no matter what age, it is natural to meet your tribe in a circle, discuss important matters in a circle, have your meals in a...","link" : "","thumbnail" : ""},{"id" : "9997382", "title" : "Tribes Do Make a Difference!","points" : "1", "description" : "Our Tribe started a movement to bring back the american dream.http://www.youtube.com/watch?v=FoYUqojYgMEIt\'s a bumpy road, but it\'s worth it. Pay th...","link" : "","thumbnail" : ""},{"id" : "2358922", "title" : "ask for referrals","points" : "0", "description" : "have a referral program, with benefits for existing members who bring in new members","link" : "","thumbnail" : ""},{"id" : "2359016", "title" : "Give preference to groups","points" : "0", "description" : "Carmine\'s restaurant, for example, only gives reservations to groups of six or more. It means that going to the restaurant is a party, not just dinner...","link" : "","thumbnail" : ""},{"id" : "2359714", "title" : "Surprise Your Tribe with something unexpected","points" : "0", "description" : "","link" : "","thumbnail" : ""},{"id" : "2360286", "title" : "Create (or encourage) Sub-tribes (Communities)","points" : "0", "description" : "Everyone has different skills and interests....provide a place/forum/groups to optimize this uniqueness.","link" : "","thumbnail" : ""},{"id" : "2360368", "title" : "Speak softly - but carry a big stick","points" : "0", "description" : "It is crucial to maintain a high level of discipline and mutual respect within a tribe to stay on target. If done skillfully, acceptance and adherance...","link" : "","thumbnail" : ""},{"id" : "2360955", "title" : "Play Big Outside of the Box","points" : "0", "description" : "Don\'t be afraid of abandoning the &quot;status quo&quot; - tribes that are static die.  Facilitate opportunities for your tribe to grow both collectively and in...","link" : "","thumbnail" : ""},{"id" : "2372550", "title" : "Stimulate Affinity","points" : "0", "description" : "Recognize shared affinities that tribe members have. These may be shared values, beliefs, common interests or goals. Play to them through discussions,...","link" : "","thumbnail" : ""},{"id" : "2381542", "title" : "Use global messaging to announce, inform and engage","points" : "0", "description" : "Send global email messages as promised and with permission! Consistently send weekly digest to announce, inform and engage...NOT to promote, sell or m...","link" : "","thumbnail" : ""},{"id" : "2398130", "title" : "Create Barriers To Entry or Completely Eliminate Them","points" : "0", "description" : "Decide the type of people you want to have in your tribe and either make it easy or hard to join.  Buy a book, enter a contest, intern.  Or make anyon...","link" : "","thumbnail" : ""},{"id" : "2448177", "title" : "Use the tribes\' size and contacts to generate perks","points" : "0", "description" : "The tribe isn\'t there to provide everything for tribe members, but any sizable or influential enough tribe can negotiate deals with businesses or grou...","link" : "","thumbnail" : ""},{"id" : "2589912", "title" : "Be there for them","points" : "0", "description" : "After all, who is the leader in it for?","link" : "","thumbnail" : ""},{"id" : "2629355", "title" : "Never Confuse Effort With Results ","points" : "0", "description" : "A tribe wants to do something - meaning, that counts - and you need to make sure that they get there. No mission = no win  and no win = no satisfactio...","link" : "","thumbnail" : ""},{"id" : "3847092", "title" : "","points" : "0", "description" : "","link" : "","thumbnail" : ""}],
      "display_mode" : "normal"
    }
    );
  
openPlexo = function(options) {
  if (options == undefined) {
    options = {};
  }
  var length;
  var plex = 0;

  if (plexData.length == 1) {
    plex = plexData[0];
  } else if (options.plex_id > 0 ) {
    for (i = 0; i < plexData.length; i++) {
      if (plexData[i].id == options.plex_id) {
        plex = plexData[i];
      }
    }
  }

  if (plex == 0) {
    // No plex specified
    alert("no plex");
    return false;
  }

  if (options.num_results != undefined) {
    if (options.num_results == "All") {
      length = plex.items.length;
    } else if (options.num_results > 0) {
      length = options.num_results;
    }
  } else if (plex.num_results == "All") {
    length = plex.items.length;
  } else if (plex.num_results == "") {
    length = 5;
  } else {
    length = plex.num_results;
  }

  if (length > plex.items.length) {
    length = plex.items.length;
  } else if (length == 0)
  alert(plex.num_results);

  if (options.container != undefined) {
    var el = document.getElementById(options.container);
  } else {
    var el = document.getElementById("plex");
    if (el == undefined) {
      alert("no container");
      return false;
    }
  }

/*
.flickr_plexo-item {

}
.plexo_rank-flickr {

}
.plexo_rank-flickr h4 {
}

.plexo_rank-flickr sup {

}
.points-flickr {
color:#666666;font-family:verdana,Arial,Helvetica,sans-serif;font-size:9px;font-size-adjust:none;font-stretch:normal;font-style:italic;font-variant:normal;font-weight:normal;line-height:normal;padding:0pt;
}

  */

  var out = "";
  if (options.size != "sidebar") {
    // Insert header for the regular sized widget.
    out += '\n<div style="width: 400px; border: 1px solid rgb(178, 178, 178); padding: 8px;">';
  	out += '\n<h2 style="border-bottom: 1px solid rgb(178, 178, 178); margin: 0pt 0pt 2px; padding: 6px 0pt 5px; font-family: Trebuchet MS,Arial,Helvetica,sans-serif; font-style: normal; font-variant: normal; font-weight: normal; font-size: 22px; line-height: 24px; font-size-adjust: none; font-stretch: normal; letter-spacing: 0pt; color: rgb(0, 0, 0);">' + plex.title + '</h2>';
  	out += '\n<h3 style="margin: 0pt; padding: 0pt; font-family: Trebuchet MS,Arial,Helvetica,sans-serif; font-style: normal; font-variant: normal; font-weight: normal; font-size: 15px; line-height: normal; font-size-adjust: none; font-stretch: normal; color: rgb(102, 102, 102);">' + plex.subtitle + '</h3>';
  	out += '\n<p style="margin: 14px 0pt; font-family: Verdana,Arial,Helvetica,sans-serif; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal;">' + plex.description + '</p>';
  } else {
    //Insert header for sidebar widget.
    out += '<div style="width: 200px; border: 1px solid rgb(178, 178, 178); padding: 8px;">';
    out += '\n<h2 style="border-bottom: 1px solid rgb(178, 178, 178); margin: 0pt 0pt 2px; padding: 0pt 0pt 5px; font-family: Trebuchet MS,Arial,Helvetica,sans-serif; font-style: normal; font-variant: normal; font-weight: normal; font-size: 18px; line-height: 20px; font-size-adjust: none; font-stretch: normal; letter-spacing: 0pt; color: rgb(0, 0, 0);">' + plex.title + '</h2>';
    out += '\n<h3 style="margin: 0pt; padding: 0pt; font-family: Trebuchet MS,Arial,Helvetica,sans-serif; font-style: normal; font-variant: normal; font-weight: normal; font-size: 13px; line-height: 15px; font-size-adjust: none; font-stretch: normal; color: rgb(102, 102, 102);">' + plex.subtitle + '</h3>';
    out += '\n<p style="margin: 14px 0pt; font-family: Verdana,Arial,Helvetica,sans-serif; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal;">' + plex.description + '</p>';
  }

  if (plex.type == "Flickr") {
    for (i = 0; i < length; i++) {
      var points;
      var item = plex.items[i];
      if (item.points == 1)
        points = item.points + " point";
      else
        points = item.points + " points";

      out += '\n<div id="plexItem' + item.id + '" style="float:left;height:125px;margin:0pt 4px 0pt 0pt;overflow:hidden;padding:0pt;text-align:center;width:90px;">';
        out += '\n<a target="_new" href="' + item.link + '">';
          out += '\n<img src="' + item.thumbnail + '" alt="' + item.title + '" border="0" />';
        out += '\n</a>';
        out += '\n<div id="plexItem' + item.id + '" class="plexo_item-flickr">';
          out += '\n<div style="margin:0pt auto;position:relative;text-align:center;width:75px;">';
            out += '\n<h4 style="background:transparent url(http://squidcdn.s3.amazonaws.com/images/images/bg_plexo-rank.gif) no-repeat scroll 0%;color:#FFFFFF;font-family:Trebuchet MS,Arial,Helvetica,sans-serif;font-size:16px;font-size-adjust:none;font-stretch:normal;font-style:normal;font-variant:normal;font-weight:bold;line-height:22px;margin:0pt 0pt 0pt 5px;padding:0pt 0pt 5px;text-align:center;width:45px;"><sup style="color:#FFFFFF;font-family:Trebuchet MS,Verdana,Arial,Helvetica,sans-serif;font-size:11px;font-size-adjust:none;font-stretch:normal;font-style:normal;font-variant:normal;font-weight:normal;left:0pt;line-height:11px;padding:0pt;position:relative;top:4px;">#</sup>' + (i+1) + '</h4>';
      		out += '\n<div style="background: transparent url(http://squidcdn.s3.amazonaws.com/images/images/icon_vote-up.gif) no-repeat scroll 0%; overflow: hidden; position: absolute; top: 0pt; right: 0pt; width: 16px; height: 9px; text-indent: -999em; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" onmouseover="this.style.backgroundPosition=\'-16px 0\';this.style.cursor=\'pointer\'" onmouseout="this.style.backgroundPosition=\'0 0\';this.style.cursor=\'\'" onclick="location.href=\'' + plex.link + '?plexVote=1&lmi=' + plex.lmi + '&item_id=' + item.id + '&direction=up\';"><a href="#">Vote Up</a></div>';
          out += '\n<div style="background: transparent url(http://squidcdn.s3.amazonaws.com/images/images/icon_vote-down.gif) no-repeat scroll 0%; overflow: hidden; position: absolute; top: 12px; right: 0pt; width: 16px; height: 9px; text-indent: -999em; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" onmouseover="this.style.backgroundPosition=\'-16px 0\';this.style.cursor=\'pointer\'" onmouseout="this.style.backgroundPosition=\'0 0\';this.style.cursor=\'\'" onclick="location.href=\'' + plex.link + '?plexVote=1&lmi=' + plex.lmi + '&item_id=' + item.id + '&direction=down\';"><a href="#">Vote Down</a></div>';

                        out += '\n<span id="pointsDisplay' + item.id + '" style="padding: 0pt 0pt 0pt 10px; font-family: verdana,Arial,Helvetica,sans-serif; font-style: italic; font-variant: normal; font-weight: normal; font-size: 9px; line-height: normal; font-size-adjust: none; font-stretch: normal; color: rgb(102, 102, 102);">' + points + '</span>';
          out += '\n</div>';
        out += '\n</div>';
      out += '\n</div>';
    }

    out += '\n<div style="clear: both; visibility: hidden;"></div>';
  } else if (plex.type == "YouTube") {
    for (i = 0; i < length; i++) {
      var points;
      var item = plex.items[i];
      if (item.points == 1)
        points = item.points + " point";
      else
        points = item.points + " points";

      if (plex.display_mode == "full" && options.size != "sidebar") {
        var youtube_id = item.link.split("=")[1];

  out += '\n<div class="youtube_item-full">';
    out += '\n<div class="plexo_rank" style="float:left;margin:0pt 10px 0pt 0pt;position:relative;text-align:center;width:65px;">';
      out += '\n<h4 style="background:transparent url(http://squidcdn.s3.amazonaws.com/images/images/bg_plexo-rank.gif) no-repeat scroll 0%;color:#FFFFFF;font-family:Trebuchet MS,Arial,Helvetica,sans-serif;font-size:16px;font-size-adjust:none;font-stretch:normal;font-style:normal;font-variant:normal;font-weight:bold;line-height:22px;margin:0pt 20px 0pt 0pt;padding:0pt 0pt 6px;text-align:center;width:45px;"><sup style="color:#FFFFFF;font-family:Trebuchet MS,Verdana,Arial,Helvetica,sans-serif;font-size:11px;font-size-adjust:none;font-stretch:normal;font-style:normal;font-variant:normal;font-weight:normal;left:0pt;line-height:11px;padding:0pt;position:relative;top:4px;">#</sup>' + (i+1) + '</h4>';
  		out += '\n<div style="background: transparent url(http://squidcdn.s3.amazonaws.com/images/icon_vote-up.gif) no-repeat scroll 0%; overflow: hidden; position: absolute; top: 2pt; left: 55px; width: 16px; height: 9px; text-indent: -999em; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" onmouseover="this.style.backgroundPosition=\'-16px 0\';this.style.cursor=\'pointer\'" onmouseout="this.style.backgroundPosition=\'0 0\';this.style.cursor=\'\'" onclick="location.href=\'' + plex.link + '?plexVote=1&lmi=' + plex.lmi + '&item_id=' + item.id + '&direction=up\';"><a href="#">Vote Up</a></div>';
      out += '\n<div style="background: transparent url(http://squidcdn.s3.amazonaws.com/images/icon_vote-down.gif) no-repeat scroll 0%; overflow: hidden; position: absolute; top: 14px; left: 55px; width: 16px; height: 9px; text-indent: -999em; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" onmouseover="this.style.backgroundPosition=\'-16px 0\';this.style.cursor=\'pointer\'" onmouseout="this.style.backgroundPosition=\'0 0\';this.style.cursor=\'\'" onclick="location.href=\'' + plex.link + '?plexVote=1&lmi=' + plex.lmi + '&item_id=' + item.id + '&direction=down\';"><a href="#">Vote Down</a></div>';
    out += '\n</div>';
    out += '\n<div class="plexo_video" style="margin-left:75px;width:325px;">';
      out += '\n<h3 style="font-family:Trebuchet MS,Arial,Helvetica,sans-serif;">' + item.title + '  <span class="points" style="color:#666666;font-family:verdana,Arial,Helvetica,sans-serif;font-size:9px;font-size-adjust:none;font-stretch:normal;font-style:italic;font-variant:normal;font-weight:normal;line-height:normal;padding:0pt 0pt 0pt 10px;">' + points + '</span></h3>';
      out += '\n<object data="http://www.youtube.com/v/' + youtube_id + '" style="width: 300px; height: 247px;" type="application/x-shockwave-flash">';
        out += '\n<param value="http://www.youtube.com/v/' + youtube_id + '" name="movie"/>';
      out += '\n</object>';
    out += '\n</div>';
  out += '\n</div>';

  /*
        out += '\n<div id="plexItem' + item.id + '" style="margin: 0pt; padding: 5px 0pt;">';
            out += '\n<div style="margin:0pt auto;position:relative;text-align:left;">';
              out += '\n<h4 style="display: inline; background:transparent url(http://img.squidoo.com/bg_plexo-rank.gif) no-repeat scroll 0%;color:#FFFFFF;font-family:Trebuchet MS,Arial,Helvetica,sans-serif;font-size:16px;font-size-adjust:none;font-stretch:normal;font-style:normal;font-variant:normal;font-weight:bold;line-height:22px;margin:0pt 0pt 0pt 5px;padding:0pt 0pt 5px;text-align:center;width:45px;"><sup style="color:#FFFFFF;font-family:Trebuchet MS,Verdana,Arial,Helvetica,sans-serif;font-size:11px;font-size-adjust:none;font-stretch:normal;font-style:normal;font-variant:normal;font-weight:normal;left:0pt;line-height:11px;padding:0pt;position:relative;top:4px;">#</sup>' + (i+1) + '</h4>';
        		out += '\n<div style="background: transparent url(http://squidcdn.s3.amazonaws.com/images/icon_vote-up.gif) no-repeat scroll 0%; overflow: hidden; position: absolute; top: 2pt; left: 55px; width: 16px; height: 9px; text-indent: -999em; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" onmouseover="this.style.backgroundPosition=\'-16px 0\';this.style.cursor=\'pointer\'" onmouseout="this.style.backgroundPosition=\'0 0\';this.style.cursor=\'\'" onclick="location.href=\'' + plex.link + '?plexVote=1&lmi=' + plex.lmi + '&item_id=' + item.id + '&direction=up\';"><a href="#">Vote Up</a></div>';
            out += '\n<div style="background: transparent url(http://squidcdn.s3.amazonaws.com/images/icon_vote-down.gif) no-repeat scroll 0%; overflow: hidden; position: absolute; top: 14px; left: 55px; width: 16px; height: 9px; text-indent: -999em; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" onmouseover="this.style.backgroundPosition=\'-16px 0\';this.style.cursor=\'pointer\'" onmouseout="this.style.backgroundPosition=\'0 0\';this.style.cursor=\'\'" onclick="location.href=\'' + plex.link + '?plexVote=1&lmi=' + plex.lmi + '&item_id=' + item.id + '&direction=down\';"><a href="#">Vote Down</a></div>';
                out += '\n<span style="margin-left: 80px;">' + item.title + '</span>';
            out += '\n<span id="pointsDisplay' + item.id + '" style="padding: 0pt 0pt 0pt 10px; font-family: verdana,Arial,Helvetica,sans-serif; font-style: italic; font-variant: normal; font-weight: normal; font-size: 9px; line-height: normal; font-size-adjust: none; font-stretch: normal; color: rgb(102, 102, 102);">' + points + '</span>';
            out += '\n</div>';
          out += '\n</div>';
        //out += '\n</div>';
            */
        out += '\n<div style="clear: both; visibility: hidden;"></div>';

      } else {
        out += '\n<div id="plexItem' + item.id + '" style="float:left;height:125px;margin:0pt 4px 0pt 0pt;overflow:hidden;padding:0pt;text-align:center;width:90px;">';
          out += '\n<a target="_new" href="' + item.link + '">';
            out += '\n<img width="75" src="' + item.thumbnail + '" alt="' + item.title + '" border="0" />';
          out += '\n</a>';
          out += '\n<div id="plexItem' + item.id + '" class="plexo_item-youtube">';
            out += '\n<div style="margin:0pt auto;position:relative;text-align:center;width:75px;">';
              out += '\n<h4 style="background:transparent url(http://squidcdn.s3.amazonaws.com/images/images/bg_plexo-rank.gif) no-repeat scroll 0%;color:#FFFFFF;font-family:Trebuchet MS,Arial,Helvetica,sans-serif;font-size:16px;font-size-adjust:none;font-stretch:normal;font-style:normal;font-variant:normal;font-weight:bold;line-height:22px;margin:0pt 0pt 0pt 5px;padding:0pt 0pt 5px;text-align:center;width:45px;"><sup style="color:#FFFFFF;font-family:Trebuchet MS,Verdana,Arial,Helvetica,sans-serif;font-size:11px;font-size-adjust:none;font-stretch:normal;font-style:normal;font-variant:normal;font-weight:normal;left:0pt;line-height:11px;padding:0pt;position:relative;top:4px;">#</sup>' + (i+1) + '</h4>';
        		out += '\n<div style="background: transparent url(http://squidcdn.s3.amazonaws.com/images/images/icon_vote-up.gif) no-repeat scroll 0%; overflow: hidden; position: absolute; top: 0pt; right: 0pt; width: 16px; height: 9px; text-indent: -999em; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" onmouseover="this.style.backgroundPosition=\'-16px 0\';this.style.cursor=\'pointer\'" onmouseout="this.style.backgroundPosition=\'0 0\';this.style.cursor=\'\'" onclick="location.href=\'' + plex.link + '?plexVote=1&lmi=' + plex.lmi + '&item_id=' + item.id + '&direction=up\';"><a href="#">Vote Up</a></div>';
            out += '\n<div style="background: transparent url(http://squidcdn.s3.amazonaws.com/images/images/icon_vote-down.gif) no-repeat scroll 0%; overflow: hidden; position: absolute; top: 12px; right: 0pt; width: 16px; height: 9px; text-indent: -999em; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" onmouseover="this.style.backgroundPosition=\'-16px 0\';this.style.cursor=\'pointer\'" onmouseout="this.style.backgroundPosition=\'0 0\';this.style.cursor=\'\'" onclick="location.href=\'' + plex.link + '?plexVote=1&lmi=' + plex.lmi + '&item_id=' + item.id + '&direction=down\';"><a href="#">Vote Down</a></div>';

            out += '\n<span id="pointsDisplay' + item.id + '" style="padding: 0pt 0pt 0pt 10px; font-family: verdana,Arial,Helvetica,sans-serif; font-style: italic; font-variant: normal; font-weight: normal; font-size: 9px; line-height: normal; font-size-adjust: none; font-stretch: normal; color: rgb(102, 102, 102);">' + points + '</span>';
            out += '\n</div>';
          out += '\n</div>';
        out += '\n</div>';
      }
    }

    out += '\n<div style="clear: both; visibility: hidden;"></div>';
  } else {
    for (i = 0; i < length; i++) {
      var points;
      var item = plex.items[i];

      if (item.points == 1)
        points = item.points + " point";
      else
        points = item.points + " points";

      out += '\n<div id="plexItem' + item.id + '" style="margin: 0pt; padding: 5px 0pt;">';
      	out += '\n<div style="margin: 0pt; float: left; text-align: center; position: relative; width: 65px;">';
      		out += '\n<h4 style="color: white;margin: 0pt; padding: 2px 0pt 4px; background: transparent url(http://squidcdn.s3.amazonaws.com/images/bg_plexo-rank.gif) no-repeat scroll 0%; position: absolute; top: 0pt; left: 0pt; font-family: Trebuchet MS,Arial,Helvetica,sans-serif; font-style: normal; font-variant: normal; font-weight: bold; font-size: 16px; line-height: 16px; font-size-adjust: none; font-stretch: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 45px;">#' + (i+1) + '</h4>';
      		out += '\n<div style="background: transparent url(http://squidcdn.s3.amazonaws.com/images/icon_vote-up.gif) no-repeat scroll 0%; overflow: hidden; position: absolute; top: 0pt; right: 0pt; width: 16px; height: 9px; text-indent: -999em; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" onmouseover="this.style.backgroundPosition=\'-16px 0\';this.style.cursor=\'pointer\'" onmouseout="this.style.backgroundPosition=\'0 0\';this.style.cursor=\'\'" onclick="location.href=\'' + plex.link + '?plexVote=1&lmi=' + plex.lmi + '&item_id=' + item.id + '&direction=up\';"><a href="#">Vote Up</a></div>';
          out += '\n<div style="background: transparent url(http://squidcdn.s3.amazonaws.com/images/icon_vote-down.gif) no-repeat scroll 0%; overflow: hidden; position: absolute; top: 12px; right: 0pt; width: 16px; height: 9px; text-indent: -999em; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" onmouseover="this.style.backgroundPosition=\'-16px 0\';this.style.cursor=\'pointer\'" onmouseout="this.style.backgroundPosition=\'0 0\';this.style.cursor=\'\'" onclick="location.href=\'' + plex.link + '?plexVote=1&lmi=' + plex.lmi + '&item_id=' + item.id + '&direction=down\';"><a href="#">Vote Down</a></div>';
      	out += '\n</div>';
        out += '\n<div id="plexo_item' + item.id + '" style="margin-left: 70px; font-family: Verdana,Arial,Helvetica,sans-serif; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; font-size-adjust: none; font-stretch: normal; width: auto;">';
          if (options.size != "sidebar" && item.thumbnail != "" && (plex.thumbnails != "no" || options.thumbnails == "yes") && options.thumbnails != "no") {
            if (item.link != "")
              out += '\n<a target="_new" href="' + item.link + '">';
            out += '\n<img src="' + item.thumbnail + '" alt="' + item.title + '" title="' + item.title + '" border="0" style="max-width: 50px; float:left; margin: 0 8px 0 0;" />';
            if (item.link != "")
              out += '\n</a>';
          }
          out += '\n<h4 style="margin: 0pt; padding: 0pt; font-size: 12px;">';
          if (item.link != "")
            out += '\n<a target="_new" href="' + item.link + '" style="color: rgb(204, 102, 51); text-decoration: none;">';
          out += item.title;
          if (item.link != "")
            out += '\n</a>';
          out += '</h4>';
          if (options.size != "sidebar") {
            out += '\n<p style="margin: 0pt; padding: 0pt;">' + item.description + '<span id="pointsDisplay' + item.id + '" style="padding: 0pt 0pt 0pt 10px; font-family: verdana,Arial,Helvetica,sans-serif; font-style: italic; font-variant: normal; font-weight: normal; font-size: 9px; line-height: normal; font-size-adjust: none; font-stretch: normal; color: rgb(102, 102, 102);">' + points + '</span></p>';
          }

        out += '\n</div>';
        out += '\n<div style="clear: both; visibility: hidden;"></div>';
      out += '\n</div>';
    }
  }

  if (options.size != "sidebar") {
    // Insert footer for the regular sized widget.
    if (plex.items.length == length)
      out += '<div><a href="' + plex.link + '" style="color: rgb(0, 102, 153); font-weight: bold">See the original lens</a></div>\n<div class="break"></div>\n';
    else
      out += '<div><a href="' + plex.link + '" style="color: rgb(0, 102, 153); font-weight: bold">See all ' + plex.items.length + ' and vote</a></div>\n<div class="break"></div>\n';

    out += '\n<div>';
    out += '\n<div style="margin: 12px 0pt 0pt; float: left; font-family: Verdana,Arial,Helvetica,sans-serif; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10px; line-height: normal; font-size-adjust: none; font-stretch: normal;">created by <a href="' + plex.link + '" style="color: rgb(0, 102, 153);" target="_blank">' + plex.lensmaster + '</a></div>';
    out += '\n<div style="float: right;"><a href="http://www.squidoo.com" target="_blank"><img src="http://squidcdn.s3.amazonaws.com/images/poweredbysquidoo.gif" alt="powered by Squidoo" border="0" height="35" width="105"></a></div>';
    out += '\n<div style="clear: both; visibility: hidden;"></div>';

    out += '\n</div>';
    out += '\n</div>';
  } else {
    //Insert footer for sidebar widget.
    if (plex.items.length == length)
      out += '<div><a href="' + plex.link + '" style="color: rgb(0, 102, 153); font-weight: bold">See the original lens</a></div>\n<div class="break"></div>\n';
    else
      out += '<div><a href="' + plex.link + '" style="color: rgb(0, 102, 153); font-weight: bold">See all ' + plex.items.length + ' and vote</a></div>\n<div class="break"></div>\n';

    out += '\n<div style="margin: 12px 0pt 0pt;">';
    out += '\n<div style="float: left; font-family: Verdana,Arial,Helvetica,sans-serif; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10px; line-height: normal; font-size-adjust: none; font-stretch: normal;">created by<br>';
    out += '\n<a href="' + plex.link + '" style="color: rgb(0, 102, 153);" target="_blank">' + plex.lensmaster + '</a></div>';
    out += '\n<div style="float: right;"><a href="http://www.squidoo.com" target="_blank"><img src="http://squidcdn.s3.amazonaws.com/images/poweredbysquidoo_small.gif" alt="powered by Squidoo" border="0" height="25" width="75"></a></div>';
    out += '\n<div style="clear: both; visibility: hidden;"></div>';
    out += '\n</div>';
    out += '</div>';
  }



  /*
    } else {

    }
  } else {
    if (options.size != "sidebar") {
      var out = "";
      out += '\n<div style="width: 400px; border: 1px solid rgb(178, 178, 178); padding: 8px;">';
      	out += '\n<h2 style="border-bottom: 1px solid rgb(178, 178, 178); margin: 0pt 0pt 2px; padding: 6px 0pt 5px; font-family: Trebuchet MS,Arial,Helvetica,sans-serif; font-style: normal; font-variant: normal; font-weight: normal; font-size: 22px; line-height: 24px; font-size-adjust: none; font-stretch: normal; letter-spacing: 0pt; color: rgb(0, 0, 0);">' + plex.title + '</h2>';
      	out += '\n<h3 style="margin: 0pt; padding: 0pt; font-family: Trebuchet MS,Arial,Helvetica,sans-serif; font-style: normal; font-variant: normal; font-weight: normal; font-size: 15px; line-height: normal; font-size-adjust: none; font-stretch: normal; color: rgb(102, 102, 102);">' + plex.subtitle + '</h3>';
      	out += '\n<p style="margin: 14px 0pt; font-family: Verdana,Arial,Helvetica,sans-serif; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal;">' + plex.description + '</p>';





  /*
  	<div style="margin: 6px 0pt; text-align: center; font-family: Verdana,Arial,Helvetica,sans-serif; font-style: normal; font-variant: normal; font-weight: bold; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal;"><a href="#" style="color: rgb(0, 102, 153);">Vote for more!</a></div>

    } else {
      var out = "";


        for (i = 0; i < length; i++) {
          var points, item = plex.items[i];
          if (item.points == 1)
            points = item.points + " point";
          else
            points = item.points + " points";

          out += '\n<div id="plexItem' + item.id + '" style="margin: 0pt; padding: 5px 0pt;">';
            out += '\n<div style="margin: 0pt; float: left; text-align: center; position: relative; width: 65px;">';
              out += '\n<h4 style="color: white;margin: 0pt; padding: 2px 0pt 4px; background: transparent url(http://squidcdn.s3.amazonaws.com/images/bg_plexo-rank.gif) no-repeat scroll 0%; position: absolute; top: 0pt; left: 0pt; font-family: Trebuchet MS,Arial,Helvetica,sans-serif; font-style: normal; font-variant: normal; font-weight: bold; font-size: 16px; line-height: 16px; font-size-adjust: none; font-stretch: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 45px;">#' + (i+1) + '</h4>';
              out += '\n<div style="background: transparent url(http://squidcdn.s3.amazonaws.com/images/icon_vote-up.gif) no-repeat scroll 0%; overflow: hidden; position: absolute; top: 0pt; right: 0pt; width: 16px; height: 9px; text-indent: -999em; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" onmouseover="this.style.backgroundPosition=\'-16px 0\';this.style.cursor=\'pointer\'" onmouseout="this.style.backgroundPosition=\'0 0\';this.style.cursor=\'\'" onclick="location.href=\'' + plex.link + '?plexVote=1&lmi=' + plex.lmi + '&item_id=' + item.id + '&direction=up\';"><a href="#">Vote Up</a></div>';
              out += '\n<div style="background: transparent url(http://squidcdn.s3.amazonaws.com/images/icon_vote-down.gif) no-repeat scroll 0%; overflow: hidden; position: absolute; top: 12px; right: 0pt; width: 16px; height: 9px; text-indent: -999em; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" onmouseover="this.style.backgroundPosition=\'-16px 0\';this.style.cursor=\'pointer\'" onmouseout="this.style.backgroundPosition=\'0 0\';this.style.cursor=\'\'" onclick="location.href=\'' + plex.link + '?plexVote=1&lmi=' + plex.lmi + '&item_id=' + item.id + '&direction=down\';"><a href="#">Vote Down</a></div>';
            out += '\n</div>';
            out += '\n<div id="plexo_item' + item.id + '" style="margin-left: 70px; font-family: Verdana,Arial,Helvetica,sans-serif; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; font-size-adjust: none; font-stretch: normal; width: auto;">';
              out += '\n<h4 style="margin: 0pt; padding: 0pt; font-size: 12px;">';
              if (item.link != "")
                out += '\n<a target="_new" href="' + item.link + '" style="color: rgb(204, 102, 51); text-decoration: none;">';
              out += item.title;
              if (item.link != "")
                out += '\n</a>';
              out += '</h4>';
              out += '\n<p style="margin: 0pt; padding: 0pt;"><span id="pointsDisplay87" style="padding: 0pt 0pt 0pt 10px; font-family: verdana,Arial,Helvetica,sans-serif; font-style: italic; font-variant: normal; font-weight: normal; font-size: 9px; line-height: normal; font-size-adjust: none; font-stretch: normal; color: rgb(102, 102, 102);">' + points + '</span></p>';
            out += '\n</div>';
          out += '\n</div>';

          //out += '\n<div style="clear: both; visibility: hidden;">&nbsp;</div>';
        }


    }
  }
*/
  el.innerHTML = out;

  return true;
        }