// Only run if js & drupal components are enabled
if (Drupal.jsEnabled) {

  // Perform when DOM is complete
  // A little convoluted to help with IE
  $(document).ready(function() {
      quicklinks = Drupal.settings.quicklinks;
      $("div#primary ul.links-menu").before(quicklinks);

      $("select","#quicklinks").bind("change", function() {
        var selected = $(this)[0].options[$(this)[0].selectedIndex].value;
        location = selected;
      });
  });
}

