/**
 *  Site-specific configuration settings for Highslide JS
 */

$(document).ready(function() {
  setupGalleries();
});


//hs.captionEval = 'this.a.title';
hs.captionEval = 'this.a.childNodes[0].alt';
hs.captionOverlay.position = 'bottom';
hs.captionOverlay.hideOnMouseOut = true;
hs.captionOverlay.width = '100%';
hs.headingEval = 'this.a.childNodes[0].title';

hs.registerOverlay({
  html: '<div class="closebutton removeForNormalHtml" onclick="return hs.close(this)" title="Close"></div>',
  position: 'top left',
  useOnHtml: true,
  fade: 2 // fading the semi-transparent overlay looks bad in IE
});


// gallery config object
var baseSlideShows = {
  interval: 7000,
  repeat: true,
  useControls: true,
  fixedControls: 'fit',
  overlayOptions: {
    className: 'large-dark',
    opacity: '0.75',
    position: 'top center',
    offsetX: '0',
    offsetY: '-10',
    hideOnMouseOut: true
  },
  thumbstrip: {
    mode: 'horizontal',
    position: 'below',
    relativeTo: 'image'
  }

};

hs.graphicsDir = '/js/highslide/graphics/';
hs.showCredits = false,
  hs.creditsPosition = 'bottom right';
hs.allowMultipleInstances = false;


var baseConfig = {

  outlineType : 'custom',
  //  outlineType : 'drop-shadow',
  dimmingOpacity : 0.5,
  easing : 'linearTween',
  align : 'center',
  minWidth : 800,
  padToMinWidth : true,
  dragByHeading : false,
  /** Settings for playing animation **/
  wrapperClassName : 'no-footer',
  // always use this with flash, else the movie will be not be stopped on close:
  preserveContent : false,
  /** Settings for transition effect speed **/
  transitionDuration : 200,
  expandDuration : 200,
  restoreDuration : 200,
  outlineWhileAnimating : true,

  autoplay:true,
  transitions: ['expand', 'crossfade']
};

function defineGallery(galleryName, firstThumbId) {
  return  $.extend(true, {}, baseConfig, {slideshowGroup: galleryName,thumbnailId: firstThumbId});
}

function defineShows(galleries) {
  if (!galleries || galleries.length <= 0) return;

  var slideshows = $.extend(true, {}, baseSlideShows, {slideshowGroup: galleries});
  // Add the slideshow controller
  hs.addSlideshow(slideshows);
}

function setupGalleries() {
  var shows = [];

  for (var i = 0; i < galleries.length; i++) {
    var gal = galleries[i];
    if (insertGalleryHtml(gal)) {
      shows.push(gal.id);
    }
  }

  defineShows(shows);
}

var file2entry;
function indexContent() {
  if (file2entry) return;
  file2entry = new Object();
  for (var i = 0; i < hi_content.length; i++) {
    var f = hi_content[i][0];
    var k = f.substring(f.lastIndexOf('/') + 1, f.lastIndexOf('.'));
    file2entry[k] = i;
  }
}

function getHiEntry(key) {
  var i = file2entry[key];
  return hi_content[i];
}

var configs = new Object();

function insertGalleryHtml(gal) {
  var launcher = $("#" + gal.launchid);
  if (!launcher || launcher.length <= 0) return false;

  indexContent();

  var first = gal.id + '_first';
  var config = defineGallery(gal.id, gal.launchid);
  configs[gal.launchid] = config;

  launcher.wrap('<div class="highslide-gallery" />');
  launcher.addClass('highslide');
  launcher.click(function() {
    return hs.expand(document.getElementById(first), config);
  });

  var html = '<div class="hidden-container">';
  for (var j = 0; j < gal.entries.length; j++) {
    var k = gal.entries[j];
    var e = getHiEntry(k);
    var img = e[0];
    var l = img.lastIndexOf('/');
    var d = img.lastIndexOf('.');
    var tb = img.substring(0, l + 1) + 'thumb' + img.substring(l, d) + '.jpg';
    var cp = e[1];
    var ti = e[2];

    html += '<a class="highslide" href="' + img + '"';
    if (j == 0) {
      html += ' id="' + first + '"';
    }
    html += ' onclick="return hs.expand(this, configs[\'' + gal.launchid + '\'] )">';
    html += '<img src="' + tb + '"';
    html += ' alt="' + cp + '"';
    html += ' title="' + gal.name + ' - ' + ti + '" />';
    html += '</a>';
  }
  html += '</div>';

  launcher.after(html);

  return true;
}


/*  ======================  Rarely need to change above, add galleries below ====================== */
//  Define Gallery Name, Launch Button Id, entries - [img, text-bottom, text-title]

//   entries - [img, text-bottom, text-title]
var hi_content = [
  [
    "/images/screenshots/ctxmenu.png",
    'Zoom automatically versions the thumbnails for digital assets, previewing versions becomes a snap as thumbnails don\'t ' +
      'have to be created manually from scratch',
    'Preview  all the versions of an asset Visually'
  ]
  ,
  [
    "/images/screenshots/compare.png",
    'Without the authoring tool installed, versions can be compared visually by Zoom. Reviewers can save on valuable tool licenses.',
    'Compare versions Visually'
  ]
  ,
  [
    "/images/screenshots/dir-history.png",
    'Even folders are versioned by Zoom, you can see the history of add/deletes/move/renames ' +
      'within a directory. You can even go back in time & recreate a directory as it existed then.',
    'View Folder History'
  ]
  ,
  [
    "/images/screenshots/mkcurrent.png",
    'Easily promote an older version to become the current version without copying the whole file again.' +
      ' Zoom simply adjusts the pointers in the back-end asset store to make this happen.',
    'Promote any version to be the latest!'
  ]
  ,
  [
    "/images/screenshots/search.png",
    'Easily classify changes based on the search criterion. Then quickly navigate to a specific version' +
      ' within the result table.',
    'Incremental Search within the Version History'
  ]
  ,
  [
    "/images/screenshots/start-from-os.png",
    'Zoom integrates with Mac Finder, Windows Explorer, Linux KDE Dolphin, GNome Nautilus' +
      ' to make it easy to preview versions & changes visually.',
    'Launch from file-system explorer'
  ]
  ,
  [
    "/images/screenshots/start-from-repobrowser.png",
    'Without even downloading the digital asset, quickly zero on its history using ' +
      ' the Zoom Remote Repository Browser\'s context menu',
    'Visual History from Zoom Remote Repository Browser'
  ]
  ,
  [
    "/images/screenshots/carousel.png",
    'View versions arranged as frames in an image carousel. Makes it easy to navigate version history and browse ' +
      ' metdata assoicated with a digital asset.',
    'Carousel View of Versions'
  ]
  ,
  [
    "/images/screenshots/basic.png",
    'View versions in a grid or carousel. To compare simply drag-n-drop versions into ' +
      ' the compare boxes on the right and then click analyze!',
    'View & Compare Versions'
  ]
  ,
  [
    "/images/screenshots/breadcrumb.png",
    'Zoom has plug-ins into various OS file managers. When you make any changes to' +
      ' a OS directory, Zoom automatically puts small overlay icons to help you ' +
      'visually detect the changes. In effect a breadcrumb trail of changes is created!',
    'Breadcrumb Trail using custom OS Overlay Icons'
  ]
  ,
  [
    "/images/screenshots/overlay-icons.jpg",
    'Zoom has an overlay icon for every kind of change you make to your files. For' +
      ' example an orange arrow icon shows up when you move a file to another directory',
    'OS Overlay Icons'
  ]
  ,
  [
    "/images/screenshots/maya2010-integration.png",
    'Zoom integration with Autodesk Maya allows you to browse assigned tasks, perform' +
      ' version management operations, manage reviews without leaving Maya',
    'Autdoesk Maya Plugin'
  ]
  ,
  [
    "/images/screenshots/photoshop-integration.jpg",
    'Zoom integration with Adobe CS tools like Photoshop allows you to browse assigned tasks, perform' +
      ' version management operations, manage reviews without leaving Photoshop',
    'Adobe Photoshop Plugin'
  ]
  ,
  [
    '/images/screenshots/export.png',
    'Zoom lets you convert selected versions of digital assets into file format of your choice without ' +
      ' installing the authoring tool. You can share the converted assets, via email or a web lightbox, with your' +
      ' clients, partners or team mates.',
    'Convert File Format'
  ]
  ,
  [
    '/images/screenshots/find-metadata.png',
    'Zoom Asset browser lets you specify metdata criterion to narrow your search across millions of ' +
      'assets & their versions stored in the Zoom repository',
    'Search within Metadata'
  ]
  ,
  [
    '/images/screenshots/find-projects.png',
    'You can limit your search to specific projects that you have access to. Project membership is used by Zoom to ' +
      'filter search results on the server side.',
    'Search within Projects'
  ]
  ,
  [
    '/images/screenshots/find-revinfo.png',
    'Specifying a date range is easy and so is the version range. You can go back and preview changes in the ' +
      ' past without downloading the full file for each version.',
    'Search by Date & Version Range'
  ]
  ,
  [
    '/images/screenshots/group-byauthor.png',
    'Sort assets by the author who created or last modified the version. Multiple sorting criteria can be applied' +
      ' to get a custom view of the asset repository. Blaze through millions of assets without ever downloading ' +
      ' a single file.',
    'Group Assets by Author'
  ]
  ,
  [
    '/images/screenshots/group-bydate.png',
    'Sort assets by date. Multiple sorting criteria can be applied' +
      ' to get a custom view of the asset repository. Blaze through millions of assets without ever downloading ' +
      ' a single file.',
    'Group Assets by Date'
  ]
  ,
  [
    '/images/screenshots/internal-search.png',
    'If you end up with a large number of search results, you can narrow them down within the asset browser' +
      ' application without any further communication with the server. Results can be classified via ' +
      'several criterion that are hyperlinked to make it easy to navigate. ',
    'Search within search Results'
  ]
  ,
  [
    '/images/screenshots/more-info.png',
    'Get metadata, annotations & comments attached to a version by just hovering the mouse on the plus icon',
    'Mouse over for more info'
  ]
  ,
  [
    '/images/screenshots/path-nav.png',
    'Browse assets by just drilling down the category or folder hierarchy',
    'Navigate by category or folder'
  ]

  ,
  [
    '/images/screenshots/show-cart.png',
    'Drag and drop assets into the cart icon. Selected assets in the cart can then be checked out, exported. ' +
      'Batch mode operations are easy with Zoom.',
    'Cart paradigm for batch mode'
  ]
  ,
  [
    '/images/screenshots/sort-options.png',
    'Assets in the current view can be ordered based on asset id, name, number of matching versions.',
    'Sorting Order'
  ]
  ,
  [
    '/images/screenshots/tb-size.png',
    'Specify how many assets you want to preview one a single page based on the thumbnail size.',
    'Preview size'
  ]
  ,
  [
    '/images/screenshots/vf-ctxmenu.png',
    'Selecting an asset in the center panel brings up all its matching revisions in a slick deck of cards' +
      ' like user interface. You can perform version specific operations using the context menu.',
    'Matched Versions in a deck of cards'
  ]
  ,
  [
    '/images/screenshots/vfind-web.png',
    'The asset browser can run on the desktop or inside a web browser. It allows you to search, preview, organize' +
      ' assets without the need to download large asset files on your desktop. Operations like promoting an old' +
      ' version as the current revision, can be performed at a click of the mouse.',
    'Visual Asset Browser'
  ]
  ,
  ['/images/screenshots/workflow/help-files-assign.PNG',
    'During workflow or task creation it is often useful to assign design templates, specifications or help files to the user. ' +
      'This dialog allows you to setup workflow scoped help files. For individual sub-task, help files can also be assigned' +
      'while creating the task. Any file from the repository can be selected.',
    'Help Files Assignment'
  ]
  ,
  ['/images/screenshots/workflow/manage-wf.PNG',
    'The workflow editor allows you to edit and manage multiple workflows from a central dashboard. Changes can be ' +
      'saved atomically by clicking on the save button. You can guage the progress of ' +
      'each workflow from the web dashboard.',
    'Manage multiple workflows'
  ]
  ,
  ['/images/screenshots/workflow/mk-task-wizard1.PNG',
    'Task creation wizard walks you through the various steps needed to setup a work assignment including primary owner, ' +
      'help files, specifications for the task and the actual assets that need to be worked on.',
    'Assignment creation Wizard'
  ]
  ,
  ['/images/screenshots/workflow/review-assign-users.PNG',
    'Approval task can be assigned specific users in the project or an entire role can be assigned a review. Role based' +
      ' reviews are useful when you don\'t want to bind to a reviewer early on. All the users in the role will be notified ' +
      'regarding reviews.',
    'Review creation Wizard'
  ]
  ,
  ['/images/screenshots/workflow/wf-create1.PNG',
    'Wizard for creating Workflow: Acts as the container under which workflow tasks can be nested.',
    'Wizard for creating Workflow'
  ]
  ,
  ['/images/screenshots/workflow/locked-on-start.PNG',
    'Zoom will automatically lock/reserve files that are part of an assigned task. Locks are only released when the' +
      ' task is finished and reviewed. This ensures the task owner has an exclusive access to the files they are ' +
      'working on as part of their assignment.',
    'Automatic File Locking'
  ]
  ,
  ['/images/screenshots/workflow/wf-details.PNG',
    'Workflow Details shows where in the workflow task hierarchy, does the current task fit in. You can ' +
      'browse details of any task in the workflow chain.',
    'Workflow Details'
  ]
  ,
  ['/images/screenshots/workflow/help-files.PNG',
    'Help files assigned by the lead are easy to open as they are nicely separated out in a tabbed interface.',
    'Open help files'
  ]
  ,
  ['/images/screenshots/workflow/signin-assignment.PNG',
    'Select a task and clcik on the sign-in menu option or button to commence working on the assigned task. Status on' +
      ' server will be changed once the task is started.',
    'Task Sign-in Dialog'
  ]

  ,
  ['/images/screenshots/workflow/ctxmenu-mytasks.PNG',
    'Workflow Browser allows the user to manage, prioritize, start, finish their tasks via a user interface that has' +
      ' been optimized to minimize the keystrokes needed to get work done',
    'Workflow Browser Task Menu'
  ]
  ,
  ['/images/screenshots/workflow/psd-cs3-mytasks.PNG',
    'Zoom Workflow integrates with popular third party tools to allow the user to browse and manage their tasks from ' +
      'within their favorite application. Here we have Adobe CS integration at work.',
    'Browse Tasks from Adobe Photoshop'
  ]
  ,
  ['/images/screenshots/workflow/task-progress.PNG',
    '',
    'View Overall Progress by the user'
  ]
  ,
  ['/images/screenshots/workflow/upcoming.PNG',
    'Upcoming tasks can not be started right away because of prior tasks not yet done or start date is in the future',
    'View upcoming tasks for the user'
  ]
  ,
  ['/images/screenshots/workflow/maya-mytasks.PNG',
    'Zoom Workflow integrates with popular third party tools to allow the user to browse and manage their tasks from ' +
      'within their favorite application. Here we have Autodesk Maya integration at work.',
    'Browse Tasks from  Autodesk Maya'
  ]
  ,
  ['/images/screenshots/workflow/wb-progress.PNG',
    'Zoom automatically transitions the workflow state on events like review completion, task finish. The web dashboard ' +
      'allows the user to visualize in real-time the progress of the workflow. Dragging the time slider, brings the ' +
      'workflow state at that point in time in focus.',
    'Visualize Workflow State Changes'
  ]
  ,
  ['/images/screenshots/workflow/revu-notify.jpg',
    'Zoom can use email and/or system tray to notify the user about upcoming workflow events',
    'System tray based notification'
  ]
  //WF Review Policy
  ,
  ['/images/screenshots/workflow/revu-policy.png',
    '',
    'Review Policies in Zoom'
  ]
  //Multiple rounds of approval
  ,
  ['/images/screenshots/workflow/wb-progress-done.PNG',
    'Rejection by review task#10 causes, task #8 to be started again',
    'Multiple rounds of work'
  ]
  ,
  ['/images/screenshots/workflow/reject-flow.png',
    'Rejection by second reviewer will trigger the task to be marked as started, in anticipation of re-submission',
    'Rejecting Changes'
  ]
  ,
  ['/images/screenshots/workflow/multiple-rounds.png',
    'The task was finished in two rounds or phases. The first round/phase was rejected, triggering a second round that' +
      ' was approved.',
    'Multiple rounds to finsh work'
  ]
  // Hiearachical reviews tasks
  ,
  ['/images/screenshots/workflow/hierarchical-revu-reject.PNG',
    'Zoom support hierarchy of approval tasks. An assignment can be reviewed in an hierarchy. Upper level reviewer' +
      ' can reject even if a lower level reviewer has approved.',
    'Hierarchical Review Tasks'
  ]
  // Overdue tasks
  ,
  ['/images/screenshots/workflow/due-nextweek.PNG',
    '',
    'Due Next Week'
  ]
  ,
  ['/images/screenshots/workflow/duetasks.PNG',
    '',
    'Overdue Tasks'
  ]
  // Publish
  ,
  ['/images/screenshots/workflow/publish-concept.jpg',
    'Baseline is published by the lead or supervisor; Workflow publishing is done automatically by Zoom once an asset is ' +
      'finished & approved',
    'Publishing Concepts'
  ]
  ,
  ['/images/screenshots/workflow/publish-rrn.PNG',
    'Any repository version can be promoted as the baseline published revision',
    'Publish a version'
  ]
  ,
  ['/images/screenshots/workflow/publish-tree-changes.PNG',
    'Published changes can be browsed as a tree of files and folders',
    'Published Tree'
  ]
  // clist
  ,
  ['/images/screenshots/version/chg-list-add.PNG',
    '',
    'Add files to a changelist during Commit'
  ]
  ,
  ['/images/screenshots/version/chg-list-mk.PNG',
    '',
    'Create a new Changelist'
  ]
  ,
  ['/images/screenshots/version/clist.PNG',
    '',
    'Display all the change lists created by the user'
  ]
  ,
  ['/images/screenshots/version/listwc.PNG',
    'Display a list of all the working copies and their associated Zoom server URL on the user\'s desktop',
    'Display desktop working copy list'
  ]

  // Repo Browser
  ,
  ['/images/screenshots/version/by-projects.PNG',
    '',
    'Browse remote repository by your projects'
  ]
  // Import
  ,
  ['/images/screenshots/version/import.PNG',
    '',
    'Import Dialog'
  ]
  ,
  ['/images/screenshots/version/im-ctxmenu.jpg',
    '',
    'Import via OS context menu'
  ]
  // Checkout
  ,
  ['/images/screenshots/version/maya-co.PNG',
    '',
    'Zoom Checkout from Autodesk Maya Context Menu'
  ]
  ,
  ['/images/screenshots/version/maya-co-dlg.PNG',
    '',
    'Checkout dialog from Autodesk Maya'
  ]
  ,
  ['/images/screenshots/version/project-co.PNG',
    'Project name drop down is automatically populated with projects you belong to',
    'Checkout using project name'
  ]
  ,
  ['/images/screenshots/version/task-co.PNG',
    'Task name drop down is automatically populated with tasks assigned to you that are ready to start',
    'Checkout using assigned task names'
  ]
  // Commit
  ,
  ['/images/screenshots/version/os-ci-menu.PNG',
    '',
    'Zoom Commit from OS Context Menu'
  ]
  ,
  ['/images/screenshots/version/ci-ctxmenu.PNG',
    '',
    'Commit context menu'
  ]
  ,
  ['/images/screenshots/version/tableview.PNG',
    '',
    'Table view of changed files ready to check-in'
  ]
  ,
  ['/images/screenshots/version/main-ci-dialog.PNG',
    'Changes are color coded',
    'Commit dialog'
  ]
  // Alerts
  ,
  [
    '/images/screenshots/alerts/mac-change.png',
    '',
    'Update pending alert on MacOS'
  ]
  ,
  [
    '/images/screenshots/alerts/chk-for-mods.PNG',
    '',
    'Check for incoming changes on a specified working copy folder'
  ]
  ,
  [
    '/images/screenshots/alerts/cset-notify.PNG',
    '',
    'Updates are pending for a given working copy'
  ]
  ,
  [
    '/images/screenshots/alerts/monitor-wc.PNG',
    '',
    'Add a working copy on your desktop that needs to be monitored for changes'
  ]
  ,
  [
    '/images/screenshots/alerts/wf-notify.PNG',
    '',
    'Notify user about their started and yet to be started tasks'
  ]
  ,
  [
    '/images/screenshots/alerts/wf-notify0.PNG',
    '',
    'Notify about number of tasks not yet started'
  ]
  ,
  [
    '/images/screenshots/alerts/wf-started.PNG',
    '',
    'Successfully signed-in and started an assigned task'
  ]
  ,
  [
    '/images/screenshots/alerts/wf-status-change.PNG',
    '',
    'Workflow Task status change alert'
  ]
  //cset
  ,
  [
    '/images/screenshots/cset/incoming.PNG',
    'List of pending updates for your working copy',
    'Incoming changesets from the server'
  ]
  // namespace conflict  
  ,
  [
    '/images/screenshots/namespace/conflict-proposals.PNG',
    'Zoom automatically creates meaningful proposals to resolve namespace conflicts with other ' +
      'users. Conflicts are created when multiple users rename, move or delete shared assets ' +
      'or their folders',
    'Automated proposals on namespace conflict detection'
  ]
  ,
  [
    '/images/screenshots/namespace/name-conflict-at-update.PNG',
    '',
    'Update from Zoom server triggers conflict detection'
  ]
  ,
  [
    '/images/screenshots/namespace/resolve-dlg1.PNG',
    'If during update from the server, namespace conflicts are detected then a resolve menu activates',
    'Resolve menu shows up on update conflicts'
  ]
  //project
  ,
  [
    '/images/screenshots/project/wf-byproject.png',
    'Create workflows for a specific project you administer',
    'Project based workflow'
  ]
  ,
  [
    '/images/screenshots/project/manage-project.PNG',
    'Zoom allows multiple project leads to manage any number of projects. As a project admin you can control security, ' +
      'user membership and roles.',
    'Display and edit projects you adminsiter'
  ]
  ,
  [
    '/images/screenshots/project/users2project.PNG',
    'You can add or drop users from the projects you manage easily',
    'Assign users to projects'
  ]
  ,
  [
    '/images/screenshots/project/chart-byproject.png',
    'Get real-time reports for a specific project you are involved with',
    'Scope reports and charts by project'
  ]
  ,
  [
    '/images/screenshots/project/cset-browser.png',
    'Changeset browser shows changesets for all the projects you belong to. You can quickly spot the activity in ' +
      'a given project.',
    'Sort Changesets based on projects'
  ]
  ,
  [
    '/images/screenshots/project/new-project.png',
    'As a superadmin create projects and assign project lead, branch name, sub-path the project is responsible for',
    'New project form'
  ]
  //Security
  ,
  [
    '/images/screenshots/security/edit-user.png',
    'Users in your project are displayed in an AJAX grid that can be sorted and filtered. Manage user control ' +
      'lets you add, edit or delete users.',
    'Modify User Account'
  ]
  ,
  [
    '/images/screenshots/security/mk-role.PNG',
    'Roles can be nested to reflect organization hierarchy. Six level of permissions can be granted to roles. ' +
      'Eoles can be scoped to specific projects.',
    'Create a new role'
  ]
  ,
  [
    '/images/screenshots/security/role-assign.PNG',
    'From the list of users in your project, you can select a subset of users and map them to a specific role. These ' +
      'users will then automatically inherit the permissions you have granted to that role. For instance a role ' +
      'that had only read permission will not be able to modify any assets.',
    'Assign users to a role'
  ]
  //Speed
  ,
  [
    '/images/speed-data.png',
    '',
    'Import Benchmark'
  ]
  //Web
  ,
  [
    '/images/screenshots/web/mk-wf.PNG',
    '',
    'Manage Workflows from Web Dashboard'
  ]
  ,
  [
    '/images/screenshots/web/report-gen.PNG',
    '',
    'Generate real-time reports'
  ]
  ,
  [
    '/images/screenshots/web/server-cpanel.PNG',
    '',
    'Manage Zoom Server Settings and Configuration'
  ]
  ,
  [
    '/images/screenshots/web/timesheet.png',
    '',
    'Rollup Timesheets'
  ]

  //Report
  ,
  [
    '/images/screenshots/report/most-mod-dir-pie.PNG',
    '',
    'Most Actively Modified Directory pie chart'
  ]
  ,
  [
    '/images/screenshots/report/most-mod-dir.PNG',
    '',
    'Most Actively Modified Directory bar chart'
  ]
  ,
  [
    '/images/screenshots/report/most-mod-files-pie.PNG',
    'Find out which assets are the current hotspots',
    'Most Actively Modified Files pie chart'
  ]
  ,
  [
    '/images/screenshots/report/most-mod-files.PNG',
    '',
    'Most Actively Modified Files bar chart'
  ]
  ,
  [
    '/images/screenshots/report/timesheet2.PNG',
    'Timesheets can be aggregated by user, asset, application, time spent and cost. Zoom automatically ' +
      'computes the time spent on modifying assets as part of the Zoom workflow.',
    'Rollup timesheets'
  ]
  ,
  [
    '/images/screenshots/report/top-ci.PNG',
    'Shows who checked-in the most changes during a time period',
    'Top committers pie chart'
  ]
  ,
  [
    '/images/screenshots/lock/lock-overlay.png',
    '',
    'Overlay icon indicates file status as locked'
  ]
  ,
  [
    '/images/screenshots/lock/lock-status-win.png',
    '',
    'File status dialog with lock information'
  ]
  ,
  [
    '/images/screenshots/lock/lock-status-mac.png',
    '',
    'MacOS File status dialog with lock information'
  ]
  ,
  [
    '/images/screenshots/version/up.png',
    '',
    'MacOS Update dialog'
  ]
  ,
  [
    '/images/screenshots/version/ci-mac.png',
    '',
    'MacOS Commit dialog'
  ]
  ,
  [
    '/images/screenshots/version/revert.png',
    '',
    'MacOS revert dialog'
  ]
  ,
  [
    '/images/screenshots/lock/get-lock.png',
    '',
    'MacOS Get lock dialog'
  ]
  ,
  [
    '/images/screenshots/lock/get-lock.png',
    '',
    'MacOS Get lock dialog'
  ]
  ,
  [
    '/images/screenshots/repob/repob-mac.png',
    '',
    'MacOS Repository Browser'
  ]
  ,
  [
    '/images/screenshots/version/cs5-panel.png',
    'All Adobe CS5 tools supported by Zoom have the same panel for Version Control and workflow operations.',
    'Zoom menu inside Adobe CS5 Photoshop'
  ]
  ,
  [
    '/images/screenshots/namespace/rename-log.png',
    '',
    'Namespace management'
  ]
  ,
  [
    '/images/screenshots/cs5panel/flash-preview.png',
    '',
    'Press spacebar/double click to see large previews'
  ]
  ,
  [
    '/images/screenshots/cs5panel/indd-preview.png',
    '',
    'Adobe InDesign Large Preview'
  ]
  ,
 [
   '/images/screenshots/cs5panel/status-bar.png',
   '',
   'Instant status updates'
 ]
     ,
  [
    '/images/screenshots/cs5panel/indd-link.png',
    '',
    'Link Indesign with asset revision in Zoom'
  ]
      ,
  [
    '/images/screenshots/cs5panel/vab-status.png',
    '',
    'Asset browser with local status'
  ]
      ,
  [
    '/images/screenshots/cs5panel/repob-status.png',
    '',
    'Zoom Repository with local status'
  ]
   ,
  [
    '/images/screenshots/cs5panel/add-ci-hint.png',
    'If the file is created in a local checked out project folder (also referred to as working copy) then Zoom will allow you to directly commit the file without  the need of an import step.',
    'Auto Commit Hint'
  ]
  ,
  [
    '/images/screenshots/cs5panel/ci-im-hint.png',
    'For a file created outside a local checked out project folder (also referred to as working copy), Zoom directs the user to do an import first. ',
    'Import hint'
  ]
      ,
  [
    '/images/screenshots/cs5panel/lock-warning.png',
    '',
    'File Lock Dialog'
  ]
  ,
  [
    '/images/screenshots/cs5panel/still-locked-co.png',
    '',
    'Warning if file locked'
  ]
  ,
  [
    '/images/screenshots/cs5panel/foloder-color.png',
    '',
    'Mac Finder Folder Coloring'
  ]
  ,
  [ 
    '/images/screenshots/cs5panel/mac-dock.png',
    '',
    'MacOS Docking Support'
  ]
  ,
  [
    '/images/screenshots/cs5panel/settings-def.png',
    '',
    'Settings Dialog'
  ]
];

//  Define Gallery Name/id, Launch Button Id/launchid, entries - ['img basename from hi_content'..]

var galleries = [
  {
    id: 'settings-def',  //version
    launchid: 'settings-def',
    name: 'Zoom Smart Defaults',
    category:'version',
    entries: ['settings-def']
  }
  ,
  {
    id: 'folder-color',  //version
    launchid: 'folder-color',
    name: 'Mac Enhancements',
    category:'version',
    entries: ['foloder-color', 'mac-dock']
  }
  ,
  {
    id: 'smartlock',  //version
    launchid: 'smartlock',
    name: 'Zoom',
    category:'version',
    entries: ['still-locked-co', 'lock-warning']
  }
  ,
  {
    id: 'addci',  //version
    launchid: 'addci',
    name: 'Zoom',
    category:'version',
    entries: ['add-ci-hint', 'ci-im-hint']
  }
  ,
  {
    id: 'vab-status',  //version
    launchid: 'vab-status',
    name: 'Zoom CS5 Plugin 2.8',
    category:'version',
    entries: ['vab-status', 'repob-status']
  }
  ,
  {
    id: 'status-bar',  //version
    launchid: 'status-bar',
    name: 'Zoom CS5 Plugin 2.8',
    category:'version',
    entries: ['status-bar']
  }
  ,
  {
    id: 'indd-preview',  //version
    launchid: 'indd-preview',
    name: 'Zoom CS5 Plugin 2.8',
    category:'version',
    entries: ['indd-link', 'indd-preview']
  }
  ,
  {
    id: 'flash-preview',  //version
    launchid: 'flash-preview',
    name: 'Zoom CS5 Plugin 2.8',
    category:'version',
    entries: ['flash-preview']
  }
  ,
  {
    id: 'big-preview',  //version
    launchid: 'big-preview',
    name: 'Zoom CS5 Plugin 2.8',
    category:'version',
    entries: ['flash-preview', 'indd-preview']
  }
  ,
  {
    id: 'name-gal',  //version
    launchid: 'name-gal',
    name: 'Evolphin Zoom Version Control',
    category:'version',
    entries: ['rename-log']
  }
  ,
  {
    id: 'repob-gal',  //version
    launchid: 'repob-gal',
    name: 'Evolphin Zoom Version Control',
    category:'repobrowser',
    entries: ['repob-mac', 'by-projects']
  }
  ,
  {
    id: 'cset-gal',  //version
    launchid: 'cset-gal',
    name: 'Evolphin Zoom Version Control',
    category:'changeset',
    entries: ['cset-browser','incoming']
  }
  ,
  {
    id: 'lock-gal',  //version
    launchid: 'lock-gal',
    name: 'Evolphin Zoom Version Control',
    category:'locking',
    entries: ['get-lock','lock-status-mac', 'lock-overlay', 'lock-status-win']
  }
  ,
  {
    id: 'revert-gal',
    launchid: 'revert-gal',
    name: 'Evolphin Zoom Version Control',
    category:'version',
    entries: ['revert']
  },
  {
    id: 'up-gal',
    launchid: 'up-gal',
    name: 'Evolphin Zoom Version Control',
    category:'version',
    entries: ['up']
  },
  {
    id: 'report-gal',
    launchid: 'report-gal',
    name: 'Evolphin Zoom Reports',
    category:'feature',
    entries: ['most-mod-dir-pie', 'most-mod-dir', 'most-mod-files-pie', 'most-mod-files',
      'timesheet2', 'top-ci']
  }
  ,
  {
    id: 'web-gal',
    launchid: 'web-gal',
    name: 'Zoom Web Dashboard',
    category:'feature',
    entries: ['mk-wf', 'report-gen', 'server-cpanel', 'manage-project', 'timesheet']
  }
  ,
  {
    id: 'speed-gal',
    launchid: 'speed-gal',
    name: 'Evolphin Zoom Performance',
    category:'feature',
    entries: ['speed-data']
  }
  ,
  {
    id: 'security-gal',//feature and security
    launchid: 'security-gal',
    name: 'Evolphin Zoom Security',
    category:'feature security',
    entries: ['edit-user', 'mk-role', 'role-assign']
  }
  ,
  {
    id: 'security-gal',//feature and security
    launchid: 'securityhi-gal',
    name: 'Evolphin Zoom Security',
    category:'feature security',
    entries: ['edit-user', 'mk-role', 'role-assign']
  },
  {
    id: 'prj-gal',
    launchid: 'prj-gal',
    name: 'Evolphin Zoom Project Management',
    category:'feature',
    entries: ['by-projects', 'project-co', 'find-projects', 'manage-project', 'users2project', 'chart-byproject',
      'cset-browser', 'new-project']
  }
  ,
  {
    id: 'nren-gal',   //namespace
    launchid: 'nren-gal',
    name: 'Evolphin Zoom Version Control',
    category:'namespace',
    entries: ['name-conflict-at-update', 'resolve-dlg1', 'conflict-proposals']
  }
  ,
  {
    id: 'nmhi-gal',
    launchid: 'nmhi-gal',
    name: 'Evolphin Zoom Version Control',
    category:'feature',
    entries: ['name-conflict-at-update', 'conflict-proposals']
  }
  ,
  {
    id: 'vcs-gal',  //version
    launchid: 'vcs-gal',
    name: 'Evolphin Zoom Version Control',
    category:'version',
    entries: ['incoming','lock-status-mac', 'lock-overlay',  'publish-rrn', 'publish-tree-changes']              
  }
  ,
  {
    id: 'val-gal', //version
    launchid: 'val-gal',
    name: 'Evolphin Zoom Version Control',
    category:'version',
    entries: ['mac-change', 'chk-for-mods', 'cset-notify', 'monitor-wc', 'wf-notify', 'wf-notify0', 'wf-started', 'wf-status-change']
  }
  ,
  {
    id: 'vci-gal',  //version
    launchid: 'vci-gal',
    name: 'Evolphin Zoom Version Control',
    category:'version',
    entries: ['os-ci-menu', 'ci-mac', 'ci-ctxmenu', 'tableview', 'main-ci-dialog']
  }
  ,
  {
    id: 'vhi-gal',
    launchid: 'vhi-gal',
    name: 'Evolphin Zoom Version Control',
    category:'feature',
    entries: ['main-ci-dialog', 'maya-co-dlg', 'by-projects', 'chk-for-mods']
  }
  ,
  {
    id: 'vco-gal',  //version
    launchid: 'vco-gal',
    name: 'Evolphin Zoom Version Control',
    category:'version',
    entries: ['maya-co', 'maya-co-dlg', 'project-co', 'task-co']
  }
  ,
  {
    id: 'vim-gal', //version
    launchid: 'vim-gal',
    name: 'Evolphin Zoom Version Control',
    category:'version',
    entries: ['import', 'im-ctxmenu']
  }
  ,
  {
    id: 'vrb-gal',  //version
    launchid: 'vrb-gal',
    name: 'Evolphin Zoom Version Control',
    category:'version',
    entries: ['by-projects', 'start-from-repobrowser']
  }
  ,
  {
    id: 'vwc-gal',  //version
    launchid: 'vwc-gal',
    name: 'Evolphin Zoom Version Control',
    category:'version',
    entries: ['listwc', 'clist','chg-list-mk', 'chg-list-add']
  }
,
  {
    id: 'clist-gal',  //version
    launchid: 'clist-gal',
    name: 'Evolphin Zoom Version Control',
    category:'changelist',
    entries: ['clist','chg-list-mk', 'chg-list-add']
  }
  ,
  {
    id: 'wfpub-gal', //workflow
    launchid: 'wfpub-gal',
    name: 'Evolphin Zoom Workflow',
    category:'workflow',
    entries: ['publish-concept','publish-rrn', 'publish-tree-changes']
  }
  ,
  {
    id: 'wfhi-gal',
    launchid: 'wfhi-gal',
    name: 'Evolphin Zoom Workflow',
    category:'feature',
    entries: ['ctxmenu-mytasks', 'signin-assignment','help-files-assign','publish-rrn']
  }
  ,
  {
    id: 'wfod-gal', //workflow
    launchid: 'wfod-gal',
    name: 'Evolphin Zoom Workflow',
    category:'workflow',
    entries: ['due-nextweek','duetasks']
  }
  ,
  {
    id: 'wfhier-gal', //workflow
    launchid: 'wfhier-gal',
    name: 'Evolphin Zoom Workflow',
    category:'workflow',
    entries: ['hierarchical-revu-reject', 'wb-progress']
  }
  ,
  {
    id: 'wfrounds-gal',  //workflow
    launchid: 'wfrounds-gal',
    name: 'Evolphin Zoom Workflow',
    category:'workflow',
    entries: ['wb-progress-done', 'reject-flow', 'multiple-rounds']
  }
  ,
  {
    id: 'wfrevu-gal', //worklfow
    launchid: 'wfrevu-gal',
    name: 'Evolphin Zoom Workflow',
    category:'workflow',
    entries: ['revu-policy', 'review-assign-users']
  }
  ,
  {
    id: 'wfauto-gal',  //workflow
    launchid: 'wfauto-gal',
    name: 'Zoom Desktop Workflow Browser',
    category:'workflow',
    entries: ['wf-details', 'locked-on-start','wb-progress']
  }
  ,
  {
    id: 'wfdesk-gal',   //workflow
    launchid: 'wfdesk-gal',
    name: 'Zoom Desktop Workflow Browser',
    category:'workflow',
    entries: ['ctxmenu-mytasks', 'signin-assignment', 'upcoming', 'help-files', 'psd-cs3-mytasks', 'maya-mytasks', 'task-progress', 'revu-notify']
  }
  ,
  {
    id: 'wfedit-gal', //workflows
    launchid: 'wfedit-gal',
    name: 'Evolphin Zoom Workflow Editor',
    category:'workflow',
    entries: ['wf-create1', 'help-files-assign', 'mk-task-wizard1', 'review-assign-users', 'manage-wf']
  }
  ,
  {
    id: 'visu-ver',
    launchid: 'visuver-gal',
    name: 'Evolphin Zoom - Visual Versioning',
    category:'visual',
    entries: ['cs5-panel', 'carousel', 'compare', 'vfind-web', 'internal-search', 'indd-preview']
  }
  ,
  {
    id: 'vhist-gallery',//visual //Gallery Unique Name/Id
    launchid: 'vhist-gal',    //Button or Img id from which gallery will be launched
    name: 'Evolphin Zoom Visual History',
    category:'visual',
    entries: ['ctxmenu','carousel', 'mkcurrent', 'search', 'dir-history', 'start-from-repobrowser']
  }
  ,
  {
    id: 'vcmp-gallery',
    launchid: 'vcmp-gal',  //visual
    name: 'Evolphin Zoom Visual Log',
    category:'visual',
    entries: ['basic', 'compare']
  }
  ,
  {
    id: 'visualhi-gal',
    launchid: 'visualhi-gal',
    name: 'Work Visually',
    category:'feature',
    entries: ['vfind-web','group-bydate','compare', 'mkcurrent', 'flash-preview' ]
  }
  ,
  {
    id: 'vprvu-gallery',
    launchid: 'vprvu-gal',     //visual
    name: 'Evolphin Zoom Asset Browser',
    category:'visual',
    entries: ['vfind-web','more-info', 'find-metadata','export','find-projects','find-revinfo','group-byauthor',
      'group-bydate','internal-search','path-nav','show-cart',
      'sort-options','tb-size','vf-ctxmenu']
  }
  ,
  {
    id: 'osi-gallery',
    launchid: 'osi-gal', //visual
    name: 'Evolphin Zoom Operating System Integration',
    category:'visual',
    entries: ['start-from-os', 'foloder-color', 'mac-dock', 'breadcrumb', 'overlay-icons']
  }
  ,
  {
    id: 'tplug-gallery',
    launchid: 'tplug-gal', //visual
    name: 'Evolphin Zoom 3rd Party Tool Plugins',
    category:'visual',
    entries: ['maya2010-integration', 'photoshop-integration']
  }
];

