$(document).ready(function() {
   
	// replace problems with dropdown
	var a = [];
	var t = []; 
	$("#problems li a").each(function() {
		a.push($(this).attr("href"));
		t.push($(this).text());
	});
	var s = '<select id="problems-select"><option value="">How can we help you?</option>';
	for(i in a) {
		s += '<option value="' + a[i] + '">' + t[i].substring(0, t[i].length-8) +'</option>';
	}
	s += "</select>";
	$("#problems ul").replaceWith(s);
	
	$("#problems-select").live("change", function() {
		sel = $(this).find("option:selected").attr("value");
		if(sel) {
			window.location.href = sel;
		}
	});
	
});
