$(document).ready(function(){
	var html="";
	$("ul.sorter li a").each(function(){
			selected = $(this).parent().hasClass("current") ? "selected=\"selcted\"":"";
			html += "<option "+selected+" value=\""+$(this).attr("href")+"\">"+$(this).html()+"</a>";
	}).parent().parent().replaceWith("<select onchange=\"window.location=this.value;\">"+html+"</select>");
});

