function bookmark(url, title)
{
   try
   {
      if (window.sidebar) // Firefox
      {
         window.sidebar.addPanel(title, url, "");
      }
      else if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) // Internet Explorer
      {
         window.external.AddFavorite(url, title);
      }
      else
      {
         alert("Press " + ((navigator.appVersion.indexOf("Mac") != -1) ? "Cmd" : "Ctrl") + "+D to bookmark");
      }
   }
   catch (__exception)
   {
   }
}

// Returns a random integer in the range [0, max]
function getRandom(max)
{
   var ranNum = Math.floor(Math.random() * (max + 1));
   if (ranNum > max)
   {
      ranNum = max;
   }
   return ranNum;
}

function getQuote()
{
   var quotes =
   [
      ["... positive education outcome for individual students [and] for New Zealand", "Steven Joyce, Tertiary Education Minister"],
      ["In a recession when jobs are scarce, people turn to further education to improve their skills", "Robert Stevens, Chief Executive - Education New Zealand"],
      ["New Zealand has the 15th largest international student population in the world ... but ranked number one based on population", "Institute of International Education & Paul Spoonley, Sociologist - Massey University"],
      ["New Zealanders spend an average of 19.7 years in education, including 4.1 years in tertiary education", "Ministry of Education"],
      ["... the Labour party will phase in universal student allowances by 2012", "Helen Clark, Prime Minister"]
   ];
   var index = getRandom(quotes.length - 1);
   document.write("\"" + quotes[index][0] + "\"<br/><i>" + quotes[index][1] + "</i>");
}