window.addEvent('domready', function(){
	
	// The same as before: adding events
	var cl=$('onas').getElements('span[class^=tog]')[0].hasClass('oznaceno');
	
	$('onas').addEvents({
		'mouseenter': function(){
			var hr=this.getElements('span[class^=tog]')[0];
			if (hr && cl==false)
{
hr.addClass('oznaceno');
}
			// Always sets the duration of the tween to 1000 ms and a bouncing transition
			// And then tweens the height of the element
			this.set('tween', {
				duration: 1000,
				transition: Fx.Transitions.Bounce.easeOut // This could have been also 'bounce:out'
			}).tween('height', '200px');
		},
		'mouseleave': function(){
			var hr=this.getElements('span[class^=tog]')[0];
			if (hr && cl==false)
{
hr.removeClass('oznaceno');
}
			// Resets the tween and changes the element back to its original size
			this.set('tween', {}).tween('height', '55px');
		}
	});
	
	var myAccordion = new Accordion($('nov'), 'div.toggler', 'div.element', {
		opacity: false,
		onActive: function(toggler, element){
			toggler.setStyle('color', '#ffffff');
			toggler.getElements('div[class=vicetog]')[0].setStyle('display', 'none');
			
		},
		onBackground: function(toggler, element){
			toggler.setStyle('color', '#528CE0');
			toggler.getElements('div[class=vicetog]')[0].setStyle('display', 'block');
		}
	});
	
	
});
