function sumCheck(el){
    if(el.value != '4'){
        el.errors.push("You sure? try again ;)");
        return false;
    }else{
        return true; 
    }
    
}//func

function navEvents(){
	$$('.parent').each(function(el){
		var theul = el.getElement('ul');
		var size = theul.getSize();
		
		
		var showEff = new Fx.Morph(theul, {duration: 'short', transition: Fx.Transitions.Sine.easeOut, link:'cancel'});
		var hideEff = new Fx.Morph(theul, {duration: 'short', transition: Fx.Transitions.Sine.easeOut, link:'ignore'});
		el.addEvent('mouseenter', function(el){	
			this.addClass('navHover');
			//(function(){
			showEff.start({
			   // 'height': [0, size.y],
				'opacity':[0, 1]
			});
			//}).delay(200);
			
		})
		el.addEvent('mouseleave', function(el){
			this.removeClass('navHover');
			//(function(){
			showEff.start({
			   // 'height': [size.y, 0],
				//height cause a flicker on hover
				'opacity':[1, 0]  
			});
			//}).delay(200);
		});
	});
}