x = 20;
y = 70;

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];}}}



var preloadFlag = false;
function preloadImages() {if (document.images) 
{n_eat_o = newImage("images/n_eat_o.gif");n_drink_o = newImage("images/n_drink_o.gif");
n_specials_o = newImage("images/n_specials_o.gif");
n_events_o = newImage("images/n_events_o.gif");
n_private_parties_o = newImage("images/n_private_parties_o.gif");
n_gallery_o = newImage("images/n_gallery_o.gif");
n_contact_o = newImage("images/n_contact_o.gif");
n_home_o = newImage("images/n_home_o.gif");
preloadFlag = true;}}


function checkEmail(theForm) {		
if (theForm.FirstName.value.length =="")	
{	alert("Please provide your first name.");	
theForm.FirstName.focus();	
return (false);	}	
if (theForm.LastName.value.length =="")	
{	alert("Please provide your last name.");	
theForm.LastName.focus();	
return (false);	}	
if (theForm.Phone.value.length =="")	{	
alert("Please provide your phone number.");	
theForm.Phone.focus();	return (false);	}		
if (theForm.EmailAddress.value.length =="")	{	
alert("Please provide your email address.");	
theForm.EmailAddress.focus();	
return (false);	}	
if (theForm.ConfirmEmailAddress.value.length =="")	
{	alert("Please confirm your email address.");	
theForm.ConfirmEmailAddress.focus();	
return (false);	}		
if (theForm.EmailAddress.value != theForm.ConfirmEmailAddress.value)    
{alert('The email addresses entered do not match.  Please try again.');	
theForm.ConfirmEmailAddress.focus();    
return false;    } 
else {    return true;    }}


function validate(field) {
var valid = "0123456789.-()"
var ok = "yes";
var temp;
for (var i=0; i<field.value.length; i++) 
{temp = "" + field.value.substring(i, i+1);
if (valid.indexOf(temp) == "-1") ok = "no";}
if (ok == "no") {alert("Please enter numeric characters only in the zip and phone fields.");
field.focus();
field.select();   }}

/* -----------------------------------------------
   Floating layer - v.1
   (c) 2006 www.haan.net
   contact: jeroen@haan.net
   You may use this script but please leave the credits on top intact.
   Please inform us of any improvements made.
   When usefull we will add your credits.
  ------------------------------------------------ */

function setVisible(obj)
{
	obj = document.getElementById(obj);
	obj.style.visibility = (obj.style.visibility == 'visible') ? 'hidden' : 'visible';
}


function placeIt(obj)
{
	obj = document.getElementById(obj);
	if (document.documentElement)
	{
		theLeft = document.documentElement.scrollLeft;
		theTop = document.documentElement.scrollTop;
	}
	else if (document.body)
	{
		theLeft = document.body.scrollLeft;
		theTop = document.body.scrollTop;
	}
	theLeft += x;
	theTop += y;
	obj.style.left = theLeft + 'px';
	obj.style.top = theTop + 'px';
	setTimeout("placeIt('layer1')",500);
}
window.onscroll = setTimeout("placeIt('layer1')",500);

x=300
y=100

function setVisible(obj)
{
	obj = document.getElementByld(obj);
	obj.style.visibility = (obj.style.visibility == 'visible') ? 'hidden': 'visible';
}

function placeIt(obj)
{
	obj = document.getElementByld(obj);
	if (document.documentElement)
	{
		theLeft = document.documentElement.scrollLeft;
		theTop = document.documentElement.scrollTop;
	}
	else if (document.body)
	{
		theLeft = document.body.scrollLeft;
		theTop = document.body.scrollTop;
	}
	theLeft += x;
	theTop += y;
	obj.style.left = theLeft + 'px';
	obj.style.top = theTop + 'px';
	setTimeout("placeIt('layer1')",500);
}
window.onscroll = setTimeout("placeIt('layer')",500)

