var randomButtons = new Array();

// setting up array
randomButtons[1] = '<li id="one"><a href="children_about.php">About the Children</a><span>They come from 64 countries and 6 continents.</span></li>';
randomButtons[2] = '<li id="two"><a href="support_donation.php">Make a Donation</a><span>How your donation makes our work possible.</span></li>';
randomButtons[3] = '<li id="three"><a href="children_childstory.php">A Child\'s Story</a><span>Read a unique account of one GOL recipient.</span></li>';
randomButtons[4] = '<li id="four"><a href="support_volunteer.php">Volunteer</a><span>Your time and effort can make a difference in the lives of the children.</span></li>';
randomButtons[5] = '<li id="five"><a href="children_10000.php">Our 10,000 Child</a><span>Our 10,000 child comes face-to-face with our first child.</span></li>';
randomButtons[6] = '<li id="six"><a href="children_host.php">A Host\'s Story</a><span>An American family opens their hearts and their home.</span></li>';
randomButtons[7] = '<li id="seven"><a href="about_missions.php">Missions</a><span>Learn more about our missions and how you can participate.</span></li>';
randomButtons[8] = '<li id="eight"><a href="news_toc_legacy.php">Our Legacy</a><span>Thousands of lives saved by individual efforts.</span></li>';
randomButtons[9] = '<li id="nine"><a href="#">Photo Gallery</a><span>See the many faces of Gift of Life.</span></li>';
randomButtons[10] = '<li id="ten"><a href="support_host.php">Sponsor a Child</a><span>Help an individual child receive the Gift of Life.</span></li>';
randomButtons[11] = '<li id="eleven"><a href="support_donation.php">Donate</a><span>Donate to Gift of Life.</span></li>';
randomButtons[12] = '<li id="twelve"><a href="support_surgical.php">Surgical Missions</a><span>How your gift can sponsor a mission for a child in need.</span></li>';
randomButtons[13] = '<li id="thirteen"><a href="support_start.php">Start a Program</a><span>How your community or region can start a Gift of Life program.</span></li>';


// more items can be added here,

var numberOfButtons = 4; 

//preload();

function preload() {
   var numberOfChoices = randomButtons.length - 1;
   var strOut = "";   
   strOut = strOut +  "<ul id='inner_buttons'>";
   for (var i=1; i<=numberOfButtons; i++) {
      var buttonNumber = 1+Math.floor(Math.random() * numberOfChoices); 
	  strOut = strOut +  randomButtons[buttonNumber];
	  randomButtons[buttonNumber] = randomButtons[numberOfChoices];
      numberOfChoices--;
   }
   strOut = strOut +  "</ul>";
   document.getElementById('inner_left').innerHTML = strOut;
}
