//(c)2001, Pavel Kalinin, Hagan Advertising

//Camping Menu - Categories
var MenuCat = new Array();
MenuCat[0] = "Select a Category";
MenuCat[1] = "Soups";
MenuCat[2] = "Salads";
MenuCat[3] = "Breakfast";
MenuCat[4] = "Snacks & Dips";
MenuCat[5] = "Main Dishes";
MenuCat[6] = "Desserts";
MenuCat[7] = "Vegetables";
MenuCat[8] = "Sidedishes";

//Categorie 1 - Contents
var CCont1 = new Array();
CCont1[1] = "Creamy Potato Soup";
CCont1[2] = "Cheddar Chowder";
CCont1[3] = "Noodle Soup";
CCont1[4] = "Leek and Potato Soup";
CCont1[5] = "Cheese Soup";
CCont1[6] = "Ham and Lima Bean Soup";
CCont1[7] = "Italian Goulash";

//Categorie 2 - Contents
var CCont2 = new Array();
CCont2[1] = "Vegetable Pasta Salad with Garlic";
CCont2[2] = "Noodle Slaw";
CCont2[3] = "Sweet Chicken Salad";
CCont2[4] = "Taco Salad";
CCont2[5] = "Garlic and Vegetable Pasta Salad";
CCont2[6] = "Chinese Cole Slaw";
CCont2[7] = "Cole Slaw Number 1";
CCont2[8] = "Cole Slaw Number 2";
CCont2[9] = "Garden Pasta Salad";

//Categorie 3 - Contents
var CCont3 = new Array();
CCont3[1] = "Deluxe Apple Pancakes";

//Categorie 4 - Contents
var CCont4 = new Array();
CCont4[1] = "Quick Pickled Eggs";
CCont4[2] = "Dill Dip";
CCont4[3] = "Chip Dip";
CCont4[4] = "Enchilada Dip";
CCont4[5] = "Taco Chip Dip";
CCont4[6] = "Bean Dip";
CCont4[7] = "Stuffed Deviled Eggs";
CCont4[8] = "Ring Bologna and Ketchup";
CCont4[9] = "Fresh Vegetable Dip";
CCont4[10] = "Shrimp Dip";

//Categorie 5 - Contents
var CCont5 = new Array();
CCont5[1] = "Scandinavian Shore Lunch";
CCont5[2] = "Barbecued Hot Dogs";
CCont5[3] = "Cucumber Sandwiches";
CCont5[4] = "Salmagundi";
CCont5[5] = "Sloppy Joes";
CCont5[6] = "Sloppy Barbecue Hamburger";
CCont5[7] = "Hamburger Surprise";
CCont5[8] = "Meat Ball Sandwiches";
CCont5[9] = "Shish Kebabs";
CCont5[10] = "Grape Jelly Meatballs";

//Categorie 6 - Contents
var CCont6 = new Array();
CCont6[1] = "Czechoslovakian Cookies";
CCont6[2] = "Scotcheroos";
CCont6[3] = "Butterscotch Tapioca";
CCont6[4] = "Chocolate Éclair Cake";
CCont6[5] = "Dirt Pudding";

//Categorie 7 - Contents
var CCont7 = new Array();
CCont7[1] = "Calico Beans";
CCont7[2] = "Cheesy Green Beans";
CCont7[3] = "Herbed Carrots";

//Categorie 8 - Contents
var CCont8 = new Array();
CCont8[1] = "Crock Pot Mashed Potatoes";
CCont8[2] = "Chipped Ham Gravy";
CCont8[3] = "Sausage Gravy";
CCont8[4] = "Potato Pancakes";
CCont8[5] = "Southern Grits";

// DON'T MAKE CHANGES BELOW THIS LINE WITHOUT CONSULTING

var CurURL = "" + window.location;
if (CurURL.lastIndexOf("/") == (CurURL.length - 1)) {CurURL = CurURL + "index.html"}
var CurCat = "0";
var PageName = CurURL.substring(CurURL.lastIndexOf("/") + 1, CurURL.length)
if (PageName != "index.html") {
 CurCat = PageName.substring(PageName.indexOf("recipe")+6,PageName.indexOf("_"));
}
var ItemURL = "";
var ItemName = "";
var a="";

function ShowMenu(){

 if (CurCat != "0") {
  var a = "<table width='240' border='1' cellpadding='2' cellspacing='0' bordercolor='#974B00' bgcolor='#FCF2D8'>";
  for (i = 1; i < eval("CCont" + CurCat + ".length"); i++) {
   ItemURL = "recipe" + CurCat + "_" + i + ".html";
   ItemName = eval("CCont" + CurCat + "[" + i + "]");
   a = a + "<tr><td><table border='0' cellpadding='2' cellspacing='0'><tr valign='top'>";
   if (CurURL.indexOf(ItemURL) == -1) {
    a = a + "<td class='dbrbold'><li>&nbsp;</td><td class='dbrbold'><a href='recipe" + CurCat + "_" + i + ".html' class='brown'>";
    a = a + ItemName + "</a></td></tr></table>";
   } else {
    a = a + "<td class='blbold'><li>&nbsp;</td><td class='blbold'>";
    a = a + ItemName + "</td></tr></table>";
   }
   a = a + "</td></tr>";
  }
  a = a + "</table>";

  document.write(a);

 }
}

function MakeForm() {
 for (i = 0; i < MenuCat.length; i++) {
  document.write("<option value='" + i + "'>" + MenuCat[i] + "</option>");
 }
}

function ViewCat(which) {
 if (which != 0) {
  eval("window.location='recipe" + which + "_1.html'");
 }
}

function FormInit() {
 if (CurCat.indexOf("/") == -1) {
  eval("document.CampMenu.SelectCat.options[" + CurCat + "].selected=true");
 } else {
  document.CampMenu.SelectCat.options[0].selected=true;
 }
}
