//Function show tooltip
tt = false;
ttTimer = false;
function tooltip() {
	if (window.event.pageX || window.event.pageY) { // this doesn't work on IE6!! (works on FF,Moz,Opera7)
	  mousex = window.event.pageX;
	  mousey = window.event.pageY;
	  if (mousey > (window.innerHeight-170)) mousey = mousey-145;
	} else if (window.event.clientX || window.event.clientY) { // works on IE6,FF,Moz,Opera7
	  mousex = window.event.clientX + document.body.scrollLeft;
	  mousey = window.event.clientY + document.body.scrollTop;
	  if (mousey > document.body.clientHeight) mousey = mousey-145;
	}
	//document.getElementById("tooltip").style.left=(mousex+20)+'px';
	document.getElementById("tooltip").style.top=(mousey-10)+'px';
}

function show_tooltip(titel,datum,txt,hal) {
	clearTimeout(ttTimer);
	
	if (window.event.x ) {
	  document.getElementById("tooltip").innerHTML='<table border="0" cellpadding="0" cellspacing="10" width="380" style="background-color:#A4D5DB;"><tr><td class="search_kop">'+titel+'</td><td class="search_datum">'+datum+'</td></tr><tr><td colspan="2" class="search_tekst">'+txt+'</td></tr><tr><td colspan="2" class="search_footer">'+hal+'</td></tr></table>';
	  document.getElementById("tooltip").style.display="inline";
	}
	tt = true;
	}
	function hide_tooltip() {
	if (window.event.x && tt) {
	  ttTimer=setTimeout("document.getElementById('tooltip').style.display='none';", 100);
	}
	tt = false;
}
