

// Array Function

function makeArray() {
var args = makeArray.arguments;
    for (var i = 0; i < args.length; i++) {
    this[i] = args[i];
    }
this.length = args.length;
}



var pages = new makeArray("Select Cuisine Type",
			  "American",
			  "Carolina Cooking",
			  "Coffee Shop",
			  "Country Cooking",
			  "Fast Food",
			  "Greek",
                          "Grill",
			  "Icecream",
                          "Italian",
			  "Mexican",
			  "Oriental",
			  "Seafood",
			  "Steakhouse");
                          



var urls = new makeArray("",
			 "http://www.kinstonlc.com/american.html",
		 "http://www.kinstonlc.com/carolinacooking.html",
			 "http://www.kinstonlc.com/coffeeshop.html",
                       "http://www.kinstonlc.com/countrycooking.html",
			 "http://www.kinstonlc.com/fastfood.html",
                         "http://www.kinstonlc.com/greek.html",
			 "http://www.kinstonlc.com/grill.html",
			 "http://www.kinstonlc.com/icecream.html",
			 "http://www.kinstonlc.com/italian.html",
			 "http://www.kinstonlc.com/mexican.html",
			 "http://www.kinstonlc.com/oriental.html",                         
			 "http://www.kinstonlc.com/seafood.html",
			 "http://www.kinstonlc.com/steakhouse.html");
                         



function goPage(form) {
i = form.menu.selectedIndex;            
    if (i != 0) {
    window.location.href = urls[i];  
    }
}

document.write('<FORM><SELECT NAME = "menu" onChange = "goPage(this.form)">');
    for (var i = 0; i < pages.length; i++) {
    document.write('<OPTION>' + pages[i]);
    }
document.write('</SELECT></FORM>');

