// JavaScript Document
$(document).ready(function() {
	
	$("#recipes").mousedown(function() {
		PopulateRecipes();
	});
	
	$("#recipes").change(function() {
		location.href=this.options[this.selectedIndex].value;
	});
	
});

function PopulateRecipes()
{
	
	$.ajax({
		   
		   type: "POST",
		   url: "/ajax/recipes.asp",
		   dataType: "html",
		   async: false,
		   success: function(html) {	   
			      
			   $("#recipes").append(html);
			  
			},
			error: function() { alert("Error"); }
	});

	$("#recipes").unbind("mousedown");
	$("#recipes").show();
	
}

function MM_jumpMenu(selObj){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
}

function openpopup(url, h, w) {
	newwindow=window.open(url,'name','height=' + h + ',width=' + w);
	if (window.focus) {newwindow.focus()}
}

