/* Preload */
function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

kep0 = newImage("images/index_01.jpg");
kep1 = newImage("images/menu0.jpg");
kep2 = newImage("images/menu1.jpg");
kep3 = newImage("images/menu2.jpg");
kep4 = newImage("images/menu3.jpg");
kep5 = newImage("images/menu4.jpg");
kep6 = newImage("images/menu5.jpg");
kep7 = newImage("images/oldalmenu.jpg");
kep8 = newImage("images/index_03.gif");
kep9 = newImage("images/index_02.jpg");
kep10 = newImage("images/index_02.jpg");
/* ! Preload */

// Start Emerigos logo
function eon2(a)
	{
	document.getElementById('emeon').style.opacity=a/10;
	document.getElementById('emeon').style.filter='alpha(opacity='+a*10+')';
	if (a<10) setTimeout("eon2("+(a+1)+")",25);
	}

function eon(a)
	{
	document.getElementById('emeoff').style.opacity=a/10;
	document.getElementById('emeoff').style.filter='alpha(opacity='+a*10+')';
	if (a>0) setTimeout("eon("+(a-1)+")",20);
		else
		{
		document.getElementById('emeoff').style.display='none';
		document.getElementById('emeon').style.display='';
		document.getElementById('emeon').style.opacity=0;
		document.getElementById('emeon').style.filter='alpha(opacity=0)';
		eon2(0);
		}
	}
	
function eoff2(a)
	{
	document.getElementById('emeoff').style.filter='alpha(opacity='+a*10+')';
	document.getElementById('emeoff').style.opacity=a/10;
	if (a<10) setTimeout("eoff2("+(a+1)+")",25);
	}

function eoff(a)
	{
	document.getElementById('emeon').style.filter='alpha(opacity='+a*10+')';
	document.getElementById('emeon').style.opacity=a/10;
	if (a>0) setTimeout("eoff("+(a-1)+")",20);
		else
		{
		document.getElementById('emeon').style.display='none';
		document.getElementById('emeoff').style.display='';
		document.getElementById('emeoff').style.filter='alpha(opacity=0)';
		document.getElementById('emeoff').style.opacity=0;
		eoff2(0);
		}
	}
	// End Emerigos logo
	
function changecolor(theid)
{
	document.getElementById(theid).style.backgroundColor='#FFFFFF';
	document.getElementById(theid).style.color='#000000';
	document.getElementById(theid).style.fontWeight='normal';
	document.getElementById(theid).style.borderColor='#000000';
	document.getElementById(theid).style.filter='alpha(opacity=90)';
	document.getElementById(theid).style.opacity='0.90';
}

function switchback(theid)
{
	document.getElementById(theid).style.backgroundColor='#fafcfb';
	document.getElementById(theid).style.color='#000000';
	document.getElementById(theid).style.fontWeight='normal';
	document.getElementById(theid).style.filter='alpha(opacity=70)';
	document.getElementById(theid).style.opacity='0.70';
	document.getElementById(theid).style.borderColor='#999999';
}

function kis(s)
{
	document.getElementById('ta'+s).style.backgroundImage="url('images/felsomenuover.jpg')";
}
function nagy(s)
{
	document.getElementById('ta'+s).style.backgroundImage="url('images/felsomenu.jpg')";
}
/*
function kepnagyit(table) {
	
	kirak="<img src='pics/nagy/"+table+".jpg' border='0' width='300' />";
	Tip(kirak);
	}
	
*/