//<script type="text/javascript">
//<!--
/*
<TABLE style="width: 790px;"
 BORDER=0 CELLSPACING=0 CELLPADDING=2>
<TR>
<!-- TD style="width: 360px; height: 260px;"><IFRAME WIDTH="100%" HEIGHT="100%" SRC="modul1.html"></IFRAME></TD -->
<TD style="width: 360px; height: 260px;"><span><IFRAME WIDTH="100%" HEIGHT="100%" SRC="modul3.html"></IFRAME></span></TD>
<TD style="width: 360px; height: 260px;"><IFRAME WIDTH="100%" HEIGHT="100%" SRC="http://www.ebesz.xc.hu/TESZT/oraModul.html"></IFRAME></TD>

<TD></TD>


</TR></TABLE>
window.scrollTo(0,document.getElementById("WhereYouWantFocus").offsetTop)
*/
htmlWIDTH = new Array (
"640","640","640","640","640","640",
"660")
htmlHEIGHT = new Array ("620",
"620","620","440","260","520",
"600","260","260","260","260",
"260","260","260","260","260",
"260","260","260","260","260",
"260","260")


function initUL()
{    var x, ulObj=document.getElementsByTagName('UL')[0];
for (var i=0; i < ulObj.childNodes.length  ; i++)
{ x="00"+i;x="LI" + x.substr(x.length-2,2)
ulObj.childNodes[i].id = x
y=document.getElementById(x).innerHTML
if (y.substr(0,1) != "<") {LItxt(x,y)};
}; 

if ( String(window.location).indexOf("USER=") > -1) {LIover("LI00"); LIclick("LI00"); };
if ( String(window.location).indexOf("user=") > -1) { document.getElementById('fadeinbox').style.visibility = "visible" };

}
;
function LItxt(x,y)
{
//' onclick="thClick(' + "'" + nevArray[i] + "'" + ')" ' + ' onfocus="thOver(' +  i  + ')" ' +
//' onmouseover="thOver(' + i + ')" ' +  ' onmouseout="thOut(' + "'" + nevArray[i] + "'" + ')" ' + ' onblur="thOut(' + "'" + nevArray[i] + "'" + ')" ' +  '>' + nevArray[i] + '</th>'
ujTxt="<SPAN ID='SP" + x + "'" +
"onclick='LIclick(\""+x+"\")' " +
"onfocus='LIover(\""+x+"\")' " +
"onmouseover='LIover(\""+x+"\")' " +
"onmouseout='LIout(\""+x+"\")' " +
"onblur='LIout(\""+x+"\")' " +
" style=\"cursor:pointer\" TITLE=\"Kattintásra a témakör kibontható\">"+y+"</SPAN>"
document.getElementById(x).innerHTML=ujTxt
};

;
function LIout(liCim)
{var x=document.getElementById(liCim);
x.style.backgroundColor=""; //document.body.style.backgroundColor;
};

function LIover(liCim)
{var x=document.getElementById(liCim);
x.style.backgroundColor="#FFCC80";
};

function LIclick(liCim)
{ //alert(eval((liCim.substr(liCim.length-2,2)))); //Math.floor
 var x,txtObj;
 var ulObj=document.getElementsByTagName('UL')[0];
for (var i=0; i < ulObj.childNodes.length  ; i++)
{ x="00"+i;x="LI" + x.substr(x.length-2,2)
txtObj=document.getElementById("SP" + x)
if (( txtObj != null ) && ( x != liCim ) ) {liWinClose(x,txtObj.innerHTML)};};


var x=document.getElementById(liCim), txt=document.getElementById("SP" + liCim).innerHTML;
x.innerHTML=txt;
ix=Number(liCim.substr(2,2))
if (( htmlWIDTH[ix] != null ) || ( htmlWIDTH[ix] > 0 ))
{htmlSRC="Dokumentumok/html" + liCim.substr(2,2) + ".html"
htmlSTYLE="width: " + htmlWIDTH[ix] + "px; height: " + htmlHEIGHT[ix] + "px; " +
"min-width: " + htmlWIDTH[ix] + "px; min-height: " + htmlHEIGHT[ix] + "px;" }
else
{htmlSRC="http://www.xc.hu/mailto_me.html"; htmlSTYLE="width: 620px; height: 500px;"};

tStilus = 'style="border: solid black 1px; cursor:pointer; "';
x.innerHTML='<TABLE WIDTH="100%" BORDER=0 CELLSPACING=0 CELLPADDING=2 ' +
' onclick="liWinClose(\'' + liCim + '\',document.getElementById(\'SP' + liCim + '\').innerHTML)" '+
'TITLE="Ez az ablak ide kattintva bezárható"'  + tStilus + '><TR' + 
'><TD colspan="2" align="LEFT" ' + tStilus + 
' ><SPAN ID="SP' + liCim + '">' + txt + '<' + '/' + 'SPAN' + '>' + '<' + '/' + 'TD>' + 
'<TD VALIGN="MIDDLE" ALIGN="CENTER" style="width:12px; color: white; background-color: red" ' + tStilus + '>' +
'X' + '<' + '/' + 'TD><' + '/' + 'TR>'+
'<TR align="CENTER" ><TD></TD><TD style="' + htmlSTYLE + '"><IFRAME WIDTH="100%" HEIGHT="100%" '+
' SRC="' + htmlSRC + '"></IFRAME></TD><TD></TD></TR></TABLE>'
// alert ( x.innerHTML ); //  htmlSTYLE + ix + "\n" + htmlHEIGHT[ix]
scTO("SP" + liCim)

}; 
;
function scTO(x)
{ if ( document.getElementById(x) != null ) { window.scrollTo(0,getYCoord(document.getElementById(x)))};};

function liWinClose(liCim,txt)
{LItxt(liCim,txt); LIout(liCim); scTO('MerLeg');
};
function getXCoord(el) {
	var x = 0;
	while(el){
		x += el.offsetLeft;
		el = el.offsetParent;
	}
	return x;
};
function getYCoord(el) {
	var y = 0;
	while(el){
		y += el.offsetTop;
		el = el.offsetParent;
	}
	return y;
};


//-->
//</script>
