
// Path to the AJAX servlet
var servletPath =  "/VirtualViewerJavaAJAXServer/AjaxServlet";
 
// Percentage to stop allowing users to zoom the image
var maxZoomPercent = 1000;
 
// Wait X milliseconds before requesting the zoomed image.  This exists so that if the user
// hits zoom several times quickly we spare the server load by only requesting the final zoom level
var zoomTimeout = 300; 
 
// Wait X milliseconds before displaying the "Please wait while your image is loaded." dialog
var waitDialogTimeout = 1000;
 
// Set the size and color of the "handle" used to resize annotations as well as indicate the "end zone"
// of the polygon tools.
var polygonNubSize = 10;
var polygonNubFillColor = "rgba(0,0,255,.40)";

// Turn on scroll bars for the image display.  This disables the pan tool.
var imageScrollBars = true;

// Whether or not to include annotations when sendDocument is called
var sendDocumentWithAnnotations = false;

// Error message displayed when the user inputs an invalid color string
var errorColorString = "Invalid color string.";
    
// Error message displayed when the documentId refers to an unsupported file format
var errorUnsupportedFormatString = "Unsupported file format.";

// Error message displayed when the documentId refers to an non-existent document
var errorDocumentNotFoundString = "Document not found.";

// maintain the same zoom, rotation, fit, flip, and other settings when switching between pages
var retainViewOptionsBetweenPages = true;

// The default zoom mode 
var defaultZoomMode = zoomModes.fitWindow;

// If the default zoom mode is 'fitLast', should the viewer respect that when switching 
// between documents
var fitLastBetweenDocuments = false;

// Multiple Document mode
var multipleDocMode = multipleDocModes.viewedDocuments;

var errorDeleteLayerPermissionString = "You do not have permission to delete this layer."; 
var errorRenameLayerPermissionString = "You do not have permission to rename this layer."; 
var errorCreateAnnLayerPermissionString = "You do not have permission to create annotations on this layer."; 
var errorEditAnnLayerPermissionString = "You do not have permission to edit annotations on this layer."; 
var errorLayerInvalidNameString = "Invalid layer name. Please choose a new layer name:";
var errorLayerNameExistsString = "A layer with that name already exists.";
var errorTabTooManyTabs = "Too many open tabs.";
var errorTabIndexOutOfBounds = "Tab index out of bounds.";
var errorTabCloseLastTab = "Closing last tab is not allowed.";
    
    
    
