// JavaScript Document

(function ($) {
 $(function() {
	 
	 $(document).ready(function() {
		 
$("<div class='select-navi'/>").appendTo("#logbar");
$("<select />").appendTo(".select-navi");
$("<p class='select-label'>Navigation</p>").prependTo(".select-navi");

});

// Create the dropdown base



	

// Create default option "Go to..."
$("<option />", {
   "selected": "selected",
   "value"   : "",
   "text"    : "Go to..."
}).appendTo(".select-navi select");

// Populate dropdown with menu items
$("#navi a").each(function() {
 var el = $(this);
 $("<option />", {
     "value"   : el.attr("href"),
     "text"    : el.text()
 }).appendTo(".select-navi select");
});



$(".select-navi select").change(function() {
  window.location = $(this).find("option:selected").val();
});

 });
 
 })(jQuery);;

