function findPos(obj) {
	var curleft = curtop = 0;
	if (obj.offsetParent) {
		curleft = obj.offsetLeft
		curtop = obj.offsetTop
		while (obj = obj.offsetParent) {
			curleft += obj.offsetLeft
			curtop += obj.offsetTop
		}
	}
	return [curleft,curtop];
}


var globalvar = false;

function show(e, f) { position(e, f); eval(e+".style.display = 'inline';"); globalvar = false; }

function hide(e) { eval(e+".style.display = 'none';"); }

function checkhide(e) { window.setTimeout("if (globalvar==false) hide('"+e+"');", 300); }

function position(tab, img) {
eval("var test = (" + tab + " && " + img + ");");

if (test) {
  eval("var c = findPos(" + img + ");");
  eval(tab+".style.left = c[0]+275;");
  eval(tab+".style.top = c[1];");
}

}

function activate(tab, img) {
eval("var test = (" + tab + " && " + img + ");");

if (test) {
  position(tab, img);
  eval("var x = " + tab + ".getElementsByTagName('td');");

  for(i=0;i<x.length;i++) {
    x[i].onmouseover = function() { this.className='over'; }
    x[i].onmouseout = function() { this.className=''; }
    x[i].onclick = function() { var l = this.getElementsByTagName('a'); location.href=l[0].href; }
  }
}
}
