doPic()  
		
function doPic() {
//*--------------------------------------------------------
//* FISH HOUSE 
//* Display food pics and captions. First pic is random, next pics rotate.
//* Last image filename displayed is saved in a cookie.
//*
//* 2008-08-12 Remove Big Cowboy steak
//*--------------------------------------------------------                            

	var pic	= "x-steamed-kingcrab-platter";  			//* Default pic 
	var cap	= "Steamed King Crab<br>Steamed and served with fresh lemon and drawn butter for dipping"; 
	var tag = "<br><br><font size=2><i><nobr>Reservations and take-out</nobr></i><br><img src='../images/spacer.gif' width=1 height=5><br>905-948-1982</font>"	 

//*------------------------------------ 
//*  Place images in array. 
//*------------------------------------
	var p=new Array(); 	//* Pictures
	var c=new Array();  //* Captions
	var t=new Array();  //* Title
	var d=new Array();  //* Showpic dimensions of large pic
 
	var ip = 0;  
	var ic = 0;
	var it = 0;
	var id = 0;
  
//	p[ip] = "x-steamed-kingcrab-platter";  
//	d[id] = "601,429";
//	t[it] = "<b>Steamed King Crabxxx</b>";
//	c[ic] = "<br>Steamed and served with fresh lemon and drawn butter for dipping.";  
	
	p[ip = ip + 0] = "x-after-eight-baked-cheesecake";
	d[id = id + 0] = "601,484";
	t[it = it + 0] = "<b>After Eight<br>Phyllo Wrap Cheesecake</b>";
	c[ic = ic + 0] = "<br>Chocolate mint Baileys<br>and chocolate chips<br>baked in a phyllo pastry.";	

	p[ip = ip + 1] = "x-anglehhair-seafood";
	d[id = id + 1] = "599,387";
	t[it = it + 1] = "<b>Angel Hair & Seafood</b>";
	c[ic = ic + 1] = "<br>Lobster, shrimp, sea scallops, mussels and herbs<br>tossed in a rosé sauce.";
	
	p[ip = ip + 1] = "x-crispy-softshell-crab";
	d[id = id + 1] = "601,623";
	t[it = it + 1] = "<b>Crispy Softshell Crab</b>";	
	c[ic = ic + 1] = "<br>With Asian honey-garlic,<br>rice wine, cucumber<br>and crunchy sprouts.";	 

	p[ip = ip + 1] = "x-apple-crumble";
	d[id = id + 1] = "599,599";
	t[it = it + 1] = "<b>Apple Crumble</b>";		
	c[ic = ic + 1] = "<br>Served with<br>vanilla sauce and gelato.";
//* 5		
	p[ip = ip + 1] = "x-bbq-baby-ribs";
	d[id = id + 1] = "599,481";
	t[it = it + 1] = "<b>BBQ Baby Back Ribs</b>";		
	c[ic = ic + 1] = "<br>Full rack glazed with our<br>BBQ sauce, served with<br>fresh cut fries, cole slaw<br>and Chef’s vegetables.";
	
	p[ip = ip + 1] = "x-boston-seafood-platter";
	d[id = id + 1] = "599,427";
	t[it = it + 1] = "<b>Boston Seafood Platter</b>";	
	c[ic = ic + 1] = "<br>Lobster tail, tiger shrimp, scallops, king crab legs <br>and grilled salmon.";	
	
	p[ip = ip + 1] = "x-cake";
	d[id = id + 1] = "599,522";
	t[it = it + 1] = "<b>Tempting Dessert</b>";	
	c[ic = ic + 1] = "<br>Just one of the<br>delectable offerings<br>on our dessert menu.";	
	
	p[ip = ip + 1] = "x-halibut&chips";
	d[id = id + 1] = "600,417";
	t[it = it + 1] = "<b>Halibut & Chips</b>";	
	c[ic = ic + 1] = "<br>Crispy battered halibut<br>served with cole slaw,<br>fresh lemon & tartar sauce.";	
	
	p[ip = ip + 1] = "x-lobster";
	d[id = id + 1] = "601,500";
	t[it = it + 1] = "<b>Whole Live East Coast Lobster</b>";	
	c[ic = ic + 1] = "<br>Available grilled,<br>steamed or broiled.";	
//* 10	
	p[ip = ip + 1] = "x-seafood-risotto";
	d[id = id + 1] = "600,409";
	t[it = it + 1] = "<b>Fish House Daily Risotto</b>";	
	c[ic = ic + 1] = "<br>The Chef’s daily preparation.";
	
	p[ip = ip + 1] = "x-shrimp-cocktail";
	d[id = id + 1] = "325,604";
	t[it = it + 1] = "<b>Jumbo Shrimp Cocktail</b>";	
	c[ic = ic + 1] = "<br>A half pound of<br>jumbo shrimp served<br>with zesty cocktail sauce.";	
	
//	p[ip = ip + 1] = "x-steak&jumbo-shrimp";
//	c[ic = ic + 1] = "<b>Steak and Jumbo Shrimp</b><br>Surf your Turf with<br>Canadian AAA top sirloin<br>steak & broiled ancho<br>marinated jumbo shrimp.";	
	
	p[ip = ip + 1] = "x-steamed-kingcrab-platter";
	d[id = id + 1] = "601,429";
	t[it = it + 1] = "<b>Steamed King Crab</b>";	
	c[ic = ic + 1] = "<br>Steamed and served with<br>fresh lemon and<br>drawn butter for dipping.";
	
	p[ip = ip + 1] = "x-tai-mango-salad";
	d[id = id + 1] = "601,455";
	t[it = it + 1] = "<b>Tai Mango Shrimp Salad</b>";	
	c[ic = ic + 1] = "<br>Fresh greens, mango and sautéed shrimp tossed in a Thai peanut vinaigrette.";
//* 15
//	p[ip = ip + 1] = "x-the-bigboy-cowboy-steak";
//	d[id = id + 1] = "600,571";
//	t[it = it + 1] = "<b>The Big Boy Cowboy Steak</b>";	
//	c[ic = ic + 1] = "<br>Bone-in Canadian<br>AAA steak<br>brushed with our<br>special steak-spice.";

	p[ip = ip + 1] = "x-tiger-shrimp&halibut";
	d[id = id + 1] = "599,428";
	t[it = it + 1] = "<b>Tiger Shrimp & Halibut</b>";	
	c[ic = ic + 1] = "<br>Lightly hand-breaded<br>shrimp and scallops<br>served with cole slaw,<br>fresh lemon & tartar sauce.";

	p[ip = ip + 1] = "x-viking-smoked-salmon";
	d[id = id + 1] = "600,377";
	t[it = it + 1] = "<b>Viking Smoked Salmon</b>";	
	c[ic = ic + 1] = "<br>Smoked jalapeno tzatziki sauce, Bermuda onions, capers, greens and pumpernickel.";
	
	p[ip = ip + 1] = "x-whole-red-snapper";
	d[id = id + 1] = "602,371";
	t[it = it + 1] = "<b>Whole Red Snapper</b>";	
	c[ic = ic + 1] = "<br>Prepared just the way<br>you like it – broiled, grilled, pan-fried, poached,<br>cedar planked,<br>lemon peppered or blackened.";	
 	
// 	test = 18;
	var pcount =  p.length  // no. of array elments
	var ccount =  c.length  
	
// 	alert("pcount=" + pcount );

	var picindex = getCookie("thepic");  
// 	alert("0 picindex=" + picindex );

//* get random pic the first time	
  	if (picindex == null || picindex == "NaN" || picindex == "") {
  		picindex = get_random(pcount); 
  	}
  	
 	picindex = parseInt(picindex);  // Converts string to a number
 
 	var iy = picindex + 1;
 	if (iy >= pcount) {iy = 0}; 
 	
 	setCookie("thepic", iy); 
//  	iy = 2;   //* For testing a specific entry
 	pic = p[iy];
 	cap = c[iy];
 	tit = t[iy];  //Title: Name of Dish
 	dim = d[iy]
 
// 	alert("picindex=" + picindex + " iy=" + iy + " " );
//*---------------------------------------------------------
//* FORMAT the HTML
//*--------------------------------------------------------- 

	theFoodThumb =  '<img src="../images/' +  pic +  '.jpg" width="180" height="194" border="0">';
	
//	theFood = '<a href="javascript:showpic(\'' + pic + '\',' + dim + ')">' + theFoodThumb + '</a>';
	
	theFood = 'Click image for larger view<br><a href="javascript:showpic(\'' + pic + '\',' + dim  + ',\'' +  tit  + '\')">' + theFoodThumb + '</a>';
	
// 	alert(theFood);
	
//	showpic('filename.jpg',100,200,'The Title')
	
	theFood  = theFood + "<br>" + tit + cap + tag;	
	document.write(theFood);				
 
} //* end doPic()

 
function showpic(pic,w,h,t) {
//*******************************************************************************
//	Display a window with big pic 
//*******************************************************************************
	var wsave = w;
	var h = h + 90;
	var w = w + 60;
	theTitle = t;
	
	//alert(pic);
	
	thePic = "../images/" + pic + "-lg.jpg";
//	thePic = 'asdfasdfasdf<br><a href="javascript:window.close()"><img src="../images/' + pic + '-lg.jpg"></a>';
//	alert(thePic);
	
	title = "&nbsp;&nbsp;&nbsp; Click image to close window&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
	var data = '<html><head>';
 
 	data +='<link rel="stylesheet" href="../scripts/TFH.css">';
 	data +='</head>';
	data += '<title>' + title + '</title><body bgcolor="#103063" leftmargin=0 topmargin=0 marginheight=0 ';
	data += '';
	data += '<br>';	
	data += '<center>';
	data += theTitle; //* Food Label 
	data += '<a href="javascript:self.close()" onMouseOver="self.status=\'Click on image to close window.\'; return true" onMouseOut="self.status=\'\'; return true">';
	data += '<img src="../images/' + thePic + '" alt="Click image to close window." border="1"></a></center>';	
	data += '</td></tr></table>';
	data += '</body></html>';	
 
	var newWindow = window.open('','newWin', "width=" + w + ",height=" + h + ",scrollbars=yes,status=yes,resizable=yes", "alwaysRaised");	
 	
	newWindow.document.write(data);
	newWindow.document.close('newWin'); //* Close the data stream
	newWindow.resizeTo(w,h);			//* Resize the window for latest image 
	newWindow.focus(); 					//* Bring to front
 
}
 	
function showpicOLD(pic,w,h) {
//*******************************************************************************
//	Display a window with big pic 
//*******************************************************************************
	var wsave = w;
	var h = h + 50;
	var w = w + 40;
	
	//alert(pic);
	
	thePic = "../images/" + pic + "-lg.jpg";
	thePic = 'asdfasdfasdf<br><a href="javascript:window.close()"><img src="../images/' + pic + '-lg.jpg"></a>';
	alert(thePic);
	
	newWindow=window.open(thePic,"newwin","width=" + w + ",height=" + h + ",menubar=yes,location=no,toolbar=no,scrollbars=yes,status=yes,resizable=yes");
  	
  	newWindow.focus(); 					//* Bring to front
	
	return; 

}	
