jQuery.fn.make_menu = function() {
	if ($(this).size()) {
		// Hide this unordered list
		menuid = $(this).attr('id');
		$(this).after('<form id="' + menuid + '-select-menu"><select></select><input type="submit" class="submit" value="Go" /></form>');
		
		// Fill Select Drop down
		$(this).find('li a').each(function(){
			$('#' + menuid + '-select-menu select').append('<option value="' + $(this).attr("href") + '">' + $(this).html() + '</option>');
		});
		
		// Open link on submit
		$("#" + menuid + "-select-menu").submit(function(){
			window.location.href=$("#" + menuid + "-select-menu select").val();
			return false;
		});
		
		// Remove the unordered list from the DOM
		$(this).remove();
	}
}

$(document).ready(function(){
	
 	//Initialize the drop down menu maker
	$("#feature-show-me ul").make_menu();
});