$(document).ready(function() {
	$(".elerhetoseg_link").click(function(){
		if(!$("#layer_"+$(this).attr("id")).is(":visible")) $("#layer_"+$(this).attr("id")).show();
	});
	$(".elerhetoseg_box").click(function(){
		$(this).hide();
	});
});


function tabber(tabnum,maxtabnum) {
	if(!document.getElementById) return;
	for(i=1; i<=maxtabnum; i++)	{
		id1='t'+String(i);
		id2='tt'+String(i);
		var o1=document.getElementById(id1);
		var o2=document.getElementById(id2);
		if(i==tabnum) {
			o2.style.display="block";
			o1.style.background="url(/img/bg_boxsearchheaditemsel.gif)";
		} else {
			o2.style.display="none";
			o1.style.background="url(/img/bg_boxsearchheaditem.gif)";
		}
	}
}

function exxiteFShow(id) {
	if(!document.getElementById) return;
	var o=document.getElementById(id);
	var i=document.getElementById('b'+id);
	if(o) {
		if(o.style.display=="block") {
			o.style.display="none";
			i.src="/img/icon_arrow_open.gif";
		} else {
			o.style.display="block";
			i.src="/img/icon_arrow_close.gif";
		}
	}
}

function newsletter(what2do) {
	var news=document.getElementById('newsletter_msg');
	if (what2do=='nyit') news.style.display="block";
	if (what2do=='zar') news.style.display="none";
}
