function randomQuoteLink() {

quoteLine = new Array
quoteLink = new Array

quoteLine[0] ="Pets or Food - it's just plain wrong... but could someone pick me up a couple of NBGR's..."
quoteLink[0] ="http://www.petsorfood.com"

quoteLine[1] ="Nice, nice, very nice... So many different people in the same device - Boyd Johanson"
quoteLink[1] ="http://en.wikipedia.org/wiki/Bokononism"

quoteLine[2] ="nobody owns life, but anyone who can pick up a frying pan owns death... - William S. Burroughs"
quoteLink[2] ="http://www.google.co.uk/search?hl=en&q=william+seward+burroughs&meta="

quoteLine[3] ="Sed quis custodiet ipsos custodes ? - Juvenal (Satire VI)"
quoteLink[3] ="http://en.wikipedia.org/wiki/Juvenal"

quoteLine[4] ="put away those fiery biscuits - Julian Barrett"
quoteLink[4] ="http://www.tv.com/the-mighty-boosh/the-priest-and-the-beast/episode/456180/summary.html"

quoteLine[5] ="Look on my works, ye mighty, and despair! - Ozymandias, King of Kings"
quoteLink[5] ="http://en.wikipedia.org/wiki/Ozymandias"

quoteLine[6] ="taedium vitae - Oscar Wilde"
quoteLink[6] ="http://www.google.co.uk/search?hl=en&q=taedium+vitae&spell=1"

quoteLine[7] ="arbiter elegantiarum - Oscar Wilde"
quoteLink[7] ="http://www.google.co.uk/search?hl=en&q=arbiter+elegantiarum+%22oscar+wilde%22&meta="

quoteLine[8] ="www.hell.com - looking a bit Nathan Barley, but kinda good"
quoteLink[8] = "http://www.hell.com/"

quoteLine[9] ="panem et circenses - Juvenal"
quoteLink[9] ="http://www.capitolium.org/eng/imperatori/circenses.htm"

quoteLine[10] ="God save Donald Duck, Vaudville and Variety - Ray Davies, The Kinks"
quoteLink[10] ="http://en.wikipedia.org/wiki/The_Village_Green_Preservation_Society"

quoteLine[11] ="Americans can always be counted on to do the right thing...after they have exhausted all other possibilities. - Winston Churchill"
quoteLink[11] ="http://en.wikipedia.org/wiki/Winston_Churchill"

quoteLine[12] ="I have taken more out of alcohol than alcohol has taken out of me. - Winston Churchill"
quoteLink[12] ="http://en.wikipedia.org/wiki/Winston_Churchill"

quoteLine[13] ="If you go on with this nuclear arms race, all you are going to do is make the rubble bounce. - Winston Churchill"
quoteLink[13] ="http://en.wikipedia.org/wiki/Winston_Churchill"

quoteLine[14] ="However beautiful the strategy, you should occasionally look at the results. - Winston Churchill"
quoteLink[14] ="http://en.wikipedia.org/wiki/Winston_Churchill"

quoteLine[15] ="I think 'no comment' is a splendid expression. I am using it again and again. - Winston Churchill"
quoteLink[15] ="http://en.wikipedia.org/wiki/Winston_Churchill"

quoteLine[16] ="There is something going on in time and space, and beyond time and space, which, whether we like it or not, spells duty. - Winston Churchill"
quoteLink[16] ="http://en.wikipedia.org/wiki/Winston_Churchill"

quoteLine[17] ="If I'd asked my customers what they wanted, they'd have chosen a faster horse - Henry Ford"
quoteLink[16] ="http://en.wikipedia.org/wiki/Henry_Ford"

//lineCount  quoteLine.length;

lineCount = 18;

randomNum = Math.floor ((Math.random() * lineCount))

document.write ("<A HREF='" + quoteLink[randomNum] + "' target='_blank'>" + quoteLine[randomNum] + "</A>")

}

function setActiveStyleSheet(title) {
  var i, a, main;
  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
    if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) {
      a.disabled = true;
      if(a.getAttribute("title") == title) a.disabled = false;
    }
  }
}

function getActiveStyleSheet() {
  var i, a;
  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
    if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title") && !a.disabled) return a.getAttribute("title");
  }
  return null;
}

function getPreferredStyleSheet() {
  var i, a;
  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
    if(a.getAttribute("rel").indexOf("style") != -1
       && a.getAttribute("rel").indexOf("alt") == -1
       && a.getAttribute("title")
       ) return a.getAttribute("title");
  }
  return null;
}

function createCookie(name,value,days) {
  if (days) {
    var date = new Date();
    date.setTime(date.getTime()+(days*24*60*60*1000));
    var expires = "; expires="+date.toGMTString();
  }
  else expires = "";
  document.cookie = name+"="+value+expires+"; path=/";
}

function readCookie(name) {
  var nameEQ = name + "=";
  var ca = document.cookie.split(';');
  for(var i=0;i < ca.length;i++) {
    var c = ca[i];
    while (c.charAt(0)==' ') c = c.substring(1,c.length);
    if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
  }
  return null;
}

window.onload = function(e) {
  var cookie = readCookie("style");
  var title = cookie ? cookie : getPreferredStyleSheet();
  setActiveStyleSheet(title);
}

window.onunload = function(e) {
  var title = getActiveStyleSheet();
  createCookie("style", title, 365);
}

var cookie = readCookie("style");
var title = cookie ? cookie : getPreferredStyleSheet();
setActiveStyleSheet(title);
