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(
" ",
"<table><tr><td width='50%'><a href='experience.html'><img src='images/work_tv.jpg' border='0'></a></td><td width='50%'><h5><a href='experience.html'>TV / Film Work</a></h5></td></tr><tr><td width='50%'><a href='experience_print.html'><img src='images/work_print.jpg' border='0'></a></td><td width='50%'><h5><a href='experience_print.html'>Print Work</a></h5></td></tr></table>",
"<img src='images/fo-services.jpg'><p style='color:brown; font-family:Arial; font-size:12pt'>Learn about the services that Randall Food Styling can provide to your projects.</p>",
"<img src='images/fo-equipment.jpg'><p style='color:brown; font-family:Arial; font-size:12pt'>Listed here:  Clients and projects Greg has lent his expertise to making them successfull.</p>",
"<img src='images/fo-contact-us.jpg'><p style='color:brown; font-family:Arial; font-size:12pt'>Need to contact us?  Learn how here.</p>",
"<p>\"<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><b>In the mood for great Italian food in a relaxed and friendly setting?</b></p><p><i>Come and visit us in our newest food venture at La Finestra in Tarzana, California.</i></p>"
);

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+15;
	document.object1.top=y-5;
	}
else if(navigator.family =="ie4"){
	object1.innerHTML=desc;
	object1.style.pixelLeft=x+15;
	object1.style.pixelTop=y-5;
	}
else if(navigator.family =="gecko"){
	document.getElementById("object1").innerHTML=desc;
	document.getElementById("object1").style.left=x+15;
	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;
