function topics_show(c) {
  c.style.position   = "absolute";
  c.style.top        = c["topics_y"] +'px';
  c.style.left       = c["topics_x"] +'px';
  c.style.display = "block";
  clearTimeout(c["topics_timeout"]);
  }
	
function topics_hide(c) {
  c["topics_timeout"] = setTimeout("document.getElementById('"+c.id+"').style.display = 'none'", 50);
  }

function topics_init(parent, child, header, x, y) {
  var p = document.getElementById(parent);
  var c = document.getElementById(child);
  var h = document.getElementById(header);

  p["topics_parent"]     = p.id;
  c["topics_parent"]     = p.id;
  p["topics_child"]      = c.id;
  c["topics_child"]      = c.id;
  p["topics_header"]     = h.id;
  c["topics_header"]     = h.id;
  p["topics_x"]      		 = x;
  c["topics_x"]          = x;
  p["topics_y"]      		 = y;
  c["topics_y"]          = y;
  c.style.position   = "absolute";
  c.style.display = "none";

  p.onmousedown  = function(){topics_show(c)};
  p.onmouseout   = function(){topics_hide(c)};
  //p.onmouseover  = function(){topics_show(c)};
  c.onmouseover = function(){topics_show(c)};
  c.onmouseout  = function(){topics_hide(c)};
  }


function menuItemOver(obj) {
	obj.className = 'menuItemOver';
	}
	
function menuItemOut(obj) {
	obj.className = 'menuItemOut';
	}
