/*
 * @(#)status.js
 *
 *    Version: 0.99.20100301
 * Written by: Yves Kreis <mailto:yves.kreis@education.lu>
 *
 * Copyright (C) 2003-2010 by Yves Kreis
 *
 * This work is licensed under the Creative Commons Attribution-Noncommercial-Share Alike 3.0 Luxembourg License.
 * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/3.0/lu/ or send a letter to 
 * Creative Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA.
 *
 */

/*
 *
 * Function available in this file:
 *   setStatus(anchor)
 *
 * Usage examples:
 *   onmouseover = "setStatus(this.title);"
 *   onmouseover = "setStatus(this.title + ' (' + this.href + ')');"
 *   onmouseout  = "setStatus();"
 *
 */

function setStatus(text) {
  if (null == text) {
    setTimeout("top.status = '';", 1);
  } else {
    setTimeout("top.status = '" + text.replace(/'/g, "\\\'") + "';", 2);
  }
  return true;
}