function createDropDown(source) {
        var selected = source.find("option[selected]");
        //var title = source.find("option:first");

        var options = $("option", source);
        source.after('<dl id="rmFilter_' + source.attr('id') + '" class="dropdown"></dl>');
        var target = $('#rmFilter_' + source.attr('id'));
        target.append('<dt><a href="#">' + selected.text() + '</a></dt>');
        target.append('<dd><ul></ul></dd>');
       // source.hide();
       // button.hide();

        options.each(function(i) {
            
                // var lineClass = "";
                $("dd ul", target).append('<li><a href="#"><span class="text">' +
                    $(this).text() + '</span><span class="value">' +
                    $(this).val() + '</span></a></li>');
        });

        $('dt a', target).bind('click', function () {
            $('ul', target).fadeIn(300).css({ 'z-index': 100 });
            $(this).css({ 'backgroundPosition': '0 -27px' });
            return false;
        });


        $(target).bind('mouseleave', function () {
            var timoutTarget = $('ul', target);
            var timoutTargetSrc = $('dt a', this);
            dropDowntimer = setTimeout(function () {
                timoutTarget.fadeOut(300).css({ 'z-index': 50 });
                timoutTargetSrc.css({ 'backgroundPosition': '0 0' });
            }, 500);

        });

        $('ul', target).bind('mouseenter', function () {

            if (typeof dropDowntimer != 'undefined')
                clearTimeout(dropDowntimer);
        });

                
        $("dd ul li a", target).bind('click', function() {
            $('dt a', target).addClass('working');
            var text = $('.text', this).html();
            $("dt a", target).html(text);
            $("dd ul", target).fadeOut(300);
            source.val($(this).find("span.value").html());
           // button.click();
            return false;
        });
}
