var wordpressDropdownNav = new Class({
// Hover Menus For wordpress sites element is the navigation ul
	initialize: function(element,options){
		this.element=(element);
		this.children_uls = this.element.getElements('li ul');
		this.setup();
	},
	setup: function(){
		this.children_uls.each(function(ul){
			ul.addClass('inactive');
			var parent_li = ul.getParent('li');
			parent_li.addEvents({
				'mouseover': function(){
					// Show the child menu
					ul.addClass('active');
				}.bind(this),
				'mouseout': function(){
					// Hide the child menu
					ul.removeClass('active');
				}.bind(this),
				'click': function(){
					// Just follow the link					
				}.bind(this)
			});
			
		});
	}
});

window.addEvent('domready', function(){
	new wordpressDropdownNav($('funkyNav'));
	//alert('test');
})