var gvhossz=0;
var szoveg=new Array();
var imagepath="http://www.sportforum.hu/images/"
szoveg['bevezeto']='Üdvözöljük a Sportfórum.hu portálján! A megújult honlap vakok és gyengénlátóknak is lehetőséget biztosit ezen a lapon böngészni!  kérjük nyomja meg az egyes gombot.'
szoveg['fomenu']  ='Főmenü. A, hírek,B, Eredmények, C, Fórumok, D Tv Műsorok, E, Sportágak, F Újdonságok.';


var image = new Array();

image["sf_header_ok.gif"] = new Image();
image["sf_header_ok.gif"].src = imagepath+"sf_header_ok.gif";


image["sf_header_ok_move.gif"] = new Image();
image["sf_header_ok_move.gif"].src = imagepath+"sf_header_ok_move.gif";

image["sf_search_ok.gif"] = new Image();
image["sf_search_ok.gif"].src = imagepath+"sf_search_ok.gif";

image["sf_search_ok_move.gif"] = new Image();
image["sf_search_ok_move.gif"].src = imagepath+"sf_search_ok_move.gif";

image["sf_header_eml.gif"] = new Image();
image["sf_header_eml.gif"].src = imagepath+"sf_header_eml.gif";

image["sf_header_eml_move.gif"] = new Image();
image["sf_header_eml_move.gif"].src = imagepath+"sf_header_eml_move.gif";

image["sf_header_reg.gif"] = new Image();
image["sf_header_reg.gif"].src = imagepath+"sf_header_reg.gif";

image["sf_header_reg_move.gif"] = new Image();
image["sf_header_reg_move.gif"].src = imagepath+"sf_header_reg_move.gif";

image["mehet_move.gif"] = new Image();
image["mehet_move.gif"].src = imagepath+"mehet_move.gif";

image["mehet.gif"] = new Image();
image["mehet.gif"].src = imagepath+"mehet.gif";


image["modosit_be.gif"] = new Image();
image["modosit_be.gif"].src = imagepath+"modosit_be.gif";

image["modosit_ki.gif"] = new Image();
image["modosit_ki.gif"].src = imagepath+"modosit_ki.gif";

image["gyorsmenu_over.gif"] = new Image();
image["gyorsmenu_over.gif"].src = imagepath+"gyorsmenu_over.gif";

image["gyorsmenu_normal.gif"] = new Image();
image["gyorsmenu_normal.gif"].src = imagepath+"gyorsmenu_normal.gif";

image["beallit_over.gif"] = new Image();
image["beallit_over.gif"].src = imagepath+"beallit_over.gif";

image["beallit_normal.gif"] = new Image();
image["beallit_normal.gif"].src = imagepath+"beallit_normal.gif";

image["kijel_over.gif"] = new Image();
image["kijel_over.gif"].src = imagepath+"kijel_over.gif";

image["kijel_normal.gif"] = new Image();
image["kijel_normal.gif"].src = imagepath+"kijel_normal.gif";

function gyorsmenu_kep(param)
{
    var kep=document.getElementById('gyorsm_kep');
    if (param==1)
    {
	kep.src=image['gyorsmenu_over.gif'].src;
    }
    else
    {
	kep.src=image['gyorsmenu_normal.gif'].src;
    }
}

function beallit_kep(param)
{
    var kep=document.getElementById('beallitasok_kep');
    if (param==1)
    {
	kep.src=image['beallit_over.gif'].src;
    }
    else
    {
	kep.src=image['beallit_normal.gif'].src;
    }
}

function kijel_kep(param)
{
    var kep=document.getElementById('kijelentkezes_kep');
    if (param==1)
    {
	kep.src=image['kijel_over.gif'].src;
    }
    else
    {
	kep.src=image['kijel_normal.gif'].src;
    }
}

function login_button(mire)
{
document.header.header_ok_button.src=image[mire].src;
}

function modosit_gomb(mire)
{
document.getElementById("modosit_button").src=image[mire].src;
}
function passw_gomb(mire)
{
document.getElementById("password_gomb").src=image[mire].src;
}

function search_button(mire)
{
document.kereso.search_ok_button.src=image[mire].src;
}

function kerdes_button(mire)
{
document.kerdes.kerdes_ok_button.src=image[mire].src;
}

function reszletes_button(mire)
{
document.reszletes_kereso.reszletes_ok_button.src=image[mire].src;
}

function szavazas_button(mire)
{
document.szavazas.szavazas_mehet_button.src=image[mire].src;
}

function sign_button(mire)
{
document.header.header_sign_button.src=image[mire].src;
}

function eml_button(mire)
{
document.header.header_eml_button.src=image[mire].src;
}

function openforum(param)
{
	var szelesseg=screen.availWidth;
	var magassag=screen.availHeight;
	//window.open(param, '', 'scrollbars=yes,status=yes,height=magassag,width=szelesseg,top=0,left=0, false');
	window.open(param, '', '');
}

function valaszto(param)
	{
		kep=document.menu.menuimage;
		szel='';
		hossz='';
		keret='';
		if (szel!='')
		{
			kep.width=szel;
		}
		if (hossz!='')
		{
			kep.height=hossz;
		}
		if (keret!='')
		{
			kep.border=keret;
		}
		if (param=='')
			kep.src=imagepath+"sf_header_cikkek.gif";
		else
			kep.src=imagepath+"sf_header_"+param+".gif";
	}

function play(word,param)
{
if (document.all)
 {
 s="http://www.vilaghallo.hu/WebVoiceServlet/WavServlet?source=vilaghallo&lang=hu&word="+word;
 document.all.sound.src = s;
 if (param==1) setfocus();
 }


 return false;


}
	      

function setfocus()
{
    document.gyl.gylh.focus();
}


function nyomott(e)
{
var keynum;
var keychar;
var numcheck
if(window.event) // IE
{
    keynum = e.keyCode;
}
else if (e.which) // Netscape/Firefox/Opera
{
    keynum = e.which;
}

keychar = String.fromCharCode(keynum);
numcheck = /\d/;
if (keychar==1)
    {
    play(szoveg['fomenu']);
    }
}

function ujablak(oldal,kep,modulhely)
{
    szelesseg=640;
    magassag=482;
    felso=((screen.availHeight-magassag)/2);
    balso=((screen.availWidth-szelesseg)/2);
    url='http://regisztracio.sportforum.hu/index.php?oldal='+oldal+'&kep='+kep;
//    alert (url);
    window.open(url,'', 'scrollbars=no,status=no,height='+magassag+',width='+szelesseg+',top='+felso+',left='+balso, false);2
}

function ablaknyit(szel,mag,oldal)
{
    felso=((screen.availHeight-mag)/2);
    balso=((screen.availWidth-szel)/2);
    window.open(oldal,'', 'scrollbars=no,status=no,height='+mag+',width='+szel+',top='+felso+',left='+balso, false);2
}
function optopen(modulhely)
{
    url=modulhely+'/options/';
    szelesseg=640;
    magassag=510;
    felso=((screen.availHeight-magassag)/2);
    balso=((screen.availWidth-szelesseg)/2);
    window.open(url, '', 'scrollbars=no,status=no,height='+magassag+',width='+szelesseg+',top='+felso+',left='+balso, false);
}

function optopenPeking(modulhely)
{
    url=modulhely;
    szelesseg=640;
    magassag=510;
    felso=((screen.availHeight-magassag)/2);
    balso=((screen.availWidth-szelesseg)/2);
    window.open(url, '', 'scrollbars=no,status=no,height='+magassag+',width='+szelesseg+',top='+felso+',left='+balso, false);
}


var nyitva1=false;

function nyit_csuk1()
{
    if (nyitva1)
        collapse1();
    else
        expand1();
}
function expand1()
{
    nyitva1=true;
    document.getElementById('gyorsmenu_div').style.visibility='visible';
}
function collapse1()
{
    nyitva1=false;
    document.getElementById('gyorsmenu_div').style.visibility='hidden';
}

function elhagyo1(e)
{
	if (typeof e == 'undefined')
    	e = window.event;
    var mousex=e.clientX;
    var mousey=e.clientY;
    atadox=mousex;
    atadoy=mousey;
    if (nyitva1)
	if ((mousex<13)||(mousex>126)||(mousey<143)||(mousey>gymhossz))
	    setTimeout("felette1(atadox,atadoy)",2000)
}






var nyitva=false;

function nyit_csuk()
{
    if (nyitva)
        collapse();
    else
        expand();
}
function expand()
{
    nyitva=true;
    document.getElementById('gyv_main').style.visibility='visible';
}
function collapse()
{
    nyitva=false;
    document.getElementById('gyv_main').style.visibility='hidden';
}
function init()
{
    document.onmousemove = update;
    update();
}
function init1()
{
    document.onmousemove = update;
    update1();
}
//function elhagyo1(e)
//{
//    if (!e) e = window.event;
//    var mousex=e.clientX;
//    var mousey=e.clientY;
//    atadox=mousex;
//    atadoy=mousey;
//    if (nyitva)
//	if ((mousex<13)||(mousex>126)||(mousey<143)||(mousey>gyvhossz))
//	    setTimeout("felette(atadox,atadoy)",2000)
//    if (nyitva1)
//	if ((mousex<13)||(mousex>126)||(mousey<143)||(mousey>gyvhossz))
//	    setTimeout("felette1(atadox,atadoy)",2000)
//}
function elhagyo(e)
{
    if (typeof e == 'undefined') 
    	e = window.event;
    var mousex=e.clientX;
    var mousey=e.clientY;
    atadox=mousex;
    atadoy=mousey;
    if (nyitva)
	if ((mousex<13)||(mousex>126)||(mousey<143)||(mousey>gyvhossz))
	    setTimeout("felette(atadox,atadoy)",2000)
}
function update(e)
{
   // elhagyo(e);
}
function update1(e)
{
    elhagyo1(e);
}
function felette(mousex,mousey)
{
    if ((mousex<13)||(mousex>126)||(mousey<143-document.body.scrollTop)||(mousey>gyvhossz-document.body.scrollTop))
    {
	nyitva=false;
	collapse();
    }
}
function felette1(mousex,mousey)
{
    if ((mousex<430)||(mousex>575)||(mousey<32-document.body.scrollTop)||(mousey>gymhossz-document.body.scrollTop))
    {
	nyitva1=false;
	collapse1();
    }
}
function nothing()
{
}
function gyv_aktiv(i)
{
    td= document.getElementById("gyv_elem_"+i);
    a = document.getElementById("gyv_link_"+i);
    td.className='gyv_elem_aktiv';
    a.className='gyorsval_elem_aktiv';
}
function gyv_passziv(i)
{
    td= document.getElementById("gyv_elem_"+i);
    a = document.getElementById("gyv_link_"+i);
    td.className='gyv_elem';
    a.className='gyorsval_elem';
}


function valasz(mire,mikor,kicsoda)
{
document.ujforum.valaszid.value=mire;
document.ujforum.valasztext.value=kicsoda+', '+mikor;
}

function login()
{
    document.header.submit();
}
																											