// 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 fel()
	{
		var k=parseInt(document.getElementById('motiongallery').style.top);
		if(k>=100)
		document.getElementById('motiongallery').style.top=k-100;
	}

function le()
	{
		var k=parseInt(document.getElementById('motiongallery').style.top);
		if(k<=0)
		document.getElementById('motiongallery').style.top=k+100;
	}

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		design1szoveg_11_over = newImage("images/index_03-over.gif");
		design1szoveg_14_over = newImage("images/index_04-over.gif");
		design1szoveg_15_over = newImage("images/index_05-over.gif");
		design1szoveg_16_over = newImage("images/index_06-over.gif");
		design1szoveg_18_over = newImage("images/index_07-over.gif");
		preloadFlag = true;
	}
}

function kepnagyit(table,width) {
	
	kirak="<img src='"+table+"' border='0' width='"+width+"'/>";
	Tip(kirak);
	}
	
function changecolor(theid)
{
	document.getElementById(theid).style.backgroundColor='#FFFFFF';
	document.getElementById(theid).style.color='#000000';
	document.getElementById(theid).style.borderColor='crimson';
	
}

function switchback(theid)
{
	document.getElementById(theid).style.backgroundColor='#FFFFFF';
	document.getElementById(theid).style.color='#000000';
	document.getElementById(theid).style.borderColor='#cccccc';
	
}
