if (document.layers) {navigator.family = "nn4"}
if (document.all) {navigator.family = "ie4"}
if (window.navigator.userAgent.toLowerCase().match("gecko")) {navigator.family = "gecko"}

//  #########  popup text
descarray = new Array(
" ",
"<p class='text'><b>Come and visit the Greg Randall Foodstyling web site.</b> ",
"<p class='text'><b>We would love to hear from you. Send us an email and let us know what your experience was like when you joined us last.",
"<p class='text'><center><span class='text'>We are open for <b>Lunch:</b><br><i>Monday through Friday</i> from <br><b><i>11:30 AM</i></b> until <b><i>2:00 PM. </i></b><br><b>Dinner</b> is served <br><i>Sunday through Thursday</i> from <br><b><i>5:00 PM</i></b> until <b><i>9:00PM. </i></b><br><i>Friday</i> from <br><b><i>5:00 PM</i></b> until <b><i>9:30 PM</i></b> <br><br>We hope to see you soon! </center></span>",
"<p class='text'><b>All Bottles of Wine ½ off on Tuesdays!</b>",
"<p class='text'>\"<i><b>Come to me, all of you whose stomach's cry out, and I shall restore you.\"</b></i> <br><small>Found etched above the doorway of a 3000 year old restaurant on the island of Knossos near Greece.</p>",
"<p class='text'><img src='images/vip-rewards.jpg' width='200'>The La Finestra Rewards Program actually pays you to eat at your favorite restaurant!"
);

overdiv="0";
//  #########  CREATES POP UP BOXES
function popLayer(a){
if(!descarray[a]){descarray[a]="<font color=red>This popup (#"+a+") isn't setup correctly - needs description</font>";}
if (navigator.family == "gecko") {pad="0"; bord="3 bordercolor=black";}
else {pad="1"; bord="0";}
desc = 	  "<table cellspacing=0 cellpadding="+pad+" border="+bord+"  bgcolor=000000><tr><td>\n"
	+"<table cellspacing=0 cellpadding=0 border=0 width=200><tr><td bgcolor=ffffdd><center><font size=-1>\n"
	+descarray[a]
	+"</td></tr></table>"
	+"</td></tr></table>";
if(navigator.family =="nn4") {
	document.object1.document.write(desc);
	document.object1.document.close();
	document.object1.left=x+10;
	document.object1.top=y-5;
	}
else if(navigator.family =="ie4"){
	object1.innerHTML=desc;
	object1.style.pixelLeft=x+10;
	object1.style.pixelTop=y-5;
	}
else if(navigator.family =="gecko"){
	document.getElementById("object1").innerHTML=desc;
	document.getElementById("object1").style.left=x+10;
	document.getElementById("object1").style.top=y-5;
	}
}
function hideLayer(){
if (overdiv == "0") {
	if(navigator.family =="nn4") {eval(document.object1.top="-500");}
	else if(navigator.family =="ie4"){object1.innerHTML="";}
	else if(navigator.family =="gecko") {document.getElementById("object1").style.top="-500";}
	}
}

//  ########  TRACKS MOUSE POSITION FOR POPUP PLACEMENT
var isNav = (navigator.appName.indexOf("Netscape") !=-1);
function handlerMM(e){
x = (isNav) ? e.pageX : event.clientX + document.body.scrollLeft;
y = (isNav) ? e.pageY : event.clientY + document.body.scrollTop;
}
if (isNav){document.captureEvents(Event.MOUSEMOVE);}
document.onmousemove = handlerMM;
