(function($){$.fn.dropdown = function(params) {		var defaults = {		openClass: 'open',		fadeOut: 500,		hasChildClass: 'hasChild'	}		var opts = $.extend(defaults, params);	this.each(run);		function run() {		var $wrapper = $(this);		var $items = $wrapper.find('li');		var $dropdowns = $wrapper.find('ul:not(:first)');				$dropdowns.hide();				$items.filter(':has(ul)').find('>a').addClass(opts.hasChildClass);		$itemsHasUl = $items.filter(':has(ul)');		$itemsHasNotUl = $items.filter(':not(:has(ul))');				$itemsHasUl.addClass('hasUl');		$itemsHasNotUl.addClass('hasNotUl');				$itemsHasUl.hover(function() {			$this = $(this);			$this.find('>ul').show();			$this.find('>a').addClass('open');		}, function() {			$this = $(this);			$this.find('>ul').hide();			$this.find('>a').removeClass('open');		});	}}})(jQuery)