// JavaScript Document

<!--FOOTER TO BOTTOM OF VIEWSCREEN-->
function getWindowHeight() {
			var windowHeight = 0;
			if (typeof(window.innerHeight) == 'number') {
				windowHeight = window.innerHeight;
			}
			else {
				if (document.documentElement && document.documentElement.clientHeight) {
					windowHeight = document.documentElement.clientHeight;
				}
				else {
					if (document.body && document.body.clientHeight) {
						windowHeight = document.body.clientHeight;
					}
				}
			}
			return windowHeight;
		}
		function setFooter() {
			if (document.getElementById) {
				var windowHeight = getWindowHeight();
				if (windowHeight > 0) {
					var headerHeight = document.getElementById('header').offsetHeight;
					var contentHeight = document.getElementById('content').offsetHeight;
					var footerElement = document.getElementById('footer');
					var footerHeight  = footerElement.offsetHeight;
					if (windowHeight - (headerHeight + contentHeight + footerHeight) >= 0) {
						footerElement.style.position = 'relative';
						footerElement.style.top = (windowHeight - (headerHeight + contentHeight + footerHeight)) + 'px';
					}
					else {
						footerElement.style.position = 'static';
					}
				}
			}
		}
		window.onload = function() {
			setFooter();
		}
		window.onresize = function() {
			setFooter();
		}
<!--END - FOOTER TO BOTTOM OF VIEWSCREEN-->
		
<!--SWAP IMAGE-->
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
<!--END - SWAP IMAGE-->

function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

//GALLERY PAGE SCRIPT START
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function fadeInPhoto()
{
    var timer = 0, x; 
	for(x = 0; x < 100; x++){
		setTimeout("opacityChange("+x+")", (timer*5));
		timer++;
	}
}

function opacityChange(op)

{
	document.menuphoto.style.filter = "alpha(opacity=" + op + ")";
	document.menuphoto.style.MozOpacity = op / 100;
}	
	function photo1() {
		opacityChange(0)
		fadeInPhoto();
		document.getElementById("menuphoto").src = "image01.jpg";
		document.getElementById('caption').childNodes[0].nodeValue = "Mini twice baked potatoes";
	}
	function photo2() {
			opacityChange(0)
		fadeInPhoto();
		document.getElementById("menuphoto").src = "image02.jpg";
		document.getElementById('caption').childNodes[0].nodeValue = "Bacon and Swiss cheese dip with artisan breads and vegetables";

	}

	function photo3() {
			opacityChange(0)
		fadeInPhoto();
		document.getElementById("menuphoto").src = "image03.jpg";
		document.getElementById('caption').childNodes[0].nodeValue = "Black bean, avocado and corn salsa with fresh corn chips";
	}

	function photo4() {
			opacityChange(0)
		fadeInPhoto();
		document.getElementById("menuphoto").src = "image04.jpg";
		document.getElementById('caption').childNodes[0].nodeValue = "Spinach and Artichoke spread with pita chips";
	}

	function photo5() {
			opacityChange(0)
		fadeInPhoto();
		document.getElementById("menuphoto").src = "image05.jpg";
		document.getElementById('caption').childNodes[0].nodeValue = "Shu Mai dumplings with shrimp and chili dipping sauce";
	}
	function photo6() {
			opacityChange(0)
		fadeInPhoto();
		document.getElementById("menuphoto").src = "image06.jpg";
		document.getElementById('caption').childNodes[0].nodeValue = "Crab cakes with an herbed aioli";
	}
	function photo7() {
			opacityChange(0)
		fadeInPhoto();
		document.getElementById("menuphoto").src = "image07.jpg";
		document.getElementById('caption').childNodes[0].nodeValue = "Brochette over crustini";
	}
	function photo8() {
			opacityChange(0)
		fadeInPhoto();
		document.getElementById("menuphoto").src = "image08.jpg";
		document.getElementById('caption').childNodes[0].nodeValue = "Roasted Pork Ribs with a spicy BBQ glaze";
	}
	function photo9() {
			opacityChange(0)
		fadeInPhoto();
		document.getElementById("menuphoto").src = "image09.jpg";
		document.getElementById('caption').childNodes[0].nodeValue = "Thai chicken wings with lime";
	}
	function photo10() {
			opacityChange(0)
		fadeInPhoto();
		document.getElementById("menuphoto").src = "image10.jpg";
		document.getElementById('caption').childNodes[0].nodeValue = "Cherry Tomato, basil, and mozzarella skewers";
	}
	function photo11() {
			opacityChange(0)
		fadeInPhoto();
		document.getElementById("menuphoto").src = "image11.jpg";
		document.getElementById('caption').childNodes[0].nodeValue = "Seasonal Vegetables roasted with herbs";
	}
	function photo12() {
			opacityChange(0)
		fadeInPhoto();
		document.getElementById("menuphoto").src = "image12.jpg";
		document.getElementById('caption').childNodes[0].nodeValue = "Stuffed chicken breast stuffed with spinach and ricotta wrapped in Proschuitto";
	}
	function photo13() {
			opacityChange(0)
		fadeInPhoto();
		document.getElementById("menuphoto").src = "image13.jpg";
		document.getElementById('caption').childNodes[0].nodeValue = "Thai chicken wings with lime";
	}
	function photo14() {
			opacityChange(0)
		fadeInPhoto();
		document.getElementById("menuphoto").src = "image14.jpg";
		document.getElementById('caption').childNodes[0].nodeValue = "Citrus chicken with smashed broccoli";
	}
	
	function photo15() {
			opacityChange(0)
		fadeInPhoto();
		document.getElementById("menuphoto").src = "image15.jpg";
		document.getElementById('caption').childNodes[0].nodeValue = "Mini Cheese Steak Crostini";
	}
	
		function photo16() {
			opacityChange(0)
		fadeInPhoto();
		document.getElementById("menuphoto").src = "image16.jpg";
		document.getElementById('caption').childNodes[0].nodeValue = "Greek Salad Skewers";
	}
	
	function photo17() {
			opacityChange(0)
		fadeInPhoto();
		document.getElementById("menuphoto").src = "image17.jpg";
		document.getElementById('caption').childNodes[0].nodeValue = "Braised Beef Short Ribs over a bed of Creamy Polenta";
	}
	
	function photo18() {
			opacityChange(0)
		fadeInPhoto();
		document.getElementById("menuphoto").src = "image18.jpg";
		document.getElementById('caption').childNodes[0].nodeValue = "Sauteed Green Beans with Caramelized Shallots";
	}
function toggleLayer(whichLayer)
{
if (document.getElementById)
{
// this is the way the standards work
var style2 = document.getElementById(whichLayer).style;
style2.display = style2.display? "":"block";
}
else if (document.all)
{
// this is the way old msie versions work
var style2 = document.all[whichLayer].style;
style2.display = style2.display? "":"block";
}
else if (document.layers)
{
// this is the way nn4 works
var style2 = document.layers[whichLayer].style;
style2.display = style2.display? "":"block";
}
}
//GALLERY PAGE SCRIPT END