<!--

flag = null;

var agt=navigator.userAgent.toLowerCase(); 
var is_major = parseInt(navigator.appVersion); 
var is_minor = parseFloat(navigator.appVersion); 
    // Note: Opera and WebTV spoof Navigator.  We do strict client detection. 
    // If you want to allow spoofing, take out the tests for opera and webtv. 
var is_nav  = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1) 
              && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1) 
                && (agt.indexOf('webtv')==-1)); 
var is_nav2 = (is_nav && (is_major == 2)); 
var is_nav3 = (is_nav && (is_major == 3)); 
var is_nav4 = (is_nav && (is_major == 4)); 
var is_nav4up = (is_nav && (is_major >= 4)); 
var is_navonly      = (is_nav && ((agt.indexOf(";nav") != -1) || 
                          (agt.indexOf("; nav") != -1)) ); 
var is_nav5 = (is_nav && (is_major == 5)); 
var is_nav5up = (is_nav && (is_major >= 5)); 

var is_ie     = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
var is_ie3    = (is_ie && (is_major < 4));
var is_ie4    = (is_ie && (is_major == 4) && (agt.indexOf("msie 4")!=-1) );
var is_ie4up  = (is_ie && (is_major >= 4));
var is_ie5    = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.")!=-1) );
var is_ie5_0    = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.0")!=-1) );
var is_ie5_5  = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.5") !=-1));
var is_ie5up  = (is_ie && !is_ie3 && !is_ie4);
var is_ie5_5up =(is_ie && !is_ie3 && !is_ie4 && !is_ie5);
var is_ie6    = (is_ie && (is_major == 4) && (agt.indexOf("msie 6.")!=-1) );
var is_ie6up  = (is_ie && !is_ie3 && !is_ie4 && !is_ie5 && !is_ie5_5);

var is_mac    = (agt.indexOf("mac")!=-1);
var is_pc    = (agt.indexOf("mac")==-1);

if ((is_ie) && (!is_ie5up))
window.location.replace("upgrade_browser.html");

if ((is_nav) && (!is_nav5up))
window.location.replace("upgrade_browser.html");


function goto_URL(object) {
window.location.href =  object.options[object.selectedIndex].value;
}



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_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];}
}



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_findObj(n, d) { //v4.0
  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 && document.getElementById) x=document.getElementById(n); return x;
}


function blurIE(arg) {
if(is_ie) 
arg.blur();
}


function customScripts() {

MM_preloadImages('images/bn_about_o.gif','images/bn_menus_o.gif','images/bn_organic_o.gif','images/bn_occasions_o.gif');
MM_preloadImages('images/bn_directions_o.gif','images/bn_reservations_o.gif','images/bn_takeout_o.gif','images/bn_giftcertificates_o.gif');
MM_preloadImages('images/logo_eroom_o.gif');
}


var theImages = new Array() 

theImages[0] = 'images/zodiac0.gif'
theImages[1] = 'images/zodiac1.gif'
theImages[2] = 'images/zodiac2.gif'
theImages[3] = 'images/zodiac3.gif'
theImages[4] = 'images/zodiac4.gif'
theImages[5] = 'images/zodiac5.gif'
theImages[6] = 'images/zodiac6.gif'
theImages[7] = 'images/zodiac7.gif'
theImages[8] = 'images/zodiac8.gif'
theImages[9] = 'images/zodiac9.gif'
theImages[10] = 'images/zodiac10.gif'
theImages[11] = 'images/zodiac11.gif'

var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
function showZodiac(){
document.write('<img border="0" width="760" height="59" src="'+theImages[whichImage]+'">');
}



writeQuote = "";
if (window.location.href.indexOf('about-') != -1) {
writeQuote = "<img src='images/quote-about.gif' width='605' height='57'>";
}
else if (window.location.href.indexOf('gift-') != -1) {
writeQuote = "<img src='images/quote-gift.gif' width='605' height='57'>";
}
else if (window.location.href.indexOf('menus-') != -1) {
writeQuote = "<img src='images/quote-menus.gif' width='605' height='57'>";
}
else if (window.location.href.indexOf('occasions-') != -1) {
writeQuote = "<img src='images/quote-occasions.gif' width='605' height='57'>";
}
else if (window.location.href.indexOf('reservations') != -1) {
writeQuote = "<img src='images/quote-reservations.gif' width='605' height='57'>";
MM_preloadImages('images/bn_online-reserve-o.gif');
}
else if (window.location.href.indexOf('takeout') != -1) {
writeQuote = "<img src='images/quote-takeout.gif' width='605' height='57'>";
}
else if (window.location.href.indexOf('philosophy-') != -1) {
writeQuote = "<img src='images/quote-organic.gif' width='605' height='57'>";
}
else {
writeQuote = "<img src='images/quote-home.gif' width='605' height='57'>";
}



// rotate background image on homepage
var bgimages=new Array()

bgimages[0]='images/fish-home1.jpg'
bgimages[1]='images/fish-home2.jpg'
bgimages[2]='images/fish-home3.jpg'
bgimages[3]='images/fish-home4.jpg'
bgimages[4]='images/fish-home5.jpg'
bgimages[5]='images/fish-home6.jpg'
bgimages[6]='images/fish-home0.jpg'

//preload images to rotate
var pathToImg=new Array()
for (i=0;i<bgimages.length;i++)
{
  pathToImg[i]=new Image()
  pathToImg[i].src=bgimages[i]
}

var inc=-1

function bgSlide()
{
  if (inc<bgimages.length-1)
    inc++
  else
    inc=0
	//document.body.background =pathToImg[inc].src;
//document.getElementById('fishbackground').background=pathToImg[inc].src;
document.getElementById('fishbackground').style.backgroundImage="url("+pathToImg[inc].src+")"; 


}



function checkForm()
{
    var error_string = "";
    // check the first name field
    if (window.document.form1.name.value == "")
    {
        error_string += "You must enter your name.\n";
    }

 // check the address field
    if (window.document.form1.address.value == "")
    {
        error_string += "You must enter your street address. \n";
    }

// check the city field
    if (window.document.form1.city.value == "")
    {
        error_string += "You must enter your city.\n";
    }

// check the state field
    if (window.document.form1.state.value == "")
    {
        error_string += "You must enter your state.\n";
    }

// check the zip field
    if (window.document.form1.zip.value == "")
    {
        error_string += "You must enter your zip code.\n";
    }
	
// check the email field
    if (window.document.form1.email.value == "")
    {
        error_string += "You must enter your email address.\n";
    }

    if (error_string == "")
    {
	   return true;
	   
    } else {
        error_string = error_string;
        alert(error_string);
        return false;
    } 
}

function checkEmploymentForm()
{
    var error_string = "";
    // check the first name field
    if (window.document.form1.name.value == "")
    {
        error_string += "You must enter your name.\n";
    }

// check the email field
    if (window.document.form1.email.value == "")
    {
        error_string += "You must enter an email address.\n";
    }

    if (error_string == "")
    {
	   return true;
	   
    } else {
        error_string = error_string;
        alert(error_string);
        return false;
    } 
}
 

//-->
