<!--
function setEmail(sentValue){
	switch(sentValue){
		case "Knife + Fork Reservation Request":
			document.getElementById('EMAILTO').value = "reservations@knife-fork-nyc.com";
			break;
		case "Knife + Fork Information":
			document.getElementById('EMAILTO').value = "info@knife-fork-nyc.com";
			break;
		case "Knife + Fork Website Comment":
			document.getElementById('EMAILTO').value = "info@knife-fork-nyc.com,sheridan@ddbys.net";
			break;
	}
}
function changePhoto(arg) {
	CURRENTIMAGE = arg;
	resizePhoto();
}

function resizePhoto(){
	var FullImage;
	FullImage = "images/photos/" + FRAMESIZE + "/" + CURRENTIMAGE;
	document.getElementById('PHOTO').src = FullImage;
}

function changeFrame(){
	if (FRAMESIZE == "200x150"){
		FRAMESIZE = "400x300";
		document.getElementById('FRAMEMEDIUM').style.visibility = "hidden";
		document.getElementById('FRAMELARGE').style.visibility = "visible";
	} else {
		FRAMESIZE = "200x150";
		document.getElementById('FRAMELARGE').style.visibility = "hidden";
		document.getElementById('FRAMEMEDIUM').style.visibility = "visible";
	}
	resizePhoto();
}

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

function CheckOption(){
	if (CURRENT_OPTION != "none"){
		if (CURRENT_OPTION == 'Starters'){document['Starters'].src = 'images/menu/MenuStarters-over.gif';}else{document['Starters'].src = 'images/menu/MenuStarters.gif';}
		if (CURRENT_OPTION == 'Wine'){document['Wine'].src = 'images/menu/MenuWine-over.gif';}else{document['Wine'].src = 'images/menu/MenuWine.gif';}
		if (CURRENT_OPTION == 'Mains'){document['Mains'].src = 'images/menu/MenuMain-over.gif';}else{document['Mains'].src = 'images/menu/MenuMain.gif';}
		if (CURRENT_OPTION == 'Endings'){document['Endings'].src = 'images/menu/MenuEndings-over.gif';}else{document['Endings'].src = 'images/menu/MenuEndings.gif';}
		document[CURRENT_OPTION].blur();
	}
}
function SetMenu(){
	if (CURRENT_OPTION != "none"){
		if (CURRENT_OPTION == 'Starters'){importXML('documents/starters.xml');document.getElementById('MenuTitle').innerHTML = "Starters";}
		if (CURRENT_OPTION == 'Wine'){importXML('documents/wines.xml');document.getElementById('MenuTitle').innerHTML = "Wine List";}
		if (CURRENT_OPTION == 'Mains'){importXML('documents/mains.xml');document.getElementById('MenuTitle').innerHTML = "Mains";}
		if (CURRENT_OPTION == 'Endings'){importXML('documents/endings.xml');document.getElementById('MenuTitle').innerHTML = "Endings";}
		CheckOption();
	}
}
// Code base from http://www.quirksmode.org/dom/importxml.html
function importXML()
{
	if (document.implementation && document.implementation.createDocument)
	{
		xmlDoc = document.implementation.createDocument("", "", null);
		xmlDoc.onload = createTable;
	}
	else if (window.ActiveXObject)
	{
		xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
		xmlDoc.onreadystatechange = function () {
			if (xmlDoc.readyState == 4) createTable();
		};
 	}
	else
	{
		alert('Our apologies but it appears your browser is incompatible with the features of this web page.');
		return;
	}
	xmlDoc.load(importXML.arguments[0]);
}

function createTable()
{
	var x = xmlDoc.getElementsByTagName('item');
	var bSkip = false;
	var MasterData = "<div><img src='images/site/SpacerClear.gif' height='15'></div>";
	MasterData = MasterData + "<table cellpadding='0' cellspacing='0' border='0'>";
	var RowData = "";
	for (i=0;i<x.length;i++)
	{
		var colCount = 0;
		RowData = "<tr>";
		for (j=0;j<x[i].childNodes.length;j++)
		{
			if (x[i].childNodes[j].nodeType != 1) continue;
			var nValue = x[i].childNodes[j].firstChild.nodeValue;
			var nName = x[i].childNodes[j].nodeName;
			var tdAtts = " valign='bottom'";
			colCount = colCount + 1
			if (nValue == "-"){nValue = "&nbsp;";}
			if (nName == "desc"){tdAtts = tdAtts + " width='300px' align='left'";}
			if (nName == "price"){tdAtts = tdAtts + " width='30px' align='right'";}
			if (nName == "header" && nValue != "YEAR" && nValue != "GLASS" && nValue != "BOTTLE"){tdAtts = tdAtts + " width='300px' style='color:#FFFF00' align='left'";}
			if (nName == "header" && nValue == "YEAR"){tdAtts = tdAtts + " style='font-size:10px;color:#FFFF00' width='45px' align='center'";}
			if (nName == "header" && nValue == "GLASS"){tdAtts = tdAtts + " style='font-size:10px;color:#FFFF00' width='45px' align='center'";}
			if (nName == "header" && nValue == "BOTTLE"){tdAtts = tdAtts + " style='font-size:10px;color:#FFFF00' width='45px' align='center'";}
			if (nName != "desc" && nName != "header"){tdAtts = tdAtts + " align='center'";}
			RowData = RowData + "<td" + tdAtts + ">" + nValue + "</td>";
		}
		RowData = RowData + "</tr>";
		if (CURRENT_OPTION == "Wine"){
			RowData = RowData + "<tr><td colspan='" + colCount + "'><div><img src='images/site/SpacerClear.gif' height='5'></div></td></tr>";
		} else {
			RowData = RowData + "<tr><td colspan='" + colCount + "'><div><img src='images/site/SpacerClear.gif' height='15'></div></td></tr>";
		}
		if (bSkip == true){bSkip=false;}else{MasterData = MasterData + RowData ;bSkip = false;}
	}
	MasterData = MasterData + "</table>";
	document.getElementById('MenuList').innerHTML = MasterData;
}
-->