
var spinURLs = new Array (
"http://uncyclopedia.org/wiki/Main_Page",
"http://www.unwords.com/",
"http://www.unwords.com/",
"http://www.hp-lexicon.org/index-2.html",
"http://www.threadless.com/",
"http://www.youtube.com/",
"http://www.weirdnj.com/misc/main.asp",
"http://www.badmovies.org/",
"http://www.grouchy.com/angst/index.html",
"http://www.tnrdlib.bc.ca/rr.html",
"http://www.noflyingnotights.com/",
"http://www.ala.org/ala/yalsa/teenreading/teenstopten/teenstopten.htm",
"http://www.poetryzone.ndirect.co.uk/index2.htm",
"http://www.afi.com/",
"http://us.imdb.com/",
"http://www.bos.frb.org/peanuts/leadpgs/intro.htm#signin",
"http://www.exploratorium.edu/baseball/index.html",
"http://www.headstrong.co.uk/headstrong/hip-hop.asp",
"http://emotioneric.com/",
"http://www.filmtracks.com/",
"http://www.iuma.com/",
"http://www.darkknight.ca/",
"http://www.zap2it.com/index/",
"http://www.ar.com.au/%7Ejriddler/",
"http://www.ar.com.au/%7Ejriddler/",
"http://www.gamespot.com/",
"http://www.fanfiction.net/",
"http://sportsillustrated.cnn.com/",
"http://www.nytimes.com/learning/students/quiz/index.html",
"http://www.rockhall.com/",
"http://www.rapdict.org/Main_Page",
"http://www.allmusic.com/",
"http://www.bored.com/",
"http://www.dreamagic.com/index.html",
"http://www.kissthisguy.com/",
"http://playsite.iwin.com/playsite/index.jsp",
"http://terraserver.microsoft.com/default.aspx",
"http://www.dragonballz.com/"
);

var oldSpinURLs = new Array (
"http://www.teenink.com/",
"http://www.newseum.org/",
"http://www.exploratorium.edu/sports/index.html",
"http://www.movie-mistakes.com/",
"http://ubl.artistdirect.com/"
);


function spin(direction) {
     var spin;
     if (GetCookie('spinner') == null) {
         spin = 1;
     }
     else {
        spin = GetCookie('spinner');
        spin = parseInt(spin);
     }
     var spinURLslength = spinURLs.length - 1;

     spin = spin + direction;
     if (spin > spinURLslength) {
         spin = 0;
     }
     if (spin < 0) {
         spin = spinURLslength;
     }
     SetCookie('spinner', '' + spin + '', expiry);
     document.location = spinURLs[spin];
}

