// JavaScript Document

var myWin = null; 
var width = 540; 
var height = 480; 
var tablewidth = width;
var tableheight = height;
var framewidth = width - 10;
var frameheight = height - 10;
var leftM = 0; 
var topM = 0; 
var x = 100; 
var y = 100;
var mapWin = null; 
var mapwidth = 480; 
var mapheight = 480; 

if (document.all) { 
	// IE Browsers 
	var position = "left=" + x + ",top=" + y; 
} else { 
	// all others 
	var position = "screenX=" + x + ",screenY=" + y; 
	leftM = 5;
	topM = 5;
	tablewidth = tablewidth - 18;
	tableheight = tableheight - 21;
} 


function showfig(srcDoc) { 

	// open a new window if this is the first time calling 
	// this function or if the window was previously closed 
    if (myWin == null || myWin.closed) { 
		myWin = window.open("", "FullSize", "location=no,status=no,scrollbars=yes,resizable=no,width=" + width + ",height=" + height + "," + position); 
	} 

	// output html document to this window	
	var d = myWin.document;

	d.writeln("<html><head><title>La Volpe Ristorante....Italian Cuisine...Dinner Menu</title></head>");
	d.writeln("<body bgcolor='#ffffee' align='center' leftmargin='" + leftM + "' topmargin='" + topM + "'>");
	d.writeln("<table cellpadding='0' cellspacing='0' align='center' border='0' width='" + tablewidth + "px' height='" + tableheight + "px'>");
	d.writeln("<tr><td valign='middle' align='center'>");
	d.writeln("<iframe name='menu' frameborder='0' src='../docfiles/" + srcDoc + "' width='" + framewidth + "' height='" + frameheight + "' scrolling='yes' align='top' marginheight='0' marginwidth='0'>");
	d.writeln("</iframe>"); 
	d.writeln("</td></tr>"); 
	d.writeln("</table>");
	d.writeln("</body></html>"); 
	d.close(); 

	// bring the window to the top 
	myWin.focus(); 

} 
 
 
function showmap(srcImage) { 

	// open a new window if this is the first time calling 
	// this function or if the window was previously closed 
    if (mapWin == null || mapWin.closed) { 
		mapWin = window.open("", "FullSize", "location=no,status=no,scrollbars=no,resizable=no,width=" + mapwidth + ",height=" + mapheight + "," + position); 
	} 

	// output html document to this window	
	var d = mapWin.document;

	d.writeln("<html><head><title>Mike Scarola</title></head>");
	d.writeln("<body bgcolor='#ffffff' align='center' leftmargin=" + leftM + " topmargin=" + topM + ">");
	d.writeln("<table cellpadding='0' cellspacing='0' align='center' border='0' width='" + mapwidth + "px' height='" + mapheight + "px'>");
	d.writeln("<tr><td valign='center' align='center'><img src='" + srcImage + "'></img></td></tr>"); 
	d.writeln("</table>");
	d.writeln("</body></html>"); 
	d.close(); 

	// bring the window to the top 
	mapWin.focus(); 

} 
  
function showdirs() { 

	// open a new window if this is the first time calling 
	// this function or if the window was previously closed 
    if (mapWin == null || mapWin.closed) { 
		mapWin = window.open("", "FullSize", "location=no,status=no,scrollbars=no,resizable=no,width=" + mapwidth + ",height=" + mapheight + "," + position); 
	} 

	// output html document to this window	
	var d = mapWin.document;

	d.writeln("<html><head><title>Mike Scarola</title>");
	d.writeln("<link rel='stylesheet' type='text/css' href='./salonstyles.css'></head>");
	d.writeln("<body bgcolor='#ffffff' align='center' leftmargin='0' topmargin='0'>");
	d.writeln("<table cellpadding='6' cellspacing='0' align='center' border='0' width='" + mapwidth + "px' height='" + mapheight + "px'>");
	d.writeln("<tr><td valign='top' align='left'>"); 
	d.writeln("<span class='mini02'>"); 
	d.writeln("<b>From Points West:</b><br>");
	d.writeln("&nbsp;&nbsp;&gt;Take LIE (I-495) to Exit 71 or Sunrise Hwy. (27) to Exit 61<br>");
	d.writeln("&nbsp;&nbsp;&gt;Follow signs traveling South to Eastport<br>");
	d.writeln("&nbsp;&nbsp;&gt;Make Left onto Montauk Hwy. (Main St.)<br>");
	d.writeln("&nbsp;&nbsp;&gt;Travel East on Montauk Hwy. into Speonk (about 3 mi.)<br>");
	d.writeln("&nbsp;&nbsp;&gt;Shopping center is immediately on Right after Phillips Ave.<br><br>");
	d.writeln("<b>From Points East:</b><br>");
	d.writeln("&nbsp;&nbsp;&gt;Travel West on Montauk Hwy. into Speonk<br>");
	d.writeln("&nbsp;&nbsp;&gt;Shopping center is on Left (Entrance located on Wisteria Dr.)");
	d.writeln("</span>");
	d.writeln("</td></tr>"); 
	d.writeln("<tr><td align='center' valign='top'>"); 
	d.writeln("<img src='images/map_004a.gif' border='0' alt='' width='480'>");
	d.writeln("</td></tr>"); 
	d.writeln("</table>");
	d.writeln("</body></html>"); 
	d.close(); 

	// bring the window to the top 
	mapWin.focus(); 

}   
