
	//Created on March 25, 2006 10:29:32 AM
	//Ezt használja myst_wt is

	var nsx;
	var nsy;

	if (document.all) // a főablak szélessége
		var winW=document.body.offsetWidth;  //ie, ennek a <body> tag után kell lennie <hülye ie!!>
	else
		var winW=window.innerWidth;  //ff

	if (!document.all) {	//ff
		document.captureEvents(Event.mousemove);	
		document.onmousemove = get_mouse;
	}
	function get_mouse(e) {
		nsx = e.pageX - 50;
		nsy = e.pageY + 5;
	}
	
	function layer(id){
	  var res;
	  if(document.getElementById) res=document.getElementById(id);
	  if(document.all) res=document.all[id];
	  if (res) return res.style;
	  return null;
	}
	
	function t_i(id) {
		var hlp=layer('Tp'+id);
		if (hlp) { 
			if (document.all) { //IE
				 nsy=event.y+document.body.scrollTop+5;
				 nsx=event.x+document.body.scrollLeft-50;
			}
			hlp.top = nsy + 20;
			
			if (id < 50) {	
				if (parseInt(hlp.width) + nsx >= winW) // túllóg a jobbszélen?
					hlp.left = winW-parseInt(hlp.width)-40;
				else			
					hlp.left = nsx > 20 ? nsx - 5 : 10;	//kilóg a balszélen?
				}
			else			
				hlp.left = 100;	//nagy képek és beszéd esetén
				hlp.visibility = 'visible';
				if (id == 58)
					{var hlp2=layer('Tp100');hlp2.visibility='visible';}	
			}
	}
	
	function t_o(id) {
		var hlp = layer('Tp'+id);
		if(hlp) hlp.visibility='hidden';
	}


