function openPopup(fileName, type)
{
 // type is being used to classify the popup window
 // by internal application. Some popups are for announcements,
 // some for zooming pictures. The primary functional distinction
 // between types is the width and height. I was unable to create
 // a reliable means of closing a popup window and so I can only
 // change the content of an open window, not its size (or any
 // other attribute). Therefore, popups will be classified by type
 // so that I can reuse them without the need to close them.
 
 var width = 0;
 var height = 0;
 switch (type)
 {
  case 'announcement':
  {
   width = 363;
   height = 363;
   break;
  }
  
  case 'location_zoom':
  {
   width = 500;
   height = 350;
   break;
  }
  
  default:
  {
   alert('That link could not be opened. Sorry for any inconvenience.');
  }
  
 }// switch (type)
    
 window.open(fileName,
             type, 
             'height='+ height +',width='+ width +',menubars-no,resizable=no,scrollbars=no,status=no,toolbar=no');
}// function openComingSoon()

function openAnnouncement()
{
 openPopup('popups/grilled_chicken.html', 'announcement');
}// function openAnnouncement

function openLocationZoom(fileName)
{
 openPopup(fileName, 'location_zoom');
}// function openAnnouncement