// JavaScript Document
var recipeObjects = new Array();
recipeObjects['recipes_shepherds_pie.html'] = "Updated Shepherd's Pie";
recipeObjects['recipes_western_omelet_stack.html'] = "Western Omelet Stack for Two";
recipeObjects['recipes_turkey_omelet_bowl.html'] = "Turkey - Omelet Bread Bowl Sandwich";
recipeObjects['recipes_mixed_fried_rice.html'] = "Mix it up - Healthy Mixed Fried Rice";
recipeObjects['recipes_quiche_florentine.html'] = "Quiche Florentine";
recipeObjects['recipes_spinach_quiche.html'] = "Spinach Quiche";
recipeObjects['recipes_western_omelet.html'] = "Western Omelet";
recipeObjects['recipes_pb_bread_pudding.html'] = "Peach - Blueberry Bread Pudding";
recipeObjects['recipes_asparagus_frittata.html'] = "Asparagus Frittata";



populateRecipeDropDown()

function populateRecipeDropDown(){
	var i = 0
	var url = location.href;
	var chosen = 0
	document.frmrecipe.recipes.options[document.frmrecipe.recipes.options.length] = new Option("","")
	for (items in recipeObjects) {
		document.frmrecipe.recipes.options[document.frmrecipe.recipes.options.length] = new Option(recipeObjects[items], items);
		i++;
		if(url.indexOf(items) > -1)chosen=i;
	}
	document.frmrecipe.recipes.selectedIndex = chosen;
}
function jumptorecipe(obj){
	if(obj.selectedIndex>0)document.location.href=obj.options[obj.selectedIndex].value	
}


