jQuery(document).ready(function()
  {
    /* Find all friendly UL's */
    jQuery('#brandDropdownHome ul.catalogueitemdump').each(function()
    {
      /* Hide list element */
      jQuery(this).css("display", "none");
    
      /* Create new ID for the select, use existent Id of UL but add the _Select prefix */
      var ElementId = jQuery(this).attr("id") + "brandSelect";
      
      /* Create new Select-element */
      jQuery(this).after("<select id='" + ElementId + "' class='catalogueitemdump'><option selected='selected'>--Please Select--</option></select>");
      
      /* Loop-through list and add children to select */
      jQuery(this).find("li").each(function()
      {
        /* Setup values */
        var Anchor = jQuery(this).find("a").eq(0), Value = (Anchor.length > 0 ? jQuery(Anchor).attr("href") : '');
        var SelectedElement = (jQuery(this).hasClass("SelectedItem") ? ' selected' : '');
        
        /* Add child to select */
        jQuery("#"+ElementId).append("<option value='"+Value+"'"+SelectedElement+">"+jQuery(this).html()+"</option>");
      });
    });
    
    /* Hook selects */
    jQuery("select.catalogueitemdump").change(function()
    {
      if(this.value.length > 0) window.location.href = this.value;
    });
  });

