$(document).ready(function(){
	$('.menu').hide().each(function(){
		var urls = new Array();
		var sites = new Array();
		
		$(this).find('a').each(function(){
			
			urls.push($(this).attr('href'));
			sites.push($(this).text());
		});
		$(this).parent().append();
		var html = "<div><select onchange=\"window.open(this.options[this.selectedIndex].value,target='_blank')\" name=\"select\">";
		for(var i = 0; i < urls.length; i++){
			html += "<option value='" + urls[i] + "'>" + sites[i] + "</option>";
		}
		
		html += "</select></div>"
		$(html).insertBefore($(this));
	});
	
});
