doPic()  
		
function doPic() {
//*--------------------------------------------------------
//* FISH HOUSE 
//* Display fish icon in side column. First pic is random, next pics rotate.
//* Last image filename displayed is saved in a cookie.
//*--------------------------------------------------------                            

	var pic	= "icon-fish-lightgreen-l.gif";  			//* Default pic 
 
//*------------------------------------ 
//*  Place images in array. 
//*------------------------------------
	var p=new Array(); 	//* Pictures
	var ip = 0;  
  
	p[ip = ip + 0] = "fish-1-right.gif";   
	p[ip = ip + 1] = "fish-2-left.gif";
	p[ip = ip + 1] = "fish-1-left.gif";

	var pcount =  p.length  // no. of array elments

// 	alert("pcount=" + pcount );

	var picindex = getCookie("theicon");  
// 	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("theicon", iy); 
 	pic = p[iy];
 
// 	alert("picindex=" + picindex + " iy=" + iy + " " );
//*---------------------------------------------------------
//* FORMAT the HTML
//*--------------------------------------------------------- 

theIcon =  '<img src="../images/' +  pic +  '" width="190" height="70" border="0">';

//* thefile is the filename of the page being displayed. Resolved in /scripts/menu_data_FH_SIDE.js

if (thefile.substring(0,"wine".length) == "wine" ||
	thefile.substring(0,"rest-intro".length) == "rest-intro" ||
	thefile.substring(0,"seniors".length) == "seniors" ||
	thefile.substring(0,"takeout".length) == "takeout" ||
	thefile.substring(0,"fish-intro".length) == "fish-intro" ||
	thefile.substring(0,"fish-stories".length) == "fish-stories" ||
	thefile.substring(0,"survey".length) == "survey" ||
	thefile.substring(0,"comingsoon".length) == "comingsoon" ||
	thefile.substring(0,"functions-confirm".length) == "functions-confirm" ||
	thefile.substring(0,"fish-stories".length) == "fish-stories" ||
	thefile.substring(0,"specials".length) == "specials")	
	{
	//* Don't show icon for the page
	}	
else { 	
	document.write(theIcon);				
	}
 
} //* end doPic()

