var menung = {
	nonono: false,
	nonono2: false,
	ion: false,
	scanPage: function() {
		$$("#menu ul li").each(function(item){
			if (item.getChildren().filterByTag("ul").length > 0)
			{
				
				item.addEvent("mouseenter", function(E)
				{
					var te = this.getChildren().filterByTag("ul")[0];
					if ($(this).getTag() == "li" && te != null)
					{
						if (window.activedetails) return true;
						if (this.fx) this.fx.stop();
						this.fx = new Fx.Style(te, 'opacity', {duration: 100, wait: false});
						this.fx.start(0,1);
					}
				}).addEvent("mouseleave", function(E)
				{
					if (true)
					{
						//var te = this.getChildren().filterByTag("ul")[0];
						if (window.activedetails) return true;
						if (this.fx) this.fx.start(0);
					
					}
					
				});
			}
		});
	}
};

window.addEvent("domready", menung.scanPage);

var smicoll = {
	sliders: [],
	
	scanPage: function(){
		$$('.coll').each(function(item, i){
			var h = item.getChildren()[0];
			var d = item.getChildren()[1];
			smicoll.sliders[i] = new Fx.Slide(d, {duration: 500, transition: Fx.Transitions.Elastic.easeInOut});
			smicoll.sliders[i].slideOut();
			h.addEvent("click", function(){
				smicoll.sliders[i].toggle();
			});
		});
	}
}

window.addEvent("domready", smicoll.scanPage);
