function access(id)
	{
	if(document.getElementById)
		{
		return document.getElementById(id).style;
		}
	else if(document.all)
		{
		return document.all[id].style;
		}
	else if(document.layers)
		{
		return document.layers[id];
		}
	}

var j;
var x_max;

function scrolling()
	{
	if (document.all || document.getElementById || document.layers)
		{
		j+=50;			
		access('akcio').left=j.toString()+"px";		
		if (j < x_max)	setTimeout("scrolling()",1);				
		}
	
	}
	
function figyelem()
	{
	//var start=document.cookie.indexOf("akcio=");	
	//if (start==-1)
	//	{
	//	document.cookie="akcio=ok";
		
		x_max=parseInt((document.body.clientWidth/2)-100);
		lepesek=parseInt(x_max/50);
		x=x_max-((lepesek+3)*50);				
		y=(document.body.clientHeight/2)-80;
					
		access('akcio').left=x.toString()+"px";
		access('akcio').top=y.toString()+"px";		
		access('akcio').visibility="visible";
			
		j=x;
		scrolling();
	//	}
	}

function layer_off()
	{
	access('akcio').visibility="hidden";
	}
	