function randomAdv() {
  m = 0, x = 0, y = 0;
  ad  = new Array();
  adv = new Array();
  hit = new Array();

  hit[0] = 1; adv[0] = 'In the clearing stands a boxer, and a fighter by his trade<br>And he carries the reminder of every glove that laid him down or cut him<br>Till he cried out in his anger and his shame<br>I am leaving, I am leaving, but the fighter still remains<br>(Simon&amp;Garfankle"The Boxer")';
  hit[1] = 1; adv[1] = 'It eluded us then, but that’s no matter tomorrow we will run faster, stretch out our arms farther. . . . And one fine morning<br>So we beat on, boats against the current, borne back ceaselessly into the past.<br>(F. Scott Fitzgerald"The Great Gatsby")';
  hit[2] = 1; adv[2] = 'I go through all this<br>Before you wake up<br>So I can feel happier<br>To be safe up here with you<br>(Bjork"hyperbalald")';
  hit[3] = 1; adv[3] = 'Imagine there’s no heaven<br>It’s easy if you try<br>No hell below us<br>Above us only sky<br>Imagine all the people<br>Living for today<br>(John Lennon"Imagine")';
  hit[4] = 1; adv[4] = 'He walks on, doesn’t look back<br>He pretends he can’t hear her<br>Starts to whistle as he crosses the street<br>Seems embarrassed to be there<br>Oh think twice It’s another day for you and me in paradise<br>(Phil Collins"Another day in paradise")';
  hit[5] = 1; adv[5] = 'How many times must a man look up<br>Before he can see the sky?<br>How many ears must one man have<br>Before can hear people cry?<br>How many deaths will it take. Till he knows that too many people have died?<br>The answer my friend, is blowin’ in the wind. (Bob Dylan"Blowin’in the wind")';
  hit[6] = 1; adv[6] = '“Kathy, I’m lost,” I said, though I knew she was sleeping“I’m empty and aching and I don’t know why”<br>Counting the cars on the New Jersey Turnpike<br>They’ve all come to look for America<br>All come to look for America. (Simon&amp;Garfankle"America")';  
  hit[7] = 1; adv[7] = 'Yes I think I’m okay. I walked into the door again.<br>Well, if you ask that’s what I’ll say. And it’s not your business anyway.<br>I guess I’d like to be alone.With nothing broken, nothing throw<br>Just don’t ask me how I am.<br>(Suzanne Vega"LUKA")'; 
  hit[8] = 1; adv[8] = 'From a distance<br>We are instruments<br>Marching in a common band<br>Playing songs of hope<br>Playing songs of peace<br>They’re the songs of every man<br>(Bette Midler"From a distance")';   
      for(i=0; i<=hit.length - 1; i++) {
    m += hit[i];
  }
  n = Math.floor(Math.random() * m);
  n++;
  for(i=0; i<=hit.length - 1; i++) {
    x = y;
    y += hit[i];
    if(x<n && n<=y) ad = adv[i];
  }
  document.write(ad);
}