//Window definitions for this site
function popupWindow(uniqueID,URL,windowSize){
  var attributes = '';
  switch(windowSize){
    case 'small':
      attributes = 'width=400,height=400,location=no,toolbar=no,menubar=no,resizable=yes,scrollbars=yes';
      break;
    case 'large':
      attributes = 'width=650,height=500,location=no,toolbar=no,menubar=no,resizable=yes,scrollbars=yes';
      break;
    case 'chart':
      attributes = 'width=730,height=520,location=no,toolbar=no,menubar=no,resizable=yes,scrollbars=yes';
      break;
    case 'mynavs':
      attributes = 'width=400,height=500,location=no,toolbar=no,menubar=no,resizable=yes,scrollbars=yes';
      break;
    case 'photo':
      attributes = 'width=650,height=850,location=no,toolbar=no,menubar=no,resizable=yes,scrollbars=yes';
      break;
    default:
      attributes = '';
      break;
  }
  window.open(URL,uniqueID,attributes);
}


//External link requires a message
function popupWindowExternal(uniqueID, url, windowSize){
  var externalLinkMsg = 'You are now leaving the Flaherty and Crumrine, Inc. website.';
  if(confirm(externalLinkMsg)){
    //Open new window
    popupWindow(uniqueID, url, windowSize);
  }else{ 
    // User Canceled
  }
}