// CLEAN INPUTS

	function clearDefault(el) {
		if (el.defaultValue==el.value) el.value = ""
	}
	
	function restoreDefault(el) {
		if (el.value == "") el.value = el.defaultValue
	}
	
	window.addEvent('domready', function(){
		$$('input.clin').each(function(el, i){
			el.addEvent("focus",function(event){
				clearDefault(el);
				el.addClass('focus');
			});
			el.addEvent("blur",function(event){
				restoreDefault(el);
				if(el.value == ""){
					el.removeClass('focus');
				}
			});
		});
		
		$$('ul li').addEvents({
			'mouseover': function(){
				this.addClass('hover');
			},
			'mouseout': function(){
				this.removeClass('hover');
			}
		});
		
		
		
		$$('table tr').addEvents({
			'mouseover': function(){
				this.addClass('hover');
			},
			'mouseout': function(){
				this.removeClass('hover');
			}
		});
		
		$$('tr th').addEvents({
			'mouseover': function(){
				this.addClass('hover');
			},
			'mouseout': function(){
				this.removeClass('hover');
			}
		});
		
		$$('tr td').addEvents({
			'mouseover': function(){
				this.addClass('hover');
			},
			'mouseout': function(){
				this.removeClass('hover');
			}
		});
		
		$$('a.more').addEvents({
			'click': function(){
				this.getNext().toggleClass('hidden');
			}
		});
		
		var accordion = new Accordion('span.SubNivel1', 'div.ULnivel2', {
			opacity: false,
			alwaysHide: true,
			onActive: function(toggler, element){
				toggler.setStyle('color', '#ff3300');	
			},
		 
			onBackground: function(toggler, element){
				toggler.setStyle('color', '#222');
			}
		}, $('accordion'));

	});
	

 
 