window.addEvent('domready', function() {

	if (typeof(ep3_current_step) == 'number'){
		if ($('menupath')){
			var tabm = $('menupath');
			if(tabm){
				var search = tabm.getElement('tbody tbody td');			
				search.addEvent('click', function(e) {
									window.location.href ='/';
								});	
			
				if(ep3_current_step == 2){
				var tabs = tabm.getElement('tbody').getChildren();
				
					tabs.each(function(tab) {
						if(tab.hasClass('color1bot')){
							var img = tab.getElement('img');	
							
								img.addEvent('click', function(e) {
									window.location.href ='/';
								});
						}
					});	
				}	
				
			}	
		}	
	}
});
window.addEvent('domready', function() {

	if(typeof(ep3_current_step) == 'number' && ep3_current_step == 1){
		if ($('moreCriteria')){
			$('moreCriteria').setProperty('style', 'display:none');			
			$('lessCriteriaLink').setProperty('style', 'display:none');
			$('moreCriteriaLink').setProperty('style', '');
		}		
		if ($('udogodnienia')){
			$('udogodnienia').setProperty('style', 'display:none');			
			$('udogodnieniaLinkClose').setProperty('style', 'display:none');
			$('udogodnieniaLink').setProperty('style', '');
		}	
	}

});

