function searchersToggle(){
	var sb = $('searches');
	if(sb.get('class')== 'opened')sb.setStyle('height', 45);
	$('ekszerkeresoBtn').addEvent('click', function(){
		if(sb.get('class')== 'opened'){
			sb.tween('height', 17);
			sb.set('class','closed');
		}else if(sb.get('class')== 'closed'){
			sb.tween('height', 45);
			sb.set('class','opened');
		}
	});
	$('kodraSzoraBtn').addEvent('click', function(){
		if(sb.get('class')== 'opened'){
			sb.tween('height', 17);
			sb.set('class','closed');
		}else if(sb.get('class')== 'closed'){
			sb.tween('height', 45);
			sb.set('class','opened');
		}
	});
}

function selectEffect(befoglalo, elemek){
	var szNormal = 73, szSmall = 67, szFull = 120;
	var el = elemek;
	var fx = new Fx.Elements(el, {wait: false, duration: 200, transition: Fx.Transitions.Sine});
	el.each(function(elem, i) {
		elem.addEvent("mouseenter", function(event) {
			var o = {};
			o[i] = {width: [elem.getStyle("width").toInt(), szFull]}
			el.each(function(other, j) {
				if(i != j) {
					var w = other.getStyle("width").toInt();
					if(w != szSmall) o[j] = {width: [w, szSmall]};
				}
			});
			fx.start(o);
		});
	});
 
	befoglalo.addEvent("mouseleave", function(event) {
		var o = {};
		el.each(function(el, i) {
			o[i] = {width: [el.getStyle("width").toInt(), szNormal]}
		});
		fx.start(o);
	});
}

window.addEvent('domready', function(){
	searchersToggle();
	//selectEffect($('searches'), $$('.mySelects'));
});
