(function($){
	$.fn.navigation = function()
	{
		this.each(function(){

			$(this).find('ul').children().mouseenter(show);
			$(this).find('ul').children().mouseleave(hide);
			$(this).find('ul').children().find('a').click(clicked);

			function clicked() {
				if ($(this).parent().find('ul').length) {
					//return false;
				}
			}

			function show() {
				$(this).find('ul').show(0);
			}

			function hide() {
				$(this).find('ul').hide(0);
			}
			

		})

	}
})(jQuery);
