function jsload () {
	$$('#mnu li ul').each (function (oUl) {
		oUl.iniHeight = oUl.getStyle ('height');
		oUl.iniTop = oUl.getStyle ('top');
		oUl.setStyles ({ height: 0, display: 'block', paddingTop: 0, overflow: 'hidden', top: -9 });
		oUl.fx = new Fx.Morph (oUl, { 'wait': false, onComplete: function () {
				if (this.getStyle ('height') == '0px') this.setStyle ('paddingTop', 0);
			}.bind (oUl)});
		
		oUl.getParent ().addEvent ('mouseenter', function () {
			this.getLast ().setStyle ('paddingTop', 4);
			this.getLast ().fx.start ({
				height: this.getLast ().iniHeight, top: this.getLast ().iniTop, opacity: 1
			});
		});
		
		oUl.getParent ().addEvent ('mouseleave', function () {
			this.getLast ().fx.start ({
				height: 0, top: -9
			});
		});
	});
}
function jsremooz () {
	ReMooz.assign ('.galin a', {
		'centered': true,
		'cutOut': false,
		'origin': 'img',
		'generateTitle': function(el) {
			var text = el.getFirst().get('alt');
			if (!text) return false;
			var title = text.split(' :: ');
			var head = new Element('h6', {'html': title[0]});
			return (title[1]) ? [head, new Element('p', {'html': title[1]})] : head;
		}
	});
	$$('.galin a.popup').addEvent ('click', function (e) {
		
		window.open (this.href, 'animacion', 'directories=no,location=no,menubar=no,resizable=yes,scrollbars=no,status=no,toolbar=no');
	});
}

window.addEvent ('domready', jsload);
window.addEvent ('domready', jsremooz);