sites=[{n:"Is It April Fool's Day?",s:"http://www.isitaprilfools.com/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20080207",l:"14",p:true},
{n:"Instant Rimshot",s:"http://www.instantrimshot.com/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20080206",l:"14",p:true},
{n:"Sometimes Red, Sometimes Blue",s:"http://www.sometimesredsometimesblue.com/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20070915",l:"25",p:true},
{n:"GenderAnalyzer",s:"http://www.genderanalyzer.com/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20080808",l:"14",p:true},
{n:"Is Lost a Repeat?",s:"http://www.islostarepeat.com/",f:"http://www.islostarepeat.com/favicon.ico",d:"20060313",l:"13",p:true},
{n:"What Color Is The Empire State Building",s:"http://www.whatcoloristheempirestatebuilding.com/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20080207",l:"33",p:true},
{n:"Khaaan",s:"http://www.khaaan.com/",f:"http://www.khaaan.com/favicon.ico",d:"20031209",l:"06",p:true},
{n:"Is Twitter Down?",s:"http://www.istwitterdown.com/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20071115",l:"13",p:true},
{n:"Did I Visit This Website?",s:"http://www.didivisitthiswebsite.com/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20080218",l:"20",p:true},
{n:"Zombo",s:"http://www.zombo.com/",f:"http://www.zombo.com/favicon.ico",d:"19991010",l:"05",p:true},
{n:"YTMND - You're the man now dog",s:"http://www.yourethemannowdog.com/",f:"http://www.yourethemannowdog.com/favicon.ico",d:"20010706",l:"17",p:true},
{n:"Purple",s:"http://www.purple.com/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20030815",l:"06",p:true},
{n:"Yet Another Useless Web Site",s:"http://www.yetanotheruselesswebsite.com/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20070921",l:"24",p:true},
{n:"You Sneezed!",s:"http://www.yousneezed.com/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20080203",l:"10",p:true},
{n:"Barack Obama Is Your New Bicycle",s:"http://www.barackobamaisyournewbicycle.com/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20080214",l:"27",p:true},
{n:"Are you tired?",s:"http://www.tired.com/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20021012",l:"05",p:true},
{n:"Am I Awesome?",s:"http://www.amiawesome.com/",f:"http://www.amiawesome.com/favicon.ico",d:"20080124",l:"10",p:true},
{n:"All Glory To The Hypnotoad!",s:"http://www.r33b.net/",f:"http://www.r33b.net/favicon.ico",d:"20030212",l:"04",p:true},
{n:"Fuck the sound",s:"http://www.fuckthesound.com/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20040311",l:"12",p:true},
{n:"Just Fucking Google It",s:"http://www.fuckinggoogleit.com/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20040524",l:"15",p:true},
{n:"Do websites need to look exactly the same in every browser?",s:"http://www.dowebsitesneedtolookexactlythesameineverybrowser.com/",f:"http://www.itwillneverbethesame.com/favicon.ico",d:"20071207",l:"48",p:true},
{n:"It's not Lupus, it's never Lupus",s:"http://www.itsnotlup.us/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20070615",l:"09",p:true},
{n:"We need more lemon pledge dot com/",s:"http://www.weneedmorelemonpledge.com/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20071026",l:"21",p:true},
{n:"Illegal Tender Terms of Service",s:"http://www.moneylicense.com/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20050302",l:"12",p:true},
{n:"These are the rules.",s:"http://www.internetrules.info/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20050107",l:"13",p:true},
{n:"No time for love dr. Jones.com",s:"http://www.notimeforlovedrjones.com/",f:"http://www.notimeforlovedrjones.com/favicon.ico",d:"20040331",l:"20",p:true},
{n:"Let's Turn This Fucking Website Yellow",s:"http://www.letsturnthisfuckingwebsiteyellow.com/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20070915",l:"21",p:true},
{n:"Iiiiiiii - Ballad Of The Horse With A Spot On His Forehead",s:"http://www.iiiiiiii.com/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20050217",l:"08",p:true},
{n:"It will never be the same",s:"http://www.itwillneverbethesame.com/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20041125",l:"20",p:true},
{n:"Thank you Andy Warhol",s:"http://www.thankyouandywarhol.com/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20070420",l:"18",p:true},
{n:"The Last Page of the Internet",s:"http://www.internetlastpage.com/",f:"http://www.internetlastpage.com/favicon.ico",d:"20000824",l:"16",p:true},
{n:"Thanks Ants... Thants",s:"http://www.thanksants.com/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20080215",l:"10",p:true},
{n:"Raquo &raquo;",s:"http://www.raquo.net/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20050128",l:"05",p:true},
{n:"Is The Apple Store Down",s:"http://www.isapplestoredown.com/",f:"http://www.isapplestoredown.com/favicon.ico",d:"20070730",l:"16",p:true},
{n:"What is my ip?",s:"http://www.whatismyip.org/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20021118",l:"10",p:true},
{n:"Michelle Obama is your new bicycle",s:"http://www.michelleobamaisyournewbicycle.com/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20080217",l:"29",p:true},
{n:"The Daily Nice",s:"http://www.thedailynice.com/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20040818",l:"12",p:true},
{n:"Defiant dog",s:"http://www.defiantdog.com/",f:"http://www.defiantdog.com/favicon.ico",d:"20071204",l:"10",p:true},
{n:"The First Page of the Internet",s:"http://www.internetfirstpage.com/",f:"http://www.internetfirstpage.com/favicon.ico",d:"20000824",l:"17",p:true},
{n:"Is it a leap year?",s:"http://www.isitaleapyear.com/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20080105",l:"13",p:true},
{n:"Lalalaa",s:"http://www.lalalaa.com/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20060128",l:"07",p:true},
{n:"Cannondale Is Your New Bicycle",s:"http://www.cannondaleisyournewbicycle.com/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20080219",l:"26",p:true},
{n:"Just Fucking Do It",s:"http://www.justfuckingdoit.com/",f:"http://www.justfuckingdoit.com/favicon.ico",d:"20080217",l:"15",p:true},
{n:"Nom nom nom icon",s:"http://www.nomnomnomicon.com/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20080212",l:"13",p:true},
{n:"Are you really sad?",s:"http://www.areyoureallysad.com/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20080215",l:"15",p:true},
{n:"Hamster Dance",s:"http://www.webhamster.com/",f:"http://www.singleservingsite.info/images/deficon.png",d:"19990203",l:"10",p:true},
{n:"Does the mail run today?",s:"http://www.doesthemailruntoday.com/",f:"http://www.doesthemailruntoday.com/favicon.ico",d:"20080218",l:"19",p:true},
{n:"F**ing Spinny Rainbow Ball",s:"http://www.spinningbeachballofdeath.com/",f:"http://www.spinningbeachballofdeath.com/favicon.ico",d:"20070321",l:"24",p:true},
{n:"1.21 Jiggawatts",s:"http://www.1.21jiggawatts.com/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20070126",l:"14",p:true},
{n:"The '... Is Your New Bicycle' Meme is through being cool",s:"http://www.isyournewbicycle.com/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20080219",l:"16",p:true},
{n:"Vecka",s:"http://www.vecka.nu/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20011007",l:"05",p:true},
{n:"Club internet currently closed",s:"http://www.clubinternet.org/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20080208",l:"12",p:true},
{n:"P a r e i d o l i a",s:"http://www.pareidolia.com/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20001207",l:"10",p:true},
{n:"The Best Dinosaur",s:"http://www.thebestdinosaur.com/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20070815",l:"15",p:true},
{n:"Elizabeth Monoian: I Want to Feel",s:"http://www.iwanttofeel.com/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20080311",l:"11",p:true},
{n:"Bold and Italics.com",s:"http://www.boldanditalics.com/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20070528",l:"14",p:true},
{n:"Blownupballoon.com constant dullaart",s:"http://www.blownupballoon.com/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20080424",l:"14",p:true},
{n:"I Wanna Marry.com",s:"http://www.iwannamarry.com/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20050818",l:"11",p:true},
{n:"Is Obama President?",s:"http://www.isobamapresident.com/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20080509",l:"16",p:true},
{n:"What's the Weather?",s:"http://www.whatstheweather.net/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20080510",l:"15",p:true},
{n:"Don't Stand Next to the Sun",s:"http://www.dontstandnexttothesun.org/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20080507",l:"21",p:true},
{n:"Heat Of The Moment - Asia",s:"http://www.heatofthemoment.asia/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20080525",l:"15",p:true},
{n:"This Peanut Looks Like A Duck",s:"http://www.thispeanutlookslikeaduck.com/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20071211",l:"24",p:true},
{n:"Am I on MySpace.com?",s:"http://www.amionmyspace.com/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20071122",l:"12",p:true},
{n:"The internet says no",s:"http://www.thedisagreeinginternet.com/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20080822",l:"22",p:true},
{n:"The Shocking Truth",s:"http://www.shockingtruth.info/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20081220",l:"13",p:true},
{n:"Is The Dow Up?",s:"http://www.isthedowup.com/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20081009",l:"10",p:true},
{n:"Is The U.S. Debt Ceiling Raised Yet?",s:"http://www.istheusdebtceilingraisedyet.com/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20120110",l:"27",p:true},
{n:"Is This Your Paper On Single Serving Sites?",s:"http://www.isthisyourpaperonsingleservingsites.com/",f:"http://www.isthisyourpaperonsingleservingsites.com/favicon.ico",d:"20081206",l:"35",p:true},
{n:"Another day, another word",s:"http://www.anotherdayanotherword.com/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20050905",l:"21",p:true},
{n:"ClassNamer",s:"http://www.classnamer.com/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20080314",l:"10",p:true},
{n:"The internet confuses me",s:"http://www.confuses.me/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20080618",l:"08",p:true},
{n:"D-e-f-i-n-i-t-e-l-y",s:"http://www.d-e-f-i-n-i-t-e-l-y.com/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20070215",l:"20",p:true},
{n:"Down for everyone or just me?",s:"http://www.downforeveryoneorjustme.com/",f:"http://www.downforeveryoneorjustme.com/favicon.ico",d:"20080313",l:"23",p:true},
{n:"Flipping typical",s:"http://www.flippingtypical.com/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20081117",l:"15",p:true},
{n:"Has the Large Hadron Collider destroyed the world yet?",s:"http://www.hasthelargehadroncolliderdestroyedtheworldyet.com/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20080908",l:"45",p:true},
{n:"Has the Large Hadron Collider destroyed the earth yet?",s:"http://www.hasthelhcdestroyedtheearth.com/",f:"http://www.hasthelhcdestroyedtheearth.com/favicon.ico",d:"20080909",l:"26",p:true},
{n:"How to bake a potato",s:"http://www.howtobakeapotato.com/",f:"http://www.howtobakeapotato.com/favicon.ico",d:"20050225",l:"16",p:true},
{n:"Is California On Fire?",s:"http://www.iscaliforniaonfire.com/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20080624",l:"18",p:true},
{n:"Is HTML5 ready yet?",s:"http://www.ishtml5readyyet.com/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20080911",l:"15",p:true},
{n:"Is IsTwitterDown.com Down?",s:"http://www.isistwitterdowndown.com/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20080520",l:"19",p:true},
{n:"Kvetch! Let it out, baby.",s:"http://www.kvetch.com/",f:"http://www.kvetch.com/favicon.ico",d:"19960605",l:"06",p:true},
{n:"Laquo &laquo;",s:"http://www.laquo.net/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20070925",l:"05",p:true},
{n:"Leekspin dot com",s:"http://www.leekspin.com/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20060503",l:"08",p:true},
{n:"Let me google that for you",s:"http://www.lmgtfy.com/",f:"http://www.lmgtfy.com/favicon.ico",d:"20081119",l:"06",p:true},
{n:"Life is not fair",s:"http://www.lifeisnotfair.org/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20030827",l:"13",p:true},
{n:"Lsaquo &lsaquo;",s:"http://www.lsaquo.net/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20071022",l:"06",p:true},
{n:"Mapa Gigante",s:"http://www.mapagigante.com/",f:"http://www.mapagigante.com/favicon.ico",d:"20070518",l:"11",p:true},
{n:"Motlify",s:"http://www.motlify.com/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20081114",l:"07",p:true},
{n:"Palin as president",s:"http://www.palinaspresident.us/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20081016",l:"16",p:true},
{n:"Rsaquo &rsaquo;",s:"http://www.rsaquo.net/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20071022",l:"06",p:true},
{n:"Sad Trombone",s:"http://www.sadtrombone.com/",f:"http://www.sadtrombone.com/favicon.ico",d:"20080226",l:"11",p:true},
{n:"Should I bring an umbrella?",s:"http://www.shouldibringanumbrella.com/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20080710",l:"22",p:true},
{n:"Should I use tables for layout?",s:"http://www.shouldiusetablesforlayout.com/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20081111",l:"25",p:true},
{n:"Spelling Public Service Announcement",s:"http://www.spellingpsa.com/",f:"http://www.spellingpsa.com/favicon.ico",d:"20080318",l:"11",p:true},
{n:"Steamroller",s:"http://www.steamroller.com/",f:"http://www.singleservingsite.info/images/deficon.png",d:"19980104",l:"11",p:true},
{n:"The Best Fortune Cookie Ever",s:"http://www.thebestfortunecookieever.com/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20080227",l:"24",p:true},
{n:"The Sheep Market",s:"http://www.thesheepmarket.com/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20060301",l:"14",p:true},
{n:"Umbrella Today?",s:"http://www.umbrellatoday.com/",f:"http://www.umbrellatoday.com/favicon.ico",d:"20080806",l:"13",p:true},
{n:"Wilhelm Scream",s:"http://www.wilhelmscream.net/",f:"http://www.wilhelmscream.net/favicon.ico",d:"20081112",l:"13",p:true},
{n:"You Fell Asleep Watching a DVD",s:"http://www.youfellasleepwatchingadvd.com/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20080726",l:"25",p:true},
{n:"Ha Ha - Nelson",s:"http://www.nelsonhaha.com/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20080709",l:"10",p:true},
{n:"Gong Sound Effect",s:"http://www.gooong.com/",f:"http://gooong.com/favicon.ico",d:"20080717",l:"06",p:true},
{n:"Virtual Studio Audience Soundboard",s:"http://www.audiencesounds.com/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20090116",l:"14",p:true},
{n:"Dow Jones Industrial Average Quote",s:"http://www.dowquote.net/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20090218",l:"08",p:true},
{n:"How much is a first class stamp?",s:"http://www.priceofastamp.com/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20090212",l:"13",p:true},
{n:"When is the next Manly Ferry?",s:"http://www.nextmanlyferry.com/",f:"http://www.singleservingsite.info/images/deficon.png",d:"20090323",l:"14",p:true},
{n:"Is it Christmas?",s:"http://www.isitchristmas.info/",f:"http://www.isitchristmas.info/images/favicon.png",d:"20091209",l:"13",p:true},
{n:"Percentage Calculator",s:"http://www.percentage-calculator.info/",f:"http://www.percentage-calculator.info/images/favicon.png",d:"20100112",l:"22",p:true},
{n:"Website down or just me?",s:"http://www.websitedown.info/",f:"http://www.websitedown.info/images/favicon.png",d:"20091009",l:"11",p:true},
{n:"What is my browser?",s:"http://www.whatismybrowser.info/",f:"http://www.whatismybrowser.info/images/favicon.png",d:"20091209",l:"15",p:true},
{n:"What is my OS?",s:"http://www.whatismyos.info/",f:"http://www.whatismyos.info/images/favicon.png",d:"20091209",l:"10",p:true},
{n:"What rhymes with?",s:"http://www.whatrhymeswith.info/",f:"http://www.whatrhymeswith.info/images/favicon.png",d:"20091209",l:"14",p:true},
{n:"When is Easter?",s:"http://www.when-is-easter.info/",f:"http://www.when-is-easter.info/images/favicon.png",d:"20091210",l:"15",p:true},
{n:"Internet Down",s:"http://www.internetdown.info/",f:"http://www.internetdown.info/images/favicon.png",d:"20100201",l:"12",p:true}];
$(document).ready(function() {
	function sortByDate(a,b) { return (a.d > b.d ? 1 : ( a.d < b.d ? -1 : 0)) }
	$("#left").html('<ul>');	
	jQuery.each(sites.sort(sortByDate), function(i, val) {
    val.ntrim = val.n.length > 25 ? val.n.substr(0,25)+'...' : val.n;
    val.strim = val.s.length > 32 ? val.s.substr(0,32)+'...' : val.s;
    if (i < (sites.length/2)) {
      $("#left").append('<li><img src="'+val.f+'" alt="Icon" width="16" height="16"> <a href="'+val.s+'" title="'+val.n+'" target="_new">'+val.ntrim+'</a><br /><a href="'+val.s+'" title="'+val.s+'" class="url" rel="nofollow" target="_new">'+val.strim+'</a></li>');
    }
	});
	$("#left").append('</ul>');	
	$("#right").html('<ul>');	
	jQuery.each(sites.sort(sortByDate), function(i, val) {
    val.ntrim = val.n.length > 25 ? val.n.substr(0,25)+'...' : val.n;
    val.strim = val.s.length > 32 ? val.s.substr(0,32)+'...' : val.s;
    if (i >= (sites.length/2)) {
      $("#right").append('<li><img src="'+val.f+'" alt="Icon" width="16" height="16"> <a href="'+val.s+'" title="'+val.n+'" target="_new">'+val.ntrim+'</a><br /><a href="'+val.s+'" title="'+val.s+'" class="url" rel="nofollow" target="_new">'+val.strim+'</a></li>');
    }
	});
	$("#right").append('</ul>');
$(".sort").click(function() {
  change = this.id;
  change === "date" ? $("#date").html("<a href=\"#\" title=\"Single serving sites by date.\" class=\"sort selected\" id=\"date\">date</a>"):$("#date").html("<a href=\"#\" title=\"Single serving sites by date.\" class=\"sort\" id=\"date\">date</a>");
  change === "title" ? $("#title").html("<a href=\"#\" title=\"Single serving sites by title.\" class=\"sort selected\" id=\"title\">title</a>"):$("#title").html("<a href=\"#\" title=\"Single serving sites by title.\" class=\"sort\" id=\"title\">title</a>");
  change === "url" ? $("#url").html("<a href=\"#\" url=\"Single serving sites by url.\" class=\"sort selected\" id=\"url\">url</a>"):$("#url").html("<a href=\"#\" url=\"Single serving sites by url.\" class=\"sort\" id=\"url\">url</a>");
  change === "length" ? $("#length").html("<a href=\"#\" length=\"Single serving sites by length.\" class=\"sort selected\" id=\"length\">length</a>"):$("#length").html("<a href=\"#\" length=\"Single serving sites by length.\" class=\"sort\" id=\"length\">length</a>");
  change === "rating" ? $("#rating").html("<a href=\"#\" rating=\"Single serving sites by rating.\" class=\"sort selected\" id=\"rating\">rating</a>"):$("#rating").html("<a href=\"#\" rating=\"Single serving sites by rating.\" class=\"sort\" id=\"rating\">rating</a>");
  function sortByDate(a,b) { return (a.d > b.d ? 1 : ( a.d < b.d ? -1 : 0)) }
  function sortByTitle(a,b) { return (a.n > b.n ? 1 : ( a.n < b.n ? -1 : 0)) }
  function sortByUrl(a,b) { return (a.s > b.s ? 1 : ( a.s < b.s ? -1 : 0)) }
  function sortByLength(a,b) { return (a.l > b.l ? 1 : ( a.l < b.l ? -1 : 0)) }
  if (change === "date") { 
	$("#left").html('<ul>');	
	jQuery.each(sites.sort(sortByDate), function(i, val) {
    val.ntrim = val.n.length > 25 ? val.n.substr(0,25)+'...' : val.n;
    val.strim = val.s.length > 32 ? val.s.substr(0,32)+'...' : val.s;
    if (i < (sites.length/2)) {
      $("#left").append('<li><img src="'+val.f+'" alt="Icon" width="16" height="16"> <a href="'+val.s+'" title="'+val.n+'" target="_new">'+val.ntrim+'</a><br /><a href="'+val.s+'" title="'+val.s+'" class="url" rel="nofollow" target="_new">'+val.strim+'</a></li>');
    }
	});
	$("#left").append('</ul>');
	$("#right").html('<ul>');	
	jQuery.each(sites.sort(sortByDate), function(i, val) {
    val.ntrim = val.n.length > 25 ? val.n.substr(0,25)+'...' : val.n;
    val.strim = val.s.length > 32 ? val.s.substr(0,32)+'...' : val.s;
    if (i >= (sites.length/2)) {
      $("#right").append('<li><img src="'+val.f+'" alt="Icon" width="16" height="16"> <a href="'+val.s+'" title="'+val.n+'" target="_new">'+val.ntrim+'</a><br /><a href="'+val.s+'" title="'+val.s+'" class="url" rel="nofollow" target="_new">'+val.strim+'</a></li>');
    }
	});
	$("#right").append('</ul>');
  } else if (change === "title") { 
	$("#left").html('<ul>');	
	jQuery.each(sites.sort(sortByTitle), function(i, val) {
    val.ntrim = val.n.length > 25 ? val.n.substr(0,25)+'...' : val.n;
    val.strim = val.s.length > 32 ? val.s.substr(0,32)+'...' : val.s;
    if (i < (sites.length/2)) {
      $("#left").append('<li><img src="'+val.f+'" alt="Icon" width="16" height="16"> <a href="'+val.s+'" title="'+val.n+'" target="_new">'+val.ntrim+'</a><br /><a href="'+val.s+'" title="'+val.s+'" class="url" rel="nofollow" target="_new">'+val.strim+'</a></li>');
    }
	});
	$("#left").append('</ul>');
	$("#right").html('<ul>');	
	jQuery.each(sites.sort(sortByTitle), function(i, val) {
    val.ntrim = val.n.length > 25 ? val.n.substr(0,25)+'...' : val.n;
    val.strim = val.s.length > 32 ? val.s.substr(0,32)+'...' : val.s;
    if (i >= (sites.length/2)) {
      $("#right").append('<li><img src="'+val.f+'" alt="Icon" width="16" height="16"> <a href="'+val.s+'" title="'+val.n+'" target="_new">'+val.ntrim+'</a><br /><a href="'+val.s+'" title="'+val.s+'" class="url" rel="nofollow" target="_new">'+val.strim+'</a></li>');
    }
	});
	$("#right").append('</ul>');
  } else if (change === "url") { 
	$("#left").html('<ul>');	
	jQuery.each(sites.sort(sortByUrl), function(i, val) {
    val.ntrim = val.n.length > 25 ? val.n.substr(0,25)+'...' : val.n;
    val.strim = val.s.length > 32 ? val.s.substr(0,32)+'...' : val.s;
    if (i < (sites.length/2)) {
      $("#left").append('<li><img src="'+val.f+'" alt="Icon" width="16" height="16"> <a href="'+val.s+'" title="'+val.n+'" target="_new">'+val.ntrim+'</a><br /><a href="'+val.s+'" title="'+val.s+'" class="url" rel="nofollow" target="_new">'+val.strim+'</a></li>');
    }
	});
	$("#left").append('</ul>');
	$("#right").html('<ul>');	
	jQuery.each(sites.sort(sortByUrl), function(i, val) {
    val.ntrim = val.n.length > 25 ? val.n.substr(0,25)+'...' : val.n;
    val.strim = val.s.length > 32 ? val.s.substr(0,32)+'...' : val.s;
    if (i >= (sites.length/2)) {
      $("#right").append('<li><img src="'+val.f+'" alt="Icon" width="16" height="16"> <a href="'+val.s+'" title="'+val.n+'" target="_new">'+val.ntrim+'</a><br /><a href="'+val.s+'" title="'+val.s+'" class="url" rel="nofollow" target="_new">'+val.strim+'</a></li>');
    }
	});
	$("#right").append('</ul>');
  } else if (change === "length") { 
	$("#left").html('<ul>');	
	jQuery.each(sites.sort(sortByLength), function(i, val) {
    val.ntrim = val.n.length > 25 ? val.n.substr(0,25)+'...' : val.n;
    val.strim = val.s.length > 32 ? val.s.substr(0,32)+'...' : val.s;
    if (i < (sites.length/2)) {
      $("#left").append('<li><img src="'+val.f+'" alt="Icon" width="16" height="16"> <a href="'+val.s+'" title="'+val.n+'" target="_new">'+val.ntrim+'</a><br /><a href="'+val.s+'" title="'+val.s+'" class="url" rel="nofollow" target="_new">'+val.strim+'</a></li>');
    }
	});
	$("#left").append('</ul>');
	$("#right").html('<ul>');	
	jQuery.each(sites.sort(sortByLength), function(i, val) {
    val.ntrim = val.n.length > 25 ? val.n.substr(0,25)+'...' : val.n;
    val.strim = val.s.length > 32 ? val.s.substr(0,32)+'...' : val.s;
    if (i >= (sites.length/2)) {
      $("#right").append('<li><img src="'+val.f+'" alt="Icon" width="16" height="16"> <a href="'+val.s+'" title="'+val.n+'" target="_new">'+val.ntrim+'</a><br /><a href="'+val.s+'" title="'+val.s+'" class="url" rel="nofollow" target="_new">'+val.strim+'</a></li>');
    }
	});
	$("#right").append('</ul>');
  }
});
});
