<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">
var tours = {};
var notify_end_tour = true;

if(window.jQuery)
{

var tour_ids = ['add_event', 'manage_facilities_by_scheduler', 'add_facility', 'add_location', 'manage_groups', 'add_group_schedulers', 'add_group_members','add_scheduler_through_facilities', 'add_people', 'getting_started_1', 'getting_started_2', 'manage_equipment', 'setup_tags', 'add_profile_photo','setup_profile', 'approval_workflow', 'move_facilities', 'quick_admin_tour', 'add_logo', 'add_community_member', 'setup_azure_ad_or_g_suite', 'connect_website', 'enable_weekly_member_emails', 'send_announcements', 'setup_facility_rentals', 'left_hand_nav_walkthrough', 'add_people2', 'add_page','pages_overview', 'customize_account', 'my_organization_overview', 'people_overview', 'event_type_overview', 'department_overview', 'activity_overview', 'add_event_type', 'add_department', 'add_activity', 'setup_transportation', 'setup_gsuite', 'setup_azure_ad','facilities_overview','groups_overview','equipment_overview','location_overview','my_schedule_overview','inbox_overview', 'my_profile_overview','public_tour','add_facility_rental','add_event_list','upgrade_tour','event_wizard_config','conflict_view'];

$(function()
{
  // var ui = $('#ui').val();

  var top_bar_placement = 'right';
  // var top_bar_placement = 'bottom';

  var tour_path_prefix = document.location.pathname + '?';

  var debug_tours = false;

  var tour_template = '&lt;div class="popover" role="tooltip"&gt; &lt;button class="btn btn-sm btn-default" style="float: right; border: 0px;" data-role="end"&gt;&amp;times;&lt;/button&gt; &lt;div class="arrow"&gt;&lt;/div&gt; &lt;h3 class="popover-title"&gt;&lt;/h3&gt; &lt;div class="popover-content"&gt;&lt;/div&gt; &lt;div class="popover-navigation"&gt; &lt;div class="btn-group"&gt; &lt;button class="btn btn-sm btn-default" data-role="prev"&gt;&amp;laquo; Prev&lt;/button&gt; &lt;button class="btn btn-sm btn-default" data-role="next"&gt;Next &amp;raquo;&lt;/button&gt; &lt;button class="btn btn-sm btn-default" data-role="pause-resume" data-pause-text="Pause" data-resume-text="Resume"&gt;Pause&lt;/button&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt;';
  var wide_tour_template = '&lt;div class="popover popover_wide" role="tooltip"&gt; &lt;button class="btn btn-sm btn-default" style="float: right; border: 0px;" data-role="end"&gt;&amp;times;&lt;/button&gt; &lt;div class="arrow"&gt;&lt;/div&gt; &lt;h3 class="popover-title"&gt;&lt;/h3&gt; &lt;div class="popover-content"&gt;&lt;/div&gt; &lt;div class="popover-navigation"&gt; &lt;div class="btn-group"&gt; &lt;button class="btn btn-sm btn-default" data-role="prev"&gt;&amp;laquo; Prev&lt;/button&gt; &lt;button class="btn btn-sm btn-default" data-role="next"&gt;Next &amp;raquo;&lt;/button&gt; &lt;button class="btn btn-sm btn-default" data-role="pause-resume" data-pause-text="Pause" data-resume-text="Resume"&gt;Pause&lt;/button&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt;';
  var end_tour_template = '&lt;div class="popover" role="tooltip"&gt; &lt;div class="arrow"&gt;&lt;/div&gt; &lt;h3 class="popover-title"&gt;&lt;/h3&gt; &lt;div class="popover-content"&gt;&lt;/div&gt; &lt;div class="popover-navigation"&gt; &lt;div class="btn-group"&gt; &lt;button class="btn btn-sm btn-default" data-role="prev"&gt;&amp;laquo; Prev&lt;/button&gt; &lt;button class="btn btn-sm btn-default" data-role="next"&gt;Next &amp;raquo;&lt;/button&gt; &lt;button class="btn btn-sm btn-default" data-role="pause-resume" data-pause-text="Pause" data-resume-text="Resume"&gt;Pause&lt;/button&gt; &lt;/div&gt; &lt;button class="btn btn-sm btn-default" data-role="end"&gt;End tour&lt;/button&gt; &lt;/div&gt; &lt;/div&gt;';
  var end_wide_tour_template = '&lt;div class="popover popover_wide" role="tooltip"&gt; &lt;div class="arrow"&gt;&lt;/div&gt; &lt;h3 class="popover-title"&gt;&lt;/h3&gt; &lt;div class="popover-content"&gt;&lt;/div&gt; &lt;div class="popover-navigation"&gt; &lt;div class="btn-group"&gt; &lt;button class="btn btn-sm btn-default" data-role="prev"&gt;&amp;laquo; Prev&lt;/button&gt; &lt;button class="btn btn-sm btn-default" data-role="next"&gt;Next &amp;raquo;&lt;/button&gt; &lt;button class="btn btn-sm btn-default" data-role="pause-resume" data-pause-text="Pause" data-resume-text="Resume"&gt;Pause&lt;/button&gt; &lt;/div&gt; &lt;button class="btn btn-sm btn-default" data-role="end"&gt;End tour&lt;/button&gt; &lt;/div&gt; &lt;/div&gt;';

  var my_org_title = 'My Organization';

  var config_ui = document.getElementById('config_ui').value;

  if(config_ui == 3 || config_ui == '3') my_org_title = 'Settings';

  tours['add_event'] = new Tour({
    name: "add_event",
    storage: window.sessionStorage,
    template: tour_template,
    onStart: function(_tour)
      {
        $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_start&amp;id=add_event');

        window.sessionStorage.setItem('last_tour', 'add_event');
      },
    onEnd: function(_tour)
      {
        _tour._removeState('current_step');
        _tour._removeState('end');

        window.sessionStorage.removeItem('last_tour');

        if(notify_end_tour) $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_end&amp;id=add_event');
      },
    steps: [
      {
        element: "#top_bar_center a[href\*='type=event&amp;action=add']:visible",
        skip: function()
          {
            if(document.location.href.indexOf('type=event&amp;action=add') &gt;= 0)
            {
              return true;
            }
            return false;
          },
        title: "",
        content: "Click Add Event",
        placement: "right",
        backdrop: true,
        reflex: true,
        hideNext: true
      },
      {
        skip: function()
          {
            if($('#featured_image_data_label').val() != 1)
            {
              return true;
            }
            return false;
          },
        path: tour_path_prefix + 'type=event&amp;action=add',
        redirect: true,
        element: '#featured_image_data_label',
        title: "",
        content: "Enter a featured image for this event.",
        placement: "bottom"
      },
      {
        path: tour_path_prefix + 'type=event&amp;action=add',
        redirect: true,
        element: 'input#name',
        title: "",
        content: "Title of the event",
        placement: "bottom"
      },
      {
        path: tour_path_prefix + 'type=event&amp;action=add',
        redirect: true,
        element: '#description_reveal:visible, #description_tbl:visible',
        title: "",
        content: "Describe your event.  This description will show up on the event details page.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=event&amp;action=add',
        redirect: true,
        element: 'input#form_date_start:visible',
        title: "",
        content: "Choose the date of your event.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=event&amp;action=add',
        redirect: true,
        element: 'input#time_start:visible',
        title: "",
        content: "Enter a start time.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=event&amp;action=add',
        redirect: true,
        element: 'input#time_end:visible',
        title: "",
        content: "Enter the time your event ends.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=event&amp;action=add',
        redirect: true,
        element: 'input#private_checkbox:visible:first',
        title: "",
        content: "If your event should not be visible to the public, check this box.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=event&amp;action=add',
        redirect: true,
        element: 'input#all_day_checkbox',
        title: "",
        content: "Check this box for an all day event.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=event&amp;action=add',
        redirect: true,
        element: 'input#recurs_checkbox:visible',
        title: "",
        content: "Check this box to make a recurring event.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=event&amp;action=add',
        redirect: true,
        element: 'input#multi_day_checkbox',
        title: "",
        content: "Check this box if your event goes all through the night and end on another day.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=event&amp;action=add',
        redirect: true,
        element: 'input#setup_breakdown_checkbox',
        title: "",
        content: "Check this box to enter setup and breakdown times to your event.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=event&amp;action=add',
        redirect: true,
        element: 'input#depart_return_checkbox',
        title: "",
        content: "Check this box to enter depart and return times to your event.",
        placement: "top"
      },
      {
        skip: function()
          {
            if($('#key_date_checkbox').val() != 1)
            {
              return true;
            }
            return false;
          },
        path: tour_path_prefix + 'type=event&amp;action=add',
        redirect: true,
        element: 'input#key_date_checkbox',
        title: "",
        content: "Check this box to make this event a Key Date.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=event&amp;action=add',
        redirect: true,
        element: '#locations_add:visible',
        title: "",
        content: "Add the location of your event.",
        placement: "right"
      },
      {
        path: tour_path_prefix + 'type=event&amp;action=add',
        redirect: true,
        element: '#locations_search_browse_input:visible',
        title: "",
        content: "Search for the location of your event here or...",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=event&amp;action=add',
        redirect: true,
        element: '#locations_section_cancel_button:visible',
        skip: function()
          {
            if($('#locations_section_cancel_button .chevron_up').length &lt; 1)
            {
              return true;
            }
            return false;
          },
        title: "",
        content: "... close the search results first and then ...",
        placement: "top",
        reflex: true
      },
      {
        path: tour_path_prefix + 'type=event&amp;action=add',
        redirect: true,
        element: '#locations_section_cancel_button:visible',
        title: "",
        content: "... browse through your facilities and other locations you've used before by clicking here.",
        placement: "top",
        reflex: true
      },
      {
        path: tour_path_prefix + 'type=event&amp;action=add',
        redirect: true,
        element: '#groups_add:visible',
        title: "",
        content: "Add the participants of your event.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=event&amp;action=add',
        redirect: true,
        element: '#description_reveal:visible, #description_tbl:visible',
        title: "",
        content: "Describe your event.  This description will show up on the event details page.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=event&amp;action=add',
        redirect: true,
        element: "input[name='toggle_viewing_groups']:visible:first",
        title: "",
        content: "If your event should not be visible to the public, choose private and then select the viewing groups that should be able to view it.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=event&amp;action=add',
        redirect: true,
        element: "#owners_add:visible",
        title: "",
        content: "Owners are the user groups that are permitted to edit this event if they have edit permissions.  Leave this field as is.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=event&amp;action=add',
        redirect: true,
        element: "#about_container_title:visible",
        title: "",
        content: "Click here to open the 'More Options' section wher you'll see optional details you can add to the event.",
        placement: "top",
        reflex: true
      },
      {
        path: tour_path_prefix + 'type=event&amp;action=add',
        redirect: true,
        element: "#tags_add:visible",
        title: "",
        content: "For example - you can use additional tags if you wish to specify a department, activity, or event type to your event.  These can be useful later if you or others wish to sort and filter events.",
        placement: "top",
        delay: 500
      },
      {
        path: tour_path_prefix + 'type=event&amp;action=add',
        redirect: true,
        element: "#event_finish_button_container_inner:visible",
        title: "",
        content: "Click here to add your event.",
        placement: "right",
        hideNext: true,
        template: end_tour_template
      }
    ],
    debug: debug_tours
  });

  tours['add_event_list'] = new Tour({
    name: "add_event_list",
    storage: window.sessionStorage,
    template: tour_template,
    onStart: function(_tour)
      {
        $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_start&amp;id=add_event_list');

        window.sessionStorage.setItem('last_tour', 'add_event_list');
      },
    onEnd: function(_tour)
      {
        _tour._removeState('current_step');
        _tour._removeState('end');

        window.sessionStorage.removeItem('last_tour');

        if(notify_end_tour) $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_end&amp;id=add_event_list');
      },
    steps: [
      {
        element: "#top_bar_center a[href\*='type=schedules&amp;action=add_simple']:visible",
        skip: function()
          {
            if(document.location.href.indexOf('type=schedules&amp;action=add_simple') &gt;= 0)
            {
              return true;
            }
            return false;
          },
        title: "",
        content: "Click Add Event List",
        placement: "right",
        backdrop: true,
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=schedules&amp;action=add_simple',
        element: "body",
        title: "",
        content: "Event Lists allow you to enter multiple events for a shared participant. It is useful if you want to add all of a sports team's games into the calendar.  By default, an event list will also create a page that will include these events. You can toggle this ability on and off using the 'Create Page' checkbox at the top.",
        placement: "center",
        backdrop: true
      },
      {
        path: tour_path_prefix + 'type=schedules&amp;action=add_simple',
        redirect: true,
        element: "#featured_image_data_label",
        title: "",
        content: "To upload an image for this page click on 'Add Featured Image' and select an image from your device.",
        placement: "bottom"
      },
      {
        path: tour_path_prefix + 'type=schedules&amp;action=add_simple',
        redirect: true,
        element: 'input#name',
        title: "",
        content: "Enter a title for the Page associated with this Event list",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=schedules&amp;action=add_simple',
        redirect: true,
        element: '#description_reveal:visible, #description_tbl:visible',
        title: "",
        content: "Describe your Page.  This description will show up on the page when someone views it.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=schedules&amp;action=add_simple',
        redirect: true,
        element: 'input#private:visible',
        title: "",
        content: "If the page for this list of events should not be visible to the public, check this box.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=schedules&amp;action=add_simple',
        redirect: true,
        element: '#groups_display:visible',
        title: "",
        content: "Select the participants that all of the events on this list of events will share.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=schedules&amp;action=add_simple',
        redirect: true,
        element: '#tags_display:visible',
        title: "",
        content: "Optionally, select all of the other tags that are shared among this list of events.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=schedules&amp;action=add_simple',
        redirect: true,
        element: 'input#key_date_checkbox:visible',
        title: "",
        content: "Check this box if this list of events are Key Dates.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=schedules&amp;action=add_simple',
        redirect: true,
        element: '#event_new_0_name:visible',
        title: "",
        content: "Enter the name of your first event.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=schedules&amp;action=add_simple',
        redirect: true,
        element: 'input#event_new_0_date_start:visible',
        title: "",
        content: "Choose the date of your first event.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=schedules&amp;action=add_simple',
        redirect: true,
        element: 'input#event_new_0_time_start:visible',
        title: "",
        content: "Enter a time of your first event begins.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=schedules&amp;action=add_simple',
        redirect: true,
        element: 'input#event_new_0_time_end:visible',
        title: "",
        content: "Enter the time your first event ends.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=schedules&amp;action=add_simple',
        redirect: true,
        element: '#event_new_0_locations_search_browse_input:visible',
        title: "",
        content: "Add the location of your first event.",
        placement: "left"
      },
      {
        path: tour_path_prefix + 'type=schedules&amp;action=add_simple',
        redirect: true,
        element: 'input#event_new_0_private:visible',
        title: "",
        content: "If your first event should not be visible to the public. Check private.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=schedules&amp;action=add_simple',
        redirect: true,
        element: 'input#event_new_0_all_day_checkbox:visible',
        title: "",
        content: "Check 'all day' if your event spans the entire day.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=schedules&amp;action=add_simple',
        redirect: true,
        element: '#event_new_0_add_other:visible',
        title: "",
        content: "Click here to select any other attributes for this event. You can enter equipment, contacts, description, setup and breakdown times, # attending, notes, and setup instructions.",
        placement: "left"
      },
      {
        path: tour_path_prefix + 'type=schedules&amp;action=add_simple',
        redirect: true,
        element: "#generate_recurrence_button",
        title: "",
        content: "Click the '+ Add Event' button to add another event to your list and repeat the previous steps or click the 'Generate Recurrence' button to create enter duplicate entries to the first event that you have created.  Make sure that you have added all of the information to the first event (equipment, notes, etc.) before creating your recurrence.",
        placement: "right"
      },
      {
        path: tour_path_prefix + 'type=schedules&amp;action=add_simple',
        redirect: true,
        element: "#new_wizard_submit_button_nav:visible",
        title: "",
        content: "Click 'Publish' to add your Event List.",
        placement: "bottom",
        hideNext: true,
        template: end_tour_template
      }
    ],
    debug: debug_tours
  });

  tours['manage_facilities_by_scheduler'] = new Tour({
    name: "manage_facilities_by_scheduler",
    storage: window.sessionStorage,
    template: tour_template,
    onStart: function(_tour)
      {
        $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_start&amp;id=manage_facilities_by_scheduler');

        window.sessionStorage.setItem('last_tour', 'manage_facilities_by_scheduler');
      },
    onEnd: function(_tour)
      {
        _tour._removeState('current_step');
        _tour._removeState('end');

        window.sessionStorage.removeItem('last_tour');

        if(notify_end_tour) $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_end&amp;id=manage_facilities_by_scheduler');
      },
    steps: [
      {
        skip: function()
          {
            if(document.location.href.indexOf('type=local_facilities&amp;action=manage') &gt;= 0)
            {
              return true;
            }
            return false;
          },
        path: tour_path_prefix + 'type=administration&amp;action=list',
        redirect: true,
        element: "a[href\*='type=local_facilities&amp;action=manage']",
        title: "",
        content: "Click here to go to the Facilities section.",
        placement: "top",
        backdrop: true,
        reflex: true,
        hideNext: true
      },
      {
        skip: function()
          {
            if($('#enable_schools').val() != 1)
            {
              return true;
            }
            return false;
          },
        path: tour_path_prefix + 'type=local_facilities&amp;action=manage',
        redirect: true,
        element: "body",
        title: "",
        content: "Facilities is where you set up and configure the details of your schools, your schools' facilities, and who you wish to be a decision maker for events involving these schools or facilities.  Let's begin...",
        placement: "center",
        backdrop: true
      },
      {
        skip: function()
          {
            if($('#enable_schools').val() == 1)
            {
              return true;
            }
            return false;
          },
        path: tour_path_prefix + 'type=local_facilities&amp;action=manage',
        redirect: true,
        element: "body",
        title: "",
        content: "Facilities is where you set up and configure the details of your organization, its facilities, and who you wish to be a decision maker for events involving these facilities.  Let's begin...",
        placement: "center",
        backdrop: true
      },
      {
        skip: function()
          {
            if($('#view').length &gt; 0)
            {
              if($('#view').val() == 'scheduler')
              {
                return true;
              }
              else
              {
                return false;
              }
            }
            else
            {
              return true;
            }
          },
        path: tour_path_prefix + 'type=local_facilities&amp;action=manage',
        redirect: true,
        element: ".nav_views_box",
        title: "",
        content: "But first click here and...",
        placement: "left",
        reflex: true,
        hideNext: true
      },
      {
        skip: function()
          {
            if($('#view').length &gt; 0)
            {
              if($('#view').val() == 'scheduler')
              {
                return true;
              }
              else
              {
                return false;
              }
            }
            else
            {
              return true;
            }
          },
        path: tour_path_prefix + 'type=local_facilities&amp;action=manage',
        redirect: true,
        element: "#more_nav_views a[href\*='type=local_facilities&amp;action=manage&amp;view=scheduler']:visible",
        title: "",
        content: "...click the 'By Scheduler' option.",
        placement: "left",
        reflex: true,
        hideNext: true,
        delay: 500
      },
      {
        skip: function()
          {
            if($('#enable_schools').val() != 1)
            {
              return true;
            }
            return false;
          },
        path: tour_path_prefix + 'type=local_facilities&amp;action=manage&amp;view=scheduler',
        redirect: true,
        element: "a[href\*='toggle_add_school_form']:visible",
        title: "",
        content: "Click here if you need to add more schools to your district.",
        placement: "left"
      },
      {
        skip: function()
          {
            if($('#enable_schools').val() != 1)
            {
              return true;
            }
            return false;
          },
        path: tour_path_prefix + 'type=local_facilities&amp;action=manage&amp;view=scheduler',
        redirect: true,
        element: "div[id\*='facility_district_']:visible &gt; a[id\*='_admins_link']:visible, div[id\*='facility_district_']:visible &gt; a[id\*='_all_users_link']:visible",
        title: "",
        content: "Click here to add more " + tour_manager_title(true) + "s to your district.  They will have authority to change anything in the system.",
        placement: "left"
      },
      {
        skip: function()
          {
            if($('#enable_schools').val() != 1)
            {
              return true;
            }
            return false;
          },
        path: tour_path_prefix + 'type=local_facilities&amp;action=manage&amp;view=scheduler',
        redirect: true,
        element: "div:not([id\*='_temp']).school_header:visible:first",
        title: "",
        content: "You can hover over any school entry to reveal the detailed view, edit, and delete actions for that school.",
        placement: "top"
      },
      {
        skip: function()
          {
            if($('#enable_schools').val() != 1)
            {
              return true;
            }
            return false;
          },
        path: tour_path_prefix + 'type=local_facilities&amp;action=manage&amp;view=scheduler',
        redirect: true,
        element: "div:not([id\*='_temp']).school_header.school_even:visible a[id\*='_all_users_link']:visible:first",
        title: "",
        content: "Click here to add more " + tour_manager_title(true) + "s to this school. They will have authority to add and approve events for this school.",
        placement: "left"
      },
      {
        skip: function()
          {
            if($('#enable_schools').val() != 1)
            {
              return true;
            }
            return false;
          },
        path: tour_path_prefix + 'type=local_facilities&amp;action=manage&amp;view=scheduler',
        redirect: true,
        element: "div[id\*='facility_school_']:visible &gt; a[href\*='toggle_add_form']:visible:first",
        title: "",
        content: "Click here to add a facility that belongs to this school.  You can create as many parent-child facility relationships as you need to define your school's facilities.",
        placement: "left",
        hideNext: true,
        template: end_tour_template
      },
      {
        skip: function()
          {
            if($('#enable_schools').val() == 1)
            {
              return true;
            }
            return false;
          },
        path: tour_path_prefix + 'type=local_facilities&amp;action=manage&amp;view=scheduler',
        redirect: true,
        element: "div[id\*='facility_organization_']:visible &gt; a[href\*='toggle_add_form']:visible",
        title: "",
        content: "Click here to add a facility that belongs to this organization.  You can create as many parent-child facility relationships as you need to define your organization's facilities.",
        placement: "left",
        hideNext: true,
        template: end_tour_template
      }
    ],
    debug: debug_tours
  });

  add_my_org_steps(tours['manage_facilities_by_scheduler'], 0, 'type=local_facilities&amp;action=manage');

  tours['facilities_overview'] = new Tour({
    name: "facilities_overview",
    storage: window.sessionStorage,
    template: tour_template,
    onStart: function(_tour)
      {
        $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_start&amp;id=facilities_overview');

        window.sessionStorage.setItem('last_tour', 'facilities_overview');
      },
    onEnd: function(_tour)
      {
        _tour._removeState('current_step');
        _tour._removeState('end');

        window.sessionStorage.removeItem('last_tour');

        if(notify_end_tour) $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_end&amp;id=facilities_overview');
      },
    steps: [
      {
        element: 'body',
        title: "",
        content: "Facilities are the locations and rooms that your organization owns. We've integrated with Google Maps so you can search for your locations and add them as the places that you schedule."
+ "&lt;br /&gt;"
+ "&lt;br /&gt;It's very important that you add your locations (and only your locations) as facilities. By searching and adding your locations we will make sure no one else can claim to schedule your organization's locations. Then, once you've added your locations, you can add the rooms inside your buildings. This allows Tandem to let you know when another person might be double booking an event in one of your locations. Finally, by adding your locations, you will be able to assign \"managers\" for particular buildings, or rooms. This way, the team members who are in charge of scheduling or approving a room will have permission to do so when they sign in to Tandem."
+ "&lt;br /&gt;"
+ "&lt;br /&gt;Follow this tour to add your locations, and the rooms inside them!",
        placement: "center",
        template: wide_tour_template,
        backdrop: true
      },
      {
        path: tour_path_prefix + 'type=local_facilities&amp;action=manage',
        element: "#search_input",
        title: "",
        content: "If you need to search for a facility by name, type it in here and use the enter key to submit the search.",
        placement: "bottom"
      },
      {
        path: tour_path_prefix + 'type=local_facilities&amp;action=manage',
        element: "#common_nav_search_filter",
        title: "",
        content: "The filter tool can be used to refine the facilities shown on this page. Click it to continue.",
        placement: "bottom",
        delay: 250,
        backdrop: true,
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=local_facilities&amp;action=manage',
        element: "#common_nav_filters",
        title: "",
        content: "Use the filter to show ghosted facilities as well as showing only faciltiies that are rentable.",
        placement: "left",
        delay: 250,
        backdrop: true,
        reflex: true
      },
      {
        path: tour_path_prefix + 'type=local_facilities&amp;action=manage',
        element: "#filters_close",
        title: "",
        content: "Click 'close' to continue.",
        placement: "bottom",
        backdrop: true,
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=local_facilities&amp;action=manage',
        element: "#view_options_box",
        title: "",
        content: "You may also choose to import your facilties into Tandem.  Once imported, you can drag and drop them to create your facility hierarchy.  You may also use the drop down arrow to switch views to a listview, allowing you the ability to edit attributes of multiple facilities as one time.",
        placement: "left"
      },
      {
        path: tour_path_prefix + 'type=local_facilities&amp;action=manage',
        element: "#common_nav_action_add",
        title: "",
        content: "Finally you may use the 'Add' button to add a new facility to the system.",
        placement: "left"
      },
      {
        path: tour_path_prefix + 'type=local_facilities&amp;action=manage',
        element: "body",
        title: "",
        content: "Start a chat with us if you have more questions. Happy Scheduling!",
        placement: "top",
        hideNext: true,
        template: end_tour_template
      }
    ],
    debug: debug_tours
  });

  tours['add_facility'] = new Tour({
    name: "add_facility",
    storage: window.sessionStorage,
    template: tour_template,
    onStart: function(_tour)
      {
        $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_start&amp;id=add_facility');

        window.sessionStorage.setItem('last_tour', 'add_facility');
      },
    onEnd: function(_tour)
      {
        _tour._removeState('current_step');
        _tour._removeState('end');

        window.sessionStorage.removeItem('last_tour');

        if(notify_end_tour) $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_end&amp;id=add_facility');
      },
    steps: [
      {
        skip: function()
          {
            if(document.location.href.indexOf('type=local_facilities&amp;action=manage') &gt;= 0)
            {
              return true;
            }
            return false;
          },
        path: tour_path_prefix + 'type=administration&amp;action=list',
        redirect: true,
        element: "a[href\*='type=local_facilities&amp;action=manage']",
        title: "",
        content: "Click here to go to the Facilities section.",
        placement: "top",
        backdrop: true,
        reflex: true,
        hideNext: true
      },
      {
        skip: function()
          {
            if($('#enable_schools').val() != 1 || $('#view').val() == 'location')
            {
              return true;
            }
            return false;
          },
        path: tour_path_prefix + 'type=local_facilities&amp;action=manage',
        redirect: true,
        element: "div[id\*='facility_school_']:visible &gt; a[href\*='toggle_add_form']:visible:first",
        title: "",
        content: "Click here to add a facility.",
        placement: "left",
        reflex: true,
        hideNext: true,
        onNext: function(_tour)
          {
            if($('#enable_schools').val() == 1 &amp;&amp; $('#view').val() != 'location')
            {
              document.getElementById( $("div[id\*='facility_school_']:visible &gt; a[href\*='toggle_add_form']:visible:first").attr('id') ).click();
            }
          }
      },
      {
        skip: function()
          {
            if($('#enable_schools').val() == 1 || $('#view').val() == 'location')
            {
              return true;
            }
            return false;
          },
        path: tour_path_prefix + 'type=local_facilities&amp;action=manage',
        redirect: true,
        element: "div[id\*='facility_organization_']:visible &gt; a[href\*='toggle_add_form']:visible:first",
        title: "",
        content: "Click here to add a facility.",
        placement: "left",
        reflex: true,
        hideNext: true,
        onNext: function(_tour)
          {
            if($('#enable_schools').val() != 1 &amp;&amp; $('#view').val() != 'location')
            {
              document.getElementById( $("div[id\*='facility_organization_']:visible &gt; a[href\*='toggle_add_form']:visible:first").attr('id') ).click();
            }
          }
      },
      {
        skip: function()
          {
            if($('#view').val() != 'location')
            {
              return true;
            }
            return false;
          },
        path: tour_path_prefix + 'type=local_facilities&amp;action=manage',
        redirect: true,
        element: "#common_nav_action_add_container_inner",
        title: "",
        content: "Click here to add a facility.",
        placement: "left",
        reflex: true,
        hideNext: true,
        onNext: function(_tour)
          {
            if($('#view').val() == 'location')
            {
              document.getElementById('common_nav_action_add').click();
            }
          }
      },
      {
        skip: function()
          {
            if($('#view').val() != 'location')
            {
              return true;
            }
            return false;
          },
        path: tour_path_prefix + 'type=local_facilities&amp;action=manage',
        redirect: true,
        element: ".walk_me_current_name:visible:first,.walk_me_current_search:visible:first",
        title: "",
        content: "Enter a name for this facility.",
        placement: "right",
        reflex: 'googlesearch',
        hideNext: true,
        delay: 500
      },
      {
        skip: function()
          {
            if($('#view').val() == 'location')
            {
              return true;
            }
            return false;
          },
        path: tour_path_prefix + 'type=local_facilities&amp;action=manage',
        redirect: true,
        element: ".walk_me_current_name:visible:first,.walk_me_current_search:visible:first",
        title: "",
        content: "Enter a name for this facility.",
        placement: "right",
        delay: 500
      },
      {
        skip: function()
          {
            if($('#view').val() != 'location')
            {
              return true;
            }
            return false;
          },
        path: tour_path_prefix + 'type=local_facilities&amp;action=manage',
        redirect: true,
        element: "ul.ui-autocomplete:visible:first",
        title: "",
        content: "Select it from the suggested list if present.",
        placement: "right",
        reflex: true,
        hideNext: true,
        delay: 100
      },
      {
        path: tour_path_prefix + 'type=local_facilities&amp;action=manage',
        redirect: true,
        element: ".walk_me_current_add:visible:first",
        title: "",
        content: "Click here to add this facility to your list.",
        placement: "right",
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=local_facilities&amp;action=manage',
        redirect: true,
        element: "div:not([id\*='_temp']).facility_header.facility_odd:visible a[id\*='_add_link']:visible:first",
        title: "",
        content: "Click here to add a child facility to this facility.  (ie. if this were a Gym, Court 1 and Court 2)",
        placement: "left",
        hideNext: true,
        template: end_tour_template
      }
    ],
    debug: debug_tours
  });

  add_my_org_steps(tours['add_facility'], 1, 'type=local_facilities&amp;action=manage');

  tours['location_overview'] = new Tour({
    name: "location_overview",
    storage: window.sessionStorage,
    template: tour_template,
    onStart: function(_tour)
      {
        $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_start&amp;id=location_overview');

        window.sessionStorage.setItem('last_tour', 'location_overview');
      },
    onEnd: function(_tour)
      {
        _tour._removeState('current_step');
        _tour._removeState('end');

        window.sessionStorage.removeItem('last_tour');

        if(notify_end_tour) $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_end&amp;id=location_overview');
      },
    steps: [
      {
        element: 'body',
        title: "",
        content: "Locations are places that your organization does not own. Add locations here or they will automatically be placed here when you schedule an event at an outside location.",
        placement: "center",
        template: wide_tour_template,
        backdrop: true
      },
      {
        path: tour_path_prefix + 'type=remote_facilities&amp;action=list',
        element: "#search_input",
        title: "",
        content: "If you need to search for a location by name, type it in here and use the enter key to submit the search.",
        placement: "bottom"
      },
      {
        path: tour_path_prefix + 'type=remote_facilities&amp;action=list',
        element: "#common_nav_search_filter",
        title: "",
        content: "The filter tool can be used to refine the locations shown on this page. Click it to continue.",
        placement: "bottom",
        delay: 250,
        backdrop: true,
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=remote_facilities&amp;action=list',
        element: "#common_nav_filters",
        title: "",
        content: "The filter allows you to show ghosted locations.",
        placement: "left",
        delay: 250,
        backdrop: true,
        reflex: true
      },
      {
        path: tour_path_prefix + 'type=remote_facilities&amp;action=list',
        element: "#filters_close",
        title: "",
        content: "Click 'close' to continue.",
        placement: "bottom",
        backdrop: true,
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=remote_facilities&amp;action=list',
        element: "#view_options_box",
        title: "",
        content: "You may also choose to import your locations into Tandem.",
        placement: "left"
      },
      {
        path: tour_path_prefix + 'type=remote_facilities&amp;action=list',
        element: "#common_nav_action_add",
        title: "",
        content: "Finally you may use the 'Add' button to add a new location to the system.  Any nearby matches will be shown using Google Places.",
        placement: "left"
      },
      {
        path: tour_path_prefix + 'type=remote_facilities&amp;action=list',
        element: "body",
        title: "",
        content: "Start a chat with us if you have more questions. Happy Scheduling!",
        placement: "top",
        hideNext: true,
        template: end_tour_template
      }
    ],
    debug: debug_tours
  });

  tours['add_location'] = new Tour({
    name: "add_location",
    storage: window.sessionStorage,
    template: tour_template,
    onStart: function(_tour)
      {
        $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_start&amp;id=add_location');

        window.sessionStorage.setItem('last_tour', 'add_location');
      },
    onEnd: function(_tour)
      {
        _tour._removeState('current_step');
        _tour._removeState('end');

        window.sessionStorage.removeItem('last_tour');

        if(notify_end_tour) $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_end&amp;id=add_location');
      },
    steps: [
      {
        element: 'body',
        title: "",
        content: "Locations are the facilities, and rooms, that your organization owns, as well as the other locations where your organizations hosts events. We've integrated with Google Maps so you can search for your locations, and add them as the places that you schedule."
+ "&lt;br /&gt;"
+ "&lt;br /&gt;It's very important that you add your locations. First, by searching and adding your locations, we will make sure no one else can claim to scheduling your organization's locations. Second, once you've added your locations, you can add the rooms inside your buildings. This allows Tandem to let you know when another person might be double booking an event in one of your locations. Finally, by adding your locations, you will be able to assign \"" + tour_manager_title(true) + "s\" for particular buildings, or rooms. This way, the team members who are in charge of scheduling or approve a room will have permission to do so when they login to Tandem."
+ "&lt;br /&gt;"
+ "&lt;br /&gt;Follow This tour to add your locations!",
        placement: "center",
        template: wide_tour_template,
        backdrop: true
      },
      {
        skip: function()
          {
            if(document.location.href.indexOf('type=locations&amp;action=manage') &gt;= 0)
            {
              return true;
            }
            return false;
          },
        path: tour_path_prefix + 'type=administration&amp;action=list',
        redirect: true,
        element: "a[href\*='type=locations&amp;action=manage']",
        title: "",
        content: "Click here to go to the Locations section.",
        placement: "top",
        backdrop: true,
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=locations&amp;action=manage',
        redirect: true,
        element: "#common_nav_action_add_facility_container_inner",
        title: "",
        content: "Click here to add a location that your organization owns.",
        placement: "right",
        reflex: true,
        hideNext: true,
        onNext: function(_tour)
          {
            document.getElementById('common_nav_action_add_facility').click();
          }
      },
      {
        path: tour_path_prefix + 'type=locations&amp;action=manage',
        redirect: true,
        element: ".walk_me_current_name:visible:first,.walk_me_current_search:visible:first",
        title: "",
        content: "Enter a name for this location.",
        placement: "right",
        reflex: 'googlesearch',
        hideNext: true,
        delay: 500
      },
      {
        path: tour_path_prefix + 'type=locations&amp;action=manage',
        redirect: true,
        element: "ul.ui-autocomplete:visible:first",
        title: "",
        content: "Select it from the suggested list if present.",
        placement: "right",
        reflex: true,
        hideNext: true,
        delay: 100
      },
      {
        path: tour_path_prefix + 'type=locations&amp;action=manage',
        redirect: true,
        element: ".walk_me_current_add:visible:first",
        title: "",
        content: "Click here to add this location to your list.",
        placement: "right",
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=locations&amp;action=manage',
        redirect: true,
        element: "div:not([id\*='_temp']).facility_header.facility_odd:visible a[id\*='_add_link']:visible:first",
        title: "",
        content: "Click here to add a child facility to this location.  (ie. if this were a Gym, Court 1 and Court 2)",
        placement: "left",
        hideNext: true,
        template: end_tour_template
      }
    ],
    debug: debug_tours
  });

  add_my_org_steps(tours['add_location'], 1, 'type=local_facilities&amp;action=manage');

  /*
      {
        path: tour_path_prefix + 'type=local_facilities&amp;action=manage',
        redirect: true,
        element: "div:not([id\*='_temp']).facility_header.facility_odd:visible:first",
        title: "",
        content: "You can hover over any facility entry to reveal the detailed view, edit, and delete actions for that facility.",
        placement: "top",
        delay: 500
      },
      {
        path: tour_path_prefix + 'type=local_facilities&amp;action=manage',
        redirect: true,
        element: "div:not([id\*='_temp']).facility_header.facility_odd:visible a[id\*='_all_users_link']:visible:first",
        title: "",
        content: "Click here to see the " + tour_manager_title(true) + "s of this facility.  ' + tour_manager_title() + 's can add and approve events for this facility.",
        placement: "left"
      }
  */
  tours['groups_overview'] = new Tour({
    name: "groups_overview",
    storage: window.sessionStorage,
    template: tour_template,
    onStart: function(_tour)
      {
        $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_start&amp;id=groups_overview');

        window.sessionStorage.setItem('last_tour', 'groups_overview');
      },
    onEnd: function(_tour)
      {
        _tour._removeState('current_step');
        _tour._removeState('end');

        window.sessionStorage.removeItem('last_tour');

        if(notify_end_tour) $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_end&amp;id=groups_overview');
      },
    steps: [
      {
        element: 'body',
        title: "",
        content: "Groups are the groups of people who your organization is in charge of scheduling. Common groups are sports teams, clubs, and sets of people who are all focused on similar type of events. By creating your groups list, you can add members to your groups to make sure they know what events they are involved in, and when + where those events are happening."
+ "&lt;br /&gt;"
+ "&lt;br /&gt;Follow this tour to add your groups!",
        placement: "center",
        template: wide_tour_template,
        backdrop: true
      },
      {
        path: tour_path_prefix + 'type=groups&amp;action=manage',
        element: "#search_input",
        title: "",
        content: "If you need to search for a group by name, type it in here and use the enter key to submit the search.",
        placement: "bottom"
      },
      {
        path: tour_path_prefix + 'type=groups&amp;action=manage',
        element: "#common_nav_search_filter",
        title: "",
        content: "The filter tool can be used to refine the grousp shown on this page. Click it to continue.",
        placement: "bottom",
        delay: 250,
        backdrop: true,
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=groups&amp;action=manage',
        element: "#common_nav_filters",
        title: "",
        content: "Use the filter to display only groups labeled with a particular gender, level or season.  You may also toggle on the show ghosted records to show groups that were removed from the system.",
        placement: "left",
        delay: 250,
        backdrop: true,
        reflex: true
      },
      {
        path: tour_path_prefix + 'type=groups&amp;action=manage',
        element: "#filters_close",
        title: "",
        content: "Click 'close' to continue.",
        placement: "bottom",
        backdrop: true,
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=groups&amp;action=manage',
        element: "#view_options_box",
        title: "",
        content: "You may also choose to import your groups into Tandem.  Once imported, you can manage members, followers and managers for them.  You may also use the drop down arrow to switch views to a listview, allowing you the ability to edit attributes of multiple groups at one time.",
        placement: "left"
      },
      {
        path: tour_path_prefix + 'type=groups&amp;action=manage',
        element: "#common_nav_action_add",
        title: "",
        content: "Finally you may use the 'Add' button to add a new group to the system.  If you are a school district you can add groups to their schools.",
        placement: "left"
      },
      {
        path: tour_path_prefix + 'type=groups&amp;action=manage',
        element: "body",
        title: "",
        content: "Start a chat with us if you have more questions. Happy Scheduling!",
        placement: "top",
        hideNext: true,
        template: end_tour_template
      }
    ],
    debug: debug_tours
  });

  tours['manage_groups'] = new Tour({
    name: "manage_groups",
    storage: window.sessionStorage,
    template: tour_template,
    onStart: function(_tour)
      {
        $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_start&amp;id=manage_groups');

        window.sessionStorage.setItem('last_tour', 'manage_groups');
      },
    onEnd: function(_tour)
      {
        _tour._removeState('current_step');
        _tour._removeState('end');

        window.sessionStorage.removeItem('last_tour');

        if(notify_end_tour) $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_end&amp;id=manage_groups');
      },
    steps: [
        {
          skip: function()
          {
            if(document.location.href.indexOf('type=groups&amp;action=manage') &gt;= 0)
            {
              return true;
            }
            return false;
          },
        path: tour_path_prefix + 'type=administration&amp;action=list',
        redirect: true,
        element: "a[href\*='type=groups&amp;action=manage']",
        title: "",
        content: "Click here to go to the Groups section.",
        placement: "top",
        backdrop: true,
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=groups&amp;action=manage',
        redirect: true,
        element: 'body',
        title: "",
        content: "Groups is where you set up and configure the details of individual groups at your schools.  Let's begin...",
        placement: "center",
        template: wide_tour_template,
        backdrop: true
      },
      {
        path: tour_path_prefix + 'type=groups&amp;action=manage',
        redirect: true,
        element: "a[href\*='toggle_add_form']:first",
        title: "",
        content: "Click here to open up the add group form.",
        placement: "left",
        reflex: true,
        hideNext: true,
        onNext: function(_tour)
          {
            document.getElementById( $("a[href\*='toggle_add_form']:first").attr('id') ).click();
          }
      },
      {
        path: tour_path_prefix + 'type=groups&amp;action=manage',
        redirect: true,
        element: "input.walk_me_current_name:visible",
        title: "",
        content: "Enter a name, if you have multiple schools be sure to include an abbreviation for that school in the group's name along with the group's activity, gender (if applicable), and level. (eg. CHS Basketball Boys Varsity)",
        placement: "right",
        delay: 250
      },
      {
        path: tour_path_prefix + 'type=groups&amp;action=manage',
        redirect: true,
        element: "a.walk_me_current_add:visible",
        title: "",
        content: "Click here to add the group.",
        placement: "right",
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=groups&amp;action=manage',
        redirect: true,
        element: "div:not([id\*='_temp']).group_header.group_odd:visible a[id\*='_all_users_link']:visible:first",
        title: "",
        content: "Click here to see the " + tour_manager_title(true) + "s, members and followers of this group.  " + tour_manager_title() + "s can add and approve events for this group - as well as manage this group's members and followers.",
        placement: "left",
        delay: 500,
        hideNext: true,
        template: end_tour_template
      }
    ],
    debug: debug_tours
  });

  add_my_org_steps(tours['manage_groups'], 1, 'type=groups&amp;action=manage');

  /*
      {
        path: tour_path_prefix + 'type=groups&amp;action=manage',
        redirect: true,
        element: "div:not([id\*='_temp']).group_header.group_odd:visible:first",
        title: "",
        content: "You can hover over any group entry to reveal the detailed view, edit, and delete actions for that group.",
        placement: "top"
      }
  */

  tours['add_group_schedulers'] = new Tour({
    name: "add_group_schedulers",
    storage: window.sessionStorage,
    template: tour_template,
    onStart: function(_tour)
      {
        $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_start&amp;id=add_group_schedulers');

        window.sessionStorage.setItem('last_tour', 'add_group_schedulers');
      },
    onEnd: function(_tour)
      {
        _tour._removeState('current_step');
        _tour._removeState('end');

        window.sessionStorage.removeItem('last_tour');

        if(notify_end_tour) $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_end&amp;id=add_group_schedulers');
      },
    steps: [
      {
        skip: function()
          {
            if(document.location.href.indexOf('type=groups&amp;action=manage') &gt;= 0)
            {
              return true;
            }
            return false;
          },
        path: tour_path_prefix + 'type=administration&amp;action=list',
        redirect: true,
        element: "a[href\*='type=groups&amp;action=manage']",
        title: "",
        content: "Click here to go to the Groups section.",
        placement: "top",
        backdrop: true,
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=groups&amp;action=manage',
        redirect: true,
        element: "div[id\*='group_school_']:visible a.school_arrow_right:visible:first",
        title: "",
        content: "Expand a school's groups",
        placement: "right",
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=groups&amp;action=manage',
        redirect: true,
        element: "div[id\*='group_school_']:visible a.group_arrow_right:visible:first",
        title: "",
        content: "Expand a school's groups",
        placement: "right",
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=groups&amp;action=manage',
        redirect: true,
        element: "a[href\*='toggle_group_user_form\\\(\\\'all_users\\\'']:visible:first",
        title: "",
        content: "Click the users icon.",
        placement: "left",
        delay: 500,
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=groups&amp;action=manage',
        redirect: true,
        element: "input.add_group_admin_email:visible:first",
        title: "",
        content: "Enter the email address for this group " + tour_manager_title(true) + ".  It will be used as this user's primary login.",
        placement: "right",
        delay: 500
      },
      {
        path: tour_path_prefix + 'type=groups&amp;action=manage',
        redirect: true,
        element: "input.add_group_admin_first_name:visible:first",
        title: "",
        content: "Enter their first name.",
        placement: "right"
      },
      {
        path: tour_path_prefix + 'type=groups&amp;action=manage',
        redirect: true,
        element: "input.add_group_admin_last_name:visible:first",
        title: "",
        content: "Enter their last name.",
        placement: "right"
      },
      {
        path: tour_path_prefix + 'type=groups&amp;action=manage',
        redirect: true,
        element: "a[href\*='add_group_user\\\(\\\'admins\\\'']:visible:first",
        title: "",
        content: "Click here to add this " + tour_manager_title(true) + ".",
        placement: "right",
        hideNext: true,
        template: end_tour_template
      }
    ],
    debug: debug_tours
  });

  add_my_org_steps(tours['add_group_schedulers'], 0, 'type=groups&amp;action=manage');

  tours['add_group_members'] = new Tour({
    name: "add_group_members",
    storage: window.sessionStorage,
    template: tour_template,
    onStart: function(_tour)
      {
        $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_start&amp;id=add_group_members');

        window.sessionStorage.setItem('last_tour', 'add_group_members');
      },
    onEnd: function(_tour)
      {
        _tour._removeState('current_step');
        _tour._removeState('end');

        window.sessionStorage.removeItem('last_tour');

        if(notify_end_tour) $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_end&amp;id=add_group_members');
      },
    steps: [
      {
        skip: function()
          {
            if(document.location.href.indexOf('type=groups&amp;action=manage') &gt;= 0)
            {
              return true;
            }
            return false;
          },
        path: tour_path_prefix + 'type=administration&amp;action=list',
        redirect: true,
        element: "a[href\*='type=groups&amp;action=manage']",
        title: "",
        content: "Click here to go to the Groups section.",
        placement: "top",
        backdrop: true,
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=groups&amp;action=manage',
        redirect: true,
        element: "div[id\*='group_school_']:visible a.school_arrow_right:visible:first",
        title: "",
        content: "Expand a school's groups",
        placement: "right",
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=groups&amp;action=manage',
        redirect: true,
        element: "div[id\*='group_school_']:visible a.group_arrow_right:visible:first",
        title: "",
        content: "Expand a school's groups",
        placement: "right",
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=groups&amp;action=manage',
        redirect: true,
        element: "a[href\*='toggle_group_user_form\\\(\\\'all_users\\\'']:visible:first",
        title: "",
        content: "Click the users icon.",
        placement: "left",
        delay: 500,
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=groups&amp;action=manage',
        redirect: true,
        element: "a[id\*='_member_show_add']:visible:first",
        title: "",
        content: "Click '+ Add' to reveal the input fields.",
        placement: "right",
        delay: 500,
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=groups&amp;action=manage',
        redirect: true,
        element: "input.add_group_member_email:visible:first",
        title: "",
        content: "Enter an email address for this group member.  It will be used to keep this individual informed of new events and changes that involve this group.",
        placement: "right",
        delay: 500
      },
      {
        path: tour_path_prefix + 'type=groups&amp;action=manage',
        redirect: true,
        element: "input.add_group_member_first_name:visible:first",
        title: "",
        content: "Enter their first name.",
        placement: "right"
      },
      {
        path: tour_path_prefix + 'type=groups&amp;action=manage',
        redirect: true,
        element: "input.add_group_member_last_name:visible:first",
        title: "",
        content: "Enter their last name.",
        placement: "right"
      },
      {
        path: tour_path_prefix + 'type=groups&amp;action=manage',
        redirect: true,
        element: "input.add_group_member_cell_phone:visible:first",
        title: "",
        content: "Add cell phone number (for text message updates, this person's standard text message rates will apply)",
        placement: "right"
      },
      {
        path: tour_path_prefix + 'type=groups&amp;action=manage',
        redirect: true,
        element: "a[href\*='add_group_user\\\(\\\'members\\\'']:visible:first",
        title: "",
        content: "Click here to add this member.",
        placement: "right",
        hideNext: true,
        template: end_tour_template
      }
    ],
    debug: debug_tours
  });

  add_my_org_steps(tours['add_group_members'], 0, 'type=groups&amp;action=manage');

  tours['add_scheduler_through_facilities'] = new Tour({
    name: "add_scheduler_through_facilities",
    storage: window.sessionStorage,
    template: tour_template,
    onStart: function(_tour)
      {
        $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_start&amp;id=add_scheduler_through_facilities');

        window.sessionStorage.setItem('last_tour', 'add_scheduler_through_facilities');
      },
    onEnd: function(_tour)
      {
        _tour._removeState('current_step');
        _tour._removeState('end');

        window.sessionStorage.removeItem('last_tour');

        if(notify_end_tour) $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_end&amp;id=add_scheduler_through_facilities');
      },
    steps: [
      {
        skip: function()
          {
            if(document.location.href.indexOf('type=local_facilities&amp;action=manage') &gt;= 0)
            {
              return true;
            }
            return false;
          },
        path: tour_path_prefix + 'type=administration&amp;action=list',
        redirect: true,
        element: "a[href\*='type=local_facilities&amp;action=manage']",
        title: "",
        content: "Click here to go to the Facilities section.",
        placement: "top",
        backdrop: true,
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=local_facilities&amp;action=manage',
        redirect: true,
        skip: function()
          {
            return true;
          },
        element: "div:not([id\*='_temp']).facility_header.facility_odd:visible:first",
        title: "",
        content: "Hover over any facility entry to reveal more actions.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=local_facilities&amp;action=manage',
        redirect: true,
        element: "a[id\*='_all_users_link']:visible:first, a[id\*='_admins_link']:visible:first",
        title: "",
        content: "Click here to add a " + tour_manager_title(true) + "",
        placement: "left",
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=local_facilities&amp;action=manage',
        redirect: true,
        element: ".walk_me_current_email",
        title: "",
        content: "Enter the " + tour_manager_title(true) + "'s email address, they will be emailed an invitation to sign in and set up a password for their account.",
        placement: "right",
        delay: 500
      },
      {
        path: tour_path_prefix + 'type=local_facilities&amp;action=manage',
        redirect: true,
        element: ".walk_me_current_first_name",
        title: "",
        content: "Enter their first name.",
        placement: "right"
      },
      {
        path: tour_path_prefix + 'type=local_facilities&amp;action=manage',
        redirect: true,
        element: ".walk_me_current_last_name",
        title: "",
        content: "Enter their last name.",
        placement: "right"
      },
      {
        path: tour_path_prefix + 'type=local_facilities&amp;action=manage',
        redirect: true,
        element: ".walk_me_current_add",
        title: "",
        content: "Click here to add this user as an admin.",
        placement: "right",
        hideNext: true,
        template: end_tour_template
      }
    ],
    debug: debug_tours
  });

  add_my_org_steps(tours['add_scheduler_through_facilities'], 0, 'type=local_facilities&amp;action=manage');

  tours['add_people'] = new Tour({
    name: "add_people",
    storage: window.sessionStorage,
    template: tour_template,
    onStart: function(_tour)
      {
        $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_start&amp;id=add_people');

        window.sessionStorage.setItem('last_tour', 'add_people');
      },
    onEnd: function(_tour)
      {
        _tour._removeState('current_step');
        _tour._removeState('end');

        window.sessionStorage.removeItem('last_tour');

        if(notify_end_tour) $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_end&amp;id=add_people');
      },
    steps: [
      {
        element: 'body',
        title: "",
        content: "Scheduling is a lot easier when everyone in your organization is collaborating with the same tool."
+ "&lt;br /&gt;"
+ "&lt;br /&gt;Follow this tour to add more people to your Tandem account!",
        placement: "center",
        template: wide_tour_template,
        backdrop: true
      },
      {
        skip: function()
          {
            if(document.location.href.indexOf('type=user_accounts&amp;action=list') &gt;= 0)
            {
              return true;
            }
            return false;
          },
        path: tour_path_prefix + 'type=administration&amp;action=list',
        redirect: true,
        element: "a[href\*='type=user_accounts&amp;action=list']",
        title: "",
        content: "Click People.",
        placement: "top",
        backdrop: true,
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=user_accounts&amp;action=list',
        redirect: true,
        element: "#common_nav_action_add",
        title: "",
        content: "Click Add.",
        placement: "left",
        backdrop: true,
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=user_accounts&amp;action=add_select',
        redirect: true,
        element: "#add_private",
        title: "",
        content: "Click Add Staff Member.",
        placement: "top",
        backdrop: true,
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=user_accounts&amp;action=add_private',
        redirect: true,
        element: "input[name='email']",
        title: "",
        content: "Enter the new person's contact information (including email address, first name, last name), they will be emailed an invitation to sign in and set up a password for their account.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=user_accounts&amp;action=add_private',
        redirect: true,
        element: "#user_type_row",
        title: "",
        content: "Select the correct user type.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=user_accounts&amp;action=add_private',
        redirect: true,
        element: "#new_wizard_submit_button_container_inner",
        title: "",
        content: "Then, add this Person.",
        placement: "right"
      },
      {
        path: tour_path_prefix + 'type=user_accounts&amp;action=add_private',
        redirect: true,
        element: "input[name='email']",
        title: "",
        content: "Scheduling goes faster when more of the people in your organization are working together! Add other people who help with the scheduling of your organization.",
        placement: "top",
        hideNext: true,
        template: end_tour_template
      }
    ],
    debug: debug_tours
  });

  add_my_org_steps(tours['add_people'], 1, 'type=user_accounts&amp;action=list');

  tours['add_activity'] = new Tour({
    name: "add_activity",
    storage: window.sessionStorage,
    template: tour_template,
    onStart: function(_tour)
      {
        $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_start&amp;id=add_activity');

        window.sessionStorage.setItem('last_tour', 'add_activity');
      },
    onEnd: function(_tour)
      {
        _tour._removeState('current_step');
        _tour._removeState('end');

        window.sessionStorage.removeItem('last_tour');

        if(notify_end_tour) $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_end&amp;id=add_activity');
      },
    steps: [
      {
        element: "body",
        title: "",
        content: "Activities are something that people 'do'. This type of event tag can be used on events and may be useful to your organization for filtering purposes soccer, baseball, band or drama.",
        placement: "center",
        backdrop: true
      },
      {
        element: "body",
        title: "",
        content: "When you are debating whether something is an activity, there is an easy way to find out.  An activity is always something that stands out by itself. It cannot describe other activities."
        +"&lt;br /&gt;&lt;br /&gt;If you were to pick 'Drama', you would ask yourself; does drama apply to other activities?  Could you have a drama band, drama choir or a drama softball?  These things don't make sense so drama must be an activity."
        +"&lt;br /&gt;&lt;br /&gt;Conversely, 'event type' tags always associate themselves with multiple activities.  So for example, if you were considering adding 'Game' to activities, you would first ask yourself if game can apply to more than one activity.  In this case, game can apply to soccer, baseball, football and many other activities.  Therefore, it cannot be an activity.",
        placement: "center",
        backdrop: true
      },
      {
        path: tour_path_prefix + 'type=activity&amp;action=list',
        redirect: true,
        element: "#common_nav_action_add",
        title: "",
        content: "To add a new Activity, Click Add.",
        placement: "left",
        backdrop: true,
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=activity&amp;action=add',
        element: "#pe_name",
        title: "",
        content: "The only requirement is that you give your activity a name.",
        placement: "right"
      },
      {
        path: tour_path_prefix + 'type=activity&amp;action=add',
        redirect: true,
        element: "#new_wizard_submit_button_container_inner",
        title: "",
        content: "Then, add this Activity.",
        placement: "right"
      },
      {
        element: "body",
        title: "",
        content: "Thats it! You may now use your new activity tag on events and event requests.",
        placement: "center",
        backdrop: true,
        hideNext: true,
        template: end_tour_template
      }
    ],
    debug: debug_tours
  });

  tours['add_department'] = new Tour({
    name: "add_department",
    storage: window.sessionStorage,
    template: tour_template,
    onStart: function(_tour)
      {
        $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_start&amp;id=add_department');

        window.sessionStorage.setItem('last_tour', 'add_department');
      },
    onEnd: function(_tour)
      {
        _tour._removeState('current_step');
        _tour._removeState('end');

        window.sessionStorage.removeItem('last_tour');

        if(notify_end_tour) $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_end&amp;id=add_department');
      },
    steps: [
      {
        element: "body",
        title: "",
        content: "Departments separate your organization into meaningful units. Some examples are Administration, Athletics or Music.",
        placement: "center",
        backdrop: true
      },
      {
        path: tour_path_prefix + 'type=departments&amp;action=list',
        redirect: true,
        element: "#common_nav_action_add",
        title: "",
        content: "To add a new Department, Click Add.",
        placement: "left",
        backdrop: true,
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=departments&amp;action=add',
        element: "#pe_name",
        title: "",
        content: "The only requirement is that you give your activity a name.",
        placement: "right"
      },
      {
        path: tour_path_prefix + 'type=departments&amp;action=add',
        element: "#dept_head_add",
        title: "",
        content: "You may also select a Department Head from the your People list.",
        placement: "right"
      },
      {
        path: tour_path_prefix + 'type=departments&amp;action=add',
        element: "#pe_description_reveal",
        title: "",
        content: "You can also describe this Department.",
        placement: "right"
      },
      {
        path: tour_path_prefix + 'type=departments&amp;action=add',
        element: "#pe_color",
        title: "",
        content: "If you are using the option to color events by department tag color the optional color field will be available.  If you want to color events by department tag navigate to My Organzation, Calendar Customization &gt; Logo Color &amp; Settings to turn that on.",
        placement: "right"
      },
      {
        path: tour_path_prefix + 'type=departments&amp;action=add',
        element: "#picture_data_label",
        title: "",
        content: "Enter an image for this department if you wish.",
        placement: "right"
      },
      {
        path: tour_path_prefix + 'type=departments&amp;action=add',
        redirect: true,
        element: "#new_wizard_submit_button_container_inner",
        title: "",
        content: "Then, add this Department.",
        placement: "right"
      },
      {
        element: "body",
        title: "",
        content: "Thats it! You may now use your new department tag on events and event requests.",
        placement: "center",
        backdrop: true,
        hideNext: true,
        template: end_tour_template
      }
    ],
    debug: debug_tours
  });

  tours['add_event_type'] = new Tour({
    name: "add_event_type",
    storage: window.sessionStorage,
    template: tour_template,
    onStart: function(_tour)
      {
        $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_start&amp;id=add_event_type');

        window.sessionStorage.setItem('last_tour', 'add_event_type');
      },
    onEnd: function(_tour)
      {
        _tour._removeState('current_step');
        _tour._removeState('end');

        window.sessionStorage.removeItem('last_tour');

        if(notify_end_tour) $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_end&amp;id=add_event_type');
      },
    steps: [
      {
        element: "body",
        title: "",
        content: "Event Types are categories of events such as games, meetings, concerts, and practices.",
        placement: "center",
        backdrop: true
      },
      {
        path: tour_path_prefix + 'type=event_types&amp;action=list',
        redirect: true,
        element: "#common_nav_action_add",
        title: "",
        content: "To add a new event type, click add.",
        placement: "left",
        backdrop: true,
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=event_types&amp;action=add',
        element: "#pe_name",
        title: "",
        content: "The only requirement is that you give your event type a name."
        +"&lt;br /&gt;&lt;br /&gt;Event Types define what kind of event is taking place.  Is it a Game, Match, Meeting or Practice.",
        placement: "right"
      },
      {
        path: tour_path_prefix + 'type=event_types&amp;action=add',
        element: "#pe_Color",
        title: "",
        content: "If you are using transportation the optional color field will be available.  This is used for coloring trips using this event type with a specific color on transportation reports."
        +"&lt;br /&gt;&lt;br /&gt;Note that the event type color will take precedence over the school color if colors for both school and event type are defined.",
        placement: "right"
      },
      {
        path: tour_path_prefix + 'type=event_types&amp;action=add',
        redirect: true,
        element: "#new_wizard_submit_button_container_inner",
        title: "",
        content: "Then, add this Event Type.",
        placement: "right"
      },
      {
        element: "body",
        title: "",
        content: "Thats it! You may now use your new event type tag on events and event requests.",
        placement: "center",
        backdrop: true,
        hideNext: true,
        template: end_tour_template
      }
    ],
    debug: debug_tours
  });

  tours['getting_started_1'] = new Tour({
    name: "getting_started_1",
    storage: window.sessionStorage,
    template: tour_template,
    onStart: function(_tour)
      {
        $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_start&amp;id=getting_started_1');

        window.sessionStorage.setItem('last_tour', 'getting_started_1');
      },
    onEnd: function(_tour)
      {
        _tour._removeState('current_step');
        _tour._removeState('end');

        window.sessionStorage.removeItem('last_tour');

        if(notify_end_tour) $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_end&amp;id=getting_started_1');
      },
    steps: [
      {
        element: "body",
        title: "",
        content: "Welcome to Tandem!  Click \"next\" for a quick tour.",
        placement: "center",
        backdrop: true
      },
      {
        element: "#top_bar_center a[href\*='type=event&amp;action=add']:visible",
        title: "",
        content: "Go nuts and add all of your events here. BUT FIRST...",
        placement: "right",
        backdrop: true
      },
      {
        element: "#top_bar_right a[href\*='type=management&amp;action=getting_started']:visible",
        title: "",
        content: "Follow these steps to get the most out of Tandem.",
        placement: "left",
        backdrop: true,
        hideNext: true,
        template: end_tour_template
      }
    ],
    debug: debug_tours
  });

  tours['getting_started_2'] = new Tour({
    name: "getting_started_2",
    storage: window.sessionStorage,
    template: tour_template,
    onStart: function(_tour)
      {
        $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_start&amp;id=getting_started_2');

        window.sessionStorage.setItem('last_tour', 'getting_started_2');
      },
    onEnd: function(_tour)
      {
        _tour._removeState('current_step');
        _tour._removeState('end');

        window.sessionStorage.removeItem('last_tour');

        if(notify_end_tour) $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_end&amp;id=getting_started_2');
      },
    steps: [
      {
        element: "body",
        title: "",
        content: "Welcome to Tandem! Tandem is the simplest way to schedule your entire organization on one master calendar. It can easily scale from a small scheduling team, to an organization where multiple people are approving events.",
        placement: "center",
        backdrop: true
      },
      {
        element: "body",
        title: "",
        content: "It's very important to finish setting up your Tandem account. This means adding all of your: "
+ "&lt;br /&gt;"
+ "&lt;br /&gt;    âƒ    PEOPLE - these are the people in your organization who can add and schedule events on your calendar"
+ "&lt;br /&gt;    âƒ    FACILITIES - these are the buildings and rooms that your organization owns."
+ "&lt;br /&gt;    âƒ    GROUPS - these are any groups or teams of people who participate in events."
+ "&lt;br /&gt;"
+ "&lt;br /&gt;Once you set these up in Tandem, then you can ADD EVENTS! Tandem will automatically conflict check if you are double booking things.",
        placement: "center",
        template: wide_tour_template,
        backdrop: true
      },
      {
        element: "body",
        title: "",
        content: "Also, Tandem is free for small teams, but when you want to upgrade for the full Tandem scheduling experience, click on Upgrade to see if our paid plans are right for your organization."
+ "&lt;br /&gt;&lt;br /&gt;"
+ "Click NEXT below to take a quick tour of Tandem.",
        placement: "center",
        template: wide_tour_template,
        backdrop: true
      },
      {
        element: "#top_bar_left",
        title: "",
        content: "Here is where you can add events, approve event requests, and view all your events on the calendar.",
        placement: top_bar_placement,
        backdrop: true
      }
    ],
    debug: debug_tours
  });

  tours['getting_started_2']._options.steps.push(
  {
    element: "#top_bar_right a[href\*='type=management&amp;action=getting_started']:visible",
    title: "",
    content: "Follow the steps in the Setup Guide to finish setting up your account by: adding your people, facilities, and groups."
+ "&lt;br /&gt;&lt;br /&gt;"
+ "Click Setup Guide to the left.",
    placement: top_bar_placement,
    template: tour_template,
    reflex: true,
    hideNext: true,
    backdrop: true
  });

/*  tours['getting_started_2']._options.steps.push(
  {
    element: "#top_bar_right",
    title: "",
    content: "To access the Setup Guide - click above.",
    placement: "bottom",
    backdrop: true,
    reflex: true,
    hideNext: true,
    onNext: function(_tour)
      {
        if($('#account_section_menu').css('display') == 'none')
        {
          document.getElementById( $("#account_section_link_container").attr('id') ).click();
        }
      }
  });

  tours['getting_started_2']._options.steps.push(
  {
    element: "#account_section_menu a[href\*='type=management&amp;action=getting_started']:visible",
    title: "",
    content: "Follow these steps to finish setting up your account by: adding your people, facilities, and groups."
+ "&lt;br /&gt;&lt;br /&gt;"
+ "Click Setup Guide to the right.",
    placement: "left",
    template: tour_template,
    reflex: true,
    hideNext: true
  });*/

  tours['getting_started_2']._options.steps.push(
  {
    path: tour_path_prefix + 'type=management&amp;action=getting_started',
    redirect: true,
    element: ".system_table",
    backdrop: true,
    title: "",
    content: "Follow these steps below.  Let's get started.",
    placement: "top",
    hideNext: true,
    template: end_tour_template
  });

      /*
      {
        element: "#top_bar_right",
        title: "",
        content: "To finish setting up your account click here.",
        placement: "bottom",
        backdrop: true,
        reflex: true,
        hideNext: true,
        onNext: function(_tour)
          {
            if($('#account_section_menu').css('display') == 'none')
            {
              document.getElementById( $("#account_section_link_container").attr('id') ).click();
            }
          }
      },
      {
        element: "#account_section_menu a[href\*='type=administration&amp;action=list']:visible",
        title: "",
        content: "Then click '" + my_org_title + "'.",
        placement: "left",
        delay: 100,
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=administration&amp;action=list',
        redirect: true,
        element: "body",
        title: "",
        content: "Welcome to the " + my_org_title + " area!"
+ "&lt;br /&gt;&lt;br /&gt;"
+ "Here is a quick overview of the 3 major places to update before beginning to add events.",
        placement: "center",
        backdrop: true
      },
      {
        element: "a[href\*='type=schedulers&amp;action=list']:visible",
        title: "",
        content: "" + tour_manager_title() + "s is the area where you can add and manage the people who will be able to add, and approve, events on your calendar.",
        placement: "top",
        backdrop: true
      },
      {
        element: "a[href\*='type=local_facilities&amp;action=manage']:visible",
        title: "",
        content: "Facilities is the area where you can add and manage the buildings (and the internal rooms) that your organization owns.",
        placement: "top",
        backdrop: true
      },
      {
        element: "a[href\*='type=groups&amp;action=manage']:visible",
        title: "",
        content: "Groups is the area where you can add the groups that your organization is in charge of scheduling.",
        placement: "top",
        backdrop: true
      },
      */
  tours['equipment_overview'] = new Tour({
    name: "equipment_overview",
    storage: window.sessionStorage,
    template: tour_template,
    onStart: function(_tour)
      {
        $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_start&amp;id=equipment_overview');

        window.sessionStorage.setItem('last_tour', 'equipment_overview');
      },
    onEnd: function(_tour)
      {
        _tour._removeState('current_step');
        _tour._removeState('end');

        window.sessionStorage.removeItem('last_tour');

        if(notify_end_tour) $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_end&amp;id=equipment_overview');
      },
    steps: [
      {
        element: 'body',
        title: "",
        content: "Equipment are the resources or needs for your events. Microphones, projectors, tables, and chairs are all resources you can use in equipment.  You may also add things like 'Tech onsite' or 'Catering'.",
        placement: "center",
        template: wide_tour_template,
        backdrop: true
      },
      {
        path: tour_path_prefix + 'type=equipment&amp;action=manage',
        element: "#search_input",
        title: "",
        content: "If you need to search for a equipment by name, type it in here and use the enter key to submit the search.",
        placement: "bottom"
      },
      {
        path: tour_path_prefix + 'type=equipment&amp;action=manage',
        element: "#common_nav_search_filter",
        title: "",
        content: "The filter tool can be used to refine the equipment shown on this page. Click it to continue.",
        placement: "bottom",
        delay: 250,
        backdrop: true,
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=equipment&amp;action=manage',
        element: "#common_nav_filters",
        title: "",
        content: "Use the filter to display only equipment of a particular type or storage location.  You may also toggle on the show ghosted records to show equipment that was removed from the system.",
        placement: "left",
        delay: 250,
        backdrop: true,
        reflex: true
      },
      {
        path: tour_path_prefix + 'type=equipment&amp;action=manage',
        element: "#filters_close",
        title: "",
        content: "Click 'close' to continue.",
        placement: "bottom",
        backdrop: true,
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=equipment&amp;action=manage',
        element: "#view_options_box",
        title: "",
        content: "You may also choose to import your equipment into Tandem.  Once imported, you can manage members, followers and managers for them.  You may also use the drop down arrow to switch views to a listview, allowing you the ability to edit attributes of multiple groups at one time.",
        placement: "left"
      },
      {
        path: tour_path_prefix + 'type=equipment&amp;action=manage',
        element: "#common_nav_action_add",
        title: "",
        content: "Finally you may use the 'Add' button to add a new resource to the system.  If you are a school district you can add groups to their schools.",
        placement: "left"
      },
      {
        path: tour_path_prefix + 'type=equipment&amp;action=manage',
        element: "body",
        title: "",
        content: "Start a chat with us if you have more questions. Happy Scheduling!",
        placement: "top",
        hideNext: true,
        template: end_tour_template
      }
    ],
    debug: debug_tours
  });

  tours['manage_equipment'] = new Tour({
    name: "manage_equipment",
    storage: window.sessionStorage,
    template: tour_template,
    onStart: function(_tour)
      {
        $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_start&amp;id=manage_equipment');

        window.sessionStorage.setItem('last_tour', 'manage_equipment');
      },
    onEnd: function(_tour)
      {
        _tour._removeState('current_step');
        _tour._removeState('end');

        window.sessionStorage.removeItem('last_tour');

        if(notify_end_tour) $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_end&amp;id=manage_equipment');
      },
    steps: [
      {
        element: 'body',
        title: "",
        content: "Equipment are resources you use for an event."
+ "&lt;br /&gt;"
+ "&lt;br /&gt;Follow this tour to add your equipment!",
        placement: "center",
        template: wide_tour_template,
        backdrop: true
      },
      {
        skip: function()
          {
            if(document.location.href.indexOf('type=equipment&amp;action=manage') &gt;= 0)
            {
              return true;
            }
            return false;
          },
        path: tour_path_prefix + 'type=administration&amp;action=list',
        redirect: true,
        element: "a[href\*='type=equipment&amp;action=manage']",
        title: "",
        content: "Click here to go to the Equipment section.",
        placement: "top",
        backdrop: true,
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=equipment&amp;action=manage',
        redirect: true,
        element: 'body',
        title: "",
        content: "Equipment is where you set up and configure the details of the resources you use at your events.  Let's begin...",
        placement: "center",
        template: wide_tour_template,
        backdrop: true
      },
      {
        path: tour_path_prefix + 'type=equipment&amp;action=manage',
        redirect: true,
        element: "a[href\*='toggle_add_form']:first",
        title: "",
        content: "Click here to open up the add equipment form.",
        placement: "left",
        reflex: true,
        hideNext: true,
        onNext: function(_tour)
          {
            document.getElementById( $("a[href\*='toggle_add_form']:first").attr('id') ).click();
          }
      },
      {
        path: tour_path_prefix + 'type=equipment&amp;action=manage',
        redirect: true,
        element: "a.walk_me_current_add:visible",
        title: "",
        content: "Enter the type of equipment, the quantity available*, and then click 'Add'."
+ "&lt;br /&gt;"
+ "&lt;br /&gt;&lt;span style=\"color: #999; font-size: 8pt;\"&gt;*Quantity field only available when on a paid plan&lt;/span&gt;",
        placement: "right",
        reflex: true,
        delay: 250,
        hideNext: true,
        template: end_tour_template
      }
    ],
    debug: debug_tours
  });

  add_my_org_steps(tours['manage_equipment'], 1, 'type=equipment&amp;action=manage');

  tours['setup_tags'] = new Tour({
    name: "setup_tags",
    storage: window.sessionStorage,
    template: tour_template,
    onStart: function(_tour)
      {
        $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_start&amp;id=setup_tags');

        window.sessionStorage.setItem('last_tour', 'setup_tags');
      },
    onEnd: function(_tour)
      {
        _tour._removeState('current_step');
        _tour._removeState('end');

        window.sessionStorage.removeItem('last_tour');

        if(notify_end_tour) $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_end&amp;id=setup_tags');
      },
    steps: [
      {
        element: 'body',
        title: "",
        content: "Event tags are for better filtering and searching."
+ "&lt;br /&gt;"
+ "&lt;br /&gt;Follow this tour to setup your event tags!",
        placement: "center",
        template: wide_tour_template,
        backdrop: true
      },
      {
        skip: function()
          {
            if($('#additional_cat_data').css('display') != 'none')
            {
              return true;
            }
            return false;
          },
        path: tour_path_prefix + 'type=administration&amp;action=list',
        redirect: true,
        element: "#additional_cat_title",
        title: "",
        content: "Click here to open the 'Types &amp; Tags' section.",
        placement: "top",
        backdrop: true,
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=administration&amp;action=list',
        redirect: true,
        element: "#additional_cat_data",
        title: "",
        content: "Go into each of the sections below and setup your tags.",
        placement: "top",
        backdrop: true,
        reflex: true,
        delay: 250,
        hideNext: true,
        template: end_tour_template
      }
    ],
    debug: debug_tours
  });

  add_my_org_steps(tours['setup_tags'], 1, 'type=tags&amp;action=manage');

  tours['add_profile_photo'] = new Tour({
    name: "add_profile_photo",
    storage: window.sessionStorage,
    template: tour_template,
    onStart: function(_tour)
      {
        $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_start&amp;id=add_profile_photo');

        window.sessionStorage.setItem('last_tour', 'add_profile_photo');
      },
    onEnd: function(_tour)
      {
        _tour._removeState('current_step');
        _tour._removeState('end');

        window.sessionStorage.removeItem('last_tour');

        if(notify_end_tour) $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_end&amp;id=add_profile_photo');
      },
    steps: [
      {
        skip: function()
          {
            if(document.location.href.indexOf('type=prefs&amp;action=system') &gt;= 0)
            {
              return true;
            }
            return false;
          },
        element: "#top_bar_right",
        title: "",
        content: "First click here.",
        placement: "left",
        backdrop: true,
        reflex: true,
        hideNext: true,
        onNext: function(_tour)
          {
            if($('#account_section_menu').length &gt; 0 &amp;&amp; $('#account_section_menu').css('display') == 'none')
            {
              document.getElementById( $("#account_section_link_container").attr('id') ).click();
            }
          }
      },
      {
        skip: function()
          {
            if(document.location.href.indexOf('type=prefs&amp;action=system') &gt;= 0)
            {
              return true;
            }
            return false;
          },
        element: "#account_section_menu a[href\*='type=prefs&amp;action=system']:visible",
        title: "",
        content: "Then click 'my profile'.",
        placement: "left",
        delay: 100,
        reflex: true,
        hideNext: true,
        backdrop: true
      },
      {
        skip: function()
          {
            if(document.location.href.indexOf('type=prefs&amp;action=my_account') &gt;= 0)
            {
              return true;
            }
            return false;
          },
        path: tour_path_prefix + 'type=prefs&amp;action=system',
        redirect: true,
        element: "a[href\*='type=prefs&amp;action=my_account']",
        title: "",
        content: "Then click 'Profile'.",
        placement: "top",
        backdrop: true,
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=prefs&amp;action=my_account',
        redirect: true,
        element: "input[name='picture_data']",
        title: "",
        content: "Click here to select your profile picture.&lt;br /&gt;&lt;br /&gt;Once selected - click 'Update' at the bottom.",
        placement: "top",
        reflex: true,
        hideNext: true,
        template: end_tour_template
      }
    ],
    debug: debug_tours
  });

  tours['setup_profile'] = new Tour({
    name: "setup_profile",
    storage: window.sessionStorage,
    template: tour_template,
    onStart: function(_tour)
      {
        $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_start&amp;id=setup_profile');

        window.sessionStorage.setItem('last_tour', 'setup_profile');
      },
    onEnd: function(_tour)
      {
        _tour._removeState('current_step');
        _tour._removeState('end');

        window.sessionStorage.removeItem('last_tour');

        if(notify_end_tour) $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_end&amp;id=setup_profile');
      },
    steps: [
      {
        skip: function()
          {
            if(document.location.href.indexOf('type=prefs&amp;action=system') &gt;= 0)
            {
              return true;
            }
            return false;
          },
        element: "#top_bar_right",
        title: "",
        content: "First click here.",
        placement: "left",
        backdrop: true,
        reflex: true,
        hideNext: true,
        onNext: function(_tour)
          {
            if($('#account_section_menu').length &gt; 0 &amp;&amp; $('#account_section_menu').css('display') == 'none')
            {
              document.getElementById( $("#account_section_link_container").attr('id') ).click();
            }
          }
      },
      {
        skip: function()
          {
            if(document.location.href.indexOf('type=prefs&amp;action=system') &gt;= 0)
            {
              return true;
            }
            return false;
          },
        element: "#account_section_menu a[href\*='type=prefs&amp;action=system']:visible",
        title: "",
        content: "Then click 'my profile'.",
        placement: "left",
        delay: 100,
        reflex: true,
        hideNext: true
      },
      {
        skip: function()
          {
            if(document.location.href.indexOf('type=prefs&amp;action=my_account') &gt;= 0)
            {
              return true;
            }
            return false;
          },
        path: tour_path_prefix + 'type=prefs&amp;action=system',
        redirect: true,
        element: "a[href\*='type=prefs&amp;action=my_account']",
        title: "",
        content: "Then click 'Profile'.",
        placement: "top",
        backdrop: true,
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=prefs&amp;action=my_account',
        redirect: true,
        element: "#pe_first_name",
        title: "",
        content: "Confirm or add your First Name.",
        placement: "top",
      },
      {
        path: tour_path_prefix + 'type=prefs&amp;action=my_account',
        redirect: true,
        element: "#pe_last_name",
        title: "",
        content: "Confirm or add your Last Name.",
        placement: "top",
      },
      {
        path: tour_path_prefix + 'type=prefs&amp;action=my_account',
        redirect: true,
        element: "label[for='picture_data']",
        title: "",
        content: "Click here to select your profile picture.&lt;br /&gt;&lt;br /&gt;Once selected - click 'Update' at the bottom.",
        placement: "top",
        reflex: true,
        hideNext: true,
        template: end_tour_template
      }
    ],
    debug: debug_tours
  });

  tours['approval_workflow'] = new Tour({
    name: "approval_workflow",
    storage: window.sessionStorage,
    template: tour_template,
    onStart: function(_tour)
      {
        $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_start&amp;id=approval_workflow');

        window.sessionStorage.setItem('last_tour', 'approval_workflow');
      },
    onEnd: function(_tour)
      {
        _tour._removeState('current_step');
        _tour._removeState('end');

        window.sessionStorage.removeItem('last_tour');

        if(notify_end_tour) $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_end&amp;id=approval_workflow');
      },
    steps: [
      {
        element: 'body',
        title: "",
        content: "Tandem can be set up with custom event request approval workflows for your internal staff members, so each facility or piece of equipment can be approved for use with your internal events. You can customize each facility or equipment approval workflow for the number of people and the number of steps that are needed for approval. We've designed Tandem so that you have maximum flexibility in customizing the way your organization approves the use of facilities and equipment."
+ "&lt;br /&gt;&lt;br /&gt;Setting up the workflow is simple. There are two parts:"
+ "&lt;br /&gt;&lt;br /&gt;1. The number of steps for approval."
+ "&lt;br /&gt;2. The number of people in each step."
+ "&lt;br /&gt;&lt;br /&gt;By assigning the correct number of people to each step, you will ensure that all event requests will be routed to the correct people inside your organization. Unapproved requests will not show on the calendar to users that are not in the approval process for the event, unless of course they are full administrators in Tandem. The requested event will appear as \"approved\" on your calendar once everyone in each step has approved the use of the resources they are in charge of for the event."
+ "&lt;br /&gt;&lt;br /&gt;Please note: the event will be shown on the calendar once it's requested, but Tandem will only notify the original requester once everyone has approved the event. At that time, the event will switch from \"awaiting approval\" to \"approved\"."
+ "&lt;br /&gt;&lt;br /&gt;This tour will take you through the basic steps of setting up an approval workflow for a facility. The same type of actions can be used inside the Equipment area.",
        placement: "center",
        template: wide_tour_template,
        backdrop: true
      },
      {
        skip: function()
          {
            if(document.location.href.indexOf('type=local_facilities&amp;action=manage') &gt;= 0)
            {
              return true;
            }
            return false;
          },
        path: tour_path_prefix + 'type=administration&amp;action=list',
        redirect: true,
        element: "a[href\*='type=local_facilities&amp;action=manage']",
        title: "",
        content: "Click here to go to the Facilities section.",
        placement: "top",
        backdrop: true,
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=local_facilities&amp;action=manage',
        redirect: true,
        element: "div:not([id\*='_temp']).facility_header.facility_odd:visible:first",
        title: "",
        content: "You can hover over any facility to reveal more actions including the one for the approval workflow.",
        placement: "top",
        onNext: function(_tour)
          {
            $("div:not([id\*='_temp']).facility_header.facility_odd:visible:first").parent().removeAttr('onmouseout');
            $("div:not([id\*='_temp']).facility_header.facility_odd:visible:first").parent().off('mouseout');
            $("div:not([id\*='_temp']).facility_header.facility_odd:visible:first").parent().trigger('mouseover');
          }
      },
      {
        path: tour_path_prefix + 'type=local_facilities&amp;action=manage',
        redirect: true,
        element: "div:not([id\*='_temp']).facility_header.facility_odd:visible a[id\*='_approvers_link']:visible:first",
        title: "",
        content: "Click here.",
        placement: "left",
        reflex: true,
        delay: 250,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=local_facilities&amp;action=manage',
        redirect: true,
        element: ".walk_me_current_email:visible:first",
        title: "",
        content: "Here is where you will add an approver for this facility.",
        placement: "top",
        delay: 500
      },
      {
        path: tour_path_prefix + 'type=local_facilities&amp;action=manage',
        redirect: true,
        element: ".facility_add_step_link:visible:first",
        title: "",
        content: "To add an additional step to this approval workflow, click here.",
        placement: "bottom"
      },
      {
        element: 'body',
        title: "",
        content: "Have fun setting up your approval process! Each person you add will receive an email with instructions on how to set up their Tandem account. If you have any questions about this, please message us using the small chat bubble on the bottom right hand of your screen to send us a message.",
        placement: "center",
        hideNext: true,
        template: end_wide_tour_template,
        backdrop: true
      }
    ],
    debug: debug_tours
  });

  add_my_org_steps(tours['approval_workflow'], 1, 'type=local_facilities&amp;action=manage');

  tours['move_facilities'] = new Tour({
    name: "move_facilities",
    storage: window.sessionStorage,
    template: tour_template,
    onStart: function(_tour)
      {
        $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_start&amp;id=move_facilities');

        window.sessionStorage.setItem('last_tour', 'move_facilities');
      },
    onEnd: function(_tour)
      {
        _tour._removeState('current_step');
        _tour._removeState('end');

        window.sessionStorage.removeItem('last_tour');

        if(notify_end_tour) $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_end&amp;id=move_facilities');
      },
    steps: [
      {
        element: 'body',
        title: "",
        content: "Hello! We've recently integrated all our addresses with Google Maps! We need you to verify all your locations are accurate in the Facility area. Additionally, we've added a new button so you can remove any locations that your organization doesn't own or have the rights to schedule. Examples of these are: outside parks, schools outside your district, a local zoo, etc..."
+ "&lt;br /&gt;&lt;br /&gt;It is VERY IMPORTANT (yes, that's in ALL CAPS) that all of your organization's locations be listed in your Facilities section, as it will ensure you receive all event requests for your locations from internal staff members or external requestors. By listing a location your organization doesn't own, you will begin to receive any event requests at these locations. And getting random emails is no fun!"
+ "&lt;br /&gt;&lt;br /&gt;Please take a few minutes to review your Facilities area to make sure all of the locations listed are ones that your organization owns. Use the new \"Move\" button to shift an outside location into your \"Other Locations\" area. Note: These outside locations will still show up in your add event wizard. You are not deleting them, only moving them to another section."
+ "&lt;br /&gt;&lt;br /&gt;Click the next button below to being this tour to see where the \"Move\" button is in the Facilities section.",
        placement: "center",
        template: wide_tour_template,
        backdrop: true
      },
      {
        skip: function()
          {
            if(document.location.href.indexOf('type=local_facilities&amp;action=manage') &gt;= 0)
            {
              return true;
            }
            return false;
          },
        path: tour_path_prefix + 'type=administration&amp;action=list',
        redirect: true,
        element: "a[href\*='type=local_facilities&amp;action=manage']",
        title: "",
        content: "Click here to go to the Facilities section.",
        placement: "top",
        backdrop: true,
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=local_facilities&amp;action=manage',
        redirect: true,
        element: "div:not([id\*='_temp']).facility_header.facility_odd:visible:first",
        title: "",
        content: "You can hover over any facility to reveal more actions including the one for the moving it.",
        placement: "top",
        onNext: function(_tour)
          {
            $("div:not([id\*='_temp']).facility_header.facility_odd:visible:first").parent().removeAttr('onmouseout');
            $("div:not([id\*='_temp']).facility_header.facility_odd:visible:first").parent().off('mouseout');
            $("div:not([id\*='_temp']).facility_header.facility_odd:visible:first").parent().trigger('mouseover');
          }
      },
      {
        path: tour_path_prefix + 'type=local_facilities&amp;action=manage',
        redirect: true,
        element: "div:not([id\*='_temp']).facility_header.facility_odd:visible a[id\*='_move_link']:visible:first",
        title: "",
        content: "Use this button to move a facility in this section that your organization doesn't own or have the rights to schedule. By clicking this button, you will move the facility to the \"Other Locations\" section. Continue this tour to see where that section is.",
        placement: "left",
        delay: 250
      }
    ],
    debug: debug_tours
  });

  tours['move_facilities']._options.steps.push(
  {
    skip: function()
      {
        if(document.location.href.indexOf('type=administration&amp;action=list') &gt;= 0 || document.location.href.indexOf('type=other_locations&amp;action=manage') &gt;= 0)
        {
          return true;
        }
        return false;
      },
    element: "#top_bar_right a[href\*='type=administration&amp;action=list']:visible",
    title: "",
    content: "Next click '" + my_org_title + "'.",
    placement: "left",
    delay: 100,
    reflex: true,
    hideNext: true,
    backdrop: true,
  });

  /*tours['move_facilities']._options.steps.push(
  {
    skip: function()
      {
        if(document.location.href.indexOf('type=administration&amp;action=list') &gt;= 0 || document.location.href.indexOf('type=other_locations&amp;action=manage') &gt;= 0)
        {
          return true;
        }
        return false;
      },
    element: "#top_bar_right",
    title: "",
    content: "Next click here.",
    placement: "left",
    backdrop: true,
    reflex: true,
    hideNext: true,
    onNext: function(_tour)
      {
        if($('#account_section_menu').length &gt; 0 &amp;&amp; $('#account_section_menu').css('display') == 'none')
        {
          document.getElementById( $("#account_section_link_container").attr('id') ).click();
        }
      }
  });

  tours['move_facilities']._options.steps.push(
  {
    skip: function()
      {
        if(document.location.href.indexOf('type=administration&amp;action=list') &gt;= 0 || document.location.href.indexOf('type=other_locations&amp;action=manage') &gt;= 0)
        {
          return true;
        }
        return false;
      },
    element: "#account_section_menu a[href\*='type=administration&amp;action=list']:visible",
    title: "",
    content: "Then click '" + my_org_title + "'.",
    placement: "left",
    delay: 100,
    reflex: true,
    hideNext: true
  });*/

  tours['move_facilities']._options.steps.push(
  {
    skip: function()
      {
        if(document.location.href.indexOf('type=other_locations&amp;action=manage') &gt;= 0 || $('#other_data').css('display') != 'none')
        {
          return true;
        }
        return false;
      },
    path: tour_path_prefix + 'type=administration&amp;action=list',
    redirect: true,
    element: "#other_title",
    title: "",
    content: "Click here to open the 'Other People &amp; Locations' section.",
    placement: "top",
    backdrop: true,
    reflex: true,
    hideNext: true
  });

  tours['move_facilities']._options.steps.push({
    skip: function()
      {
        if(document.location.href.indexOf('type=other_locations&amp;action=manage') &gt;= 0)
        {
          return true;
        }
        return false;
      },
    path: tour_path_prefix + 'type=administration&amp;action=list',
    redirect: true,
    element: "a[href\*='type=other_locations&amp;action=manage']",
    title: "",
    content: "Click here to go to the Other Locations section.",
    delay: 250,
    placement: "top",
    backdrop: true,
    hideNext: true
  });

  tours['move_facilities']._options.steps.push(
  {
    element: 'body',
    title: "",
    content: "This is the area where your outside locations that you travel to or host events at will be listed. Note: these locations will all be listed in your add event wizard, under the \"other locations\" section. You can search for them, or use our drop down."
+ "&lt;br /&gt;&lt;br /&gt;That's it! Click the next button below to go back to your Facility area, and begin to move your outside locations over.",
    placement: "center",
    template: wide_tour_template,
    backdrop: true
  });

  tours['move_facilities']._options.steps.push(
  {
    path: tour_path_prefix + 'type=local_facilities&amp;action=manage',
    element: 'body',
    title: "",
    content: "Begin to use the move button. You may add any additional locations that your organization owns at this time as well, using the \"add\" button above.",
    placement: "center",
    template: end_wide_tour_template,
    backdrop: true
  });

  add_my_org_steps(tours['move_facilities'], 1, 'type=local_facilities&amp;action=manage');

  tours['quick_admin_tour'] = new Tour({
    name: "quick_admin_tour",
    storage: window.sessionStorage,
    template: tour_template,
    onStart: function(_tour)
      {
        $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_start&amp;id=quick_admin_tour');

        window.sessionStorage.setItem('last_tour', 'quick_admin_tour');
      },
    onEnd: function(_tour)
      {
        _tour._removeState('current_step');
        _tour._removeState('end');

        window.sessionStorage.removeItem('last_tour');

        if(notify_end_tour) $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_end&amp;id=quick_admin_tour');
      },
    steps: [
      {
        element: "body",
        title: "",
        content: "Welcome to Tandem! Here is a quick tour to show you around.",
        placement: "center",
        backdrop: true
      },
      {
        element: "body",
        title: "",
        content: "Tandem is used to add all your events to one master calendar, to make sure rooms and facilities aren't double booked, to get approval on facility requests, and to communicate your events to your community.",
        placement: "center",
        backdrop: true
      },
      {
        element: "#top_bar_left",
        title: "",
        content: "&lt;strong&gt;Add event&lt;/strong&gt; is where you will add all your events, &lt;strong&gt;requests&lt;/strong&gt; is where you will approve any event requests, and &lt;strong&gt;calendar&lt;/strong&gt; is where you can see all your events.",
        placement: top_bar_placement,
        backdrop: true
      }
    ],
    debug: debug_tours
  });

  tours['quick_admin_tour']._options.steps.push(
  {
    element: "#account_section_link_container",
    title: "",
    content: "Your account can be customized in your profile section here.",
    placement: top_bar_placement,
    backdrop: true,
    reflex: true
  });

  tours['quick_admin_tour']._options.steps.push(
  {
    element: "#top_bar_right a[href\*='type=management&amp;action=getting_started']",
    title: "",
    content: "If your account still needs to be set up, add your additional facilities, groups, and staff members by following the \"setup guide\", which is located here. Otherwise, click \"end tour\" and start adding events to your calendar.",
    placement: top_bar_placement,
    hideNext: true,
    backdrop: true,
    template: end_tour_template
  });
      
  /*tours['quick_admin_tour']._options.steps.push(
  {
    element: "#top_bar_right",
    title: "",
    content: "Your account can be customized in your profile section here.",
    placement: top_bar_placement,
    backdrop: true,
    reflex: true,
    onNext: function(_tour)
      {
        if($('#account_section_menu').css('display') == 'none')
        {
          document.getElementById( $("#account_section_link_container").attr('id') ).click();
        }
      }
  });

  tours['quick_admin_tour']._options.steps.push(
  {
    element: "#account_section_menu a[href\*='type=management&amp;action=getting_started']",
    title: "",
    content: "If your account still needs to be set up, add your additional facilities, groups, and staff members by following the \"setup guide\", which is located here. Otherwise, click \"end tour\" and start adding events to your calendar.",
    placement: "left",
    hideNext: true,
    template: end_tour_template
  });*/

  tours['add_logo'] = new Tour({
    name: "add_logo",
    storage: window.sessionStorage,
    template: tour_template,
    onStart: function(_tour)
      {
        $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_start&amp;id=add_logo');

        window.sessionStorage.setItem('last_tour', 'add_logo');
      },
    onEnd: function(_tour)
      {
        _tour._removeState('current_step');
        _tour._removeState('end');

        window.sessionStorage.removeItem('last_tour');

        if(notify_end_tour) $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_end&amp;id=add_logo');
      },
    steps: [
      {
        element: 'body',
        title: "",
        content: "Adding your logo will help your community know they are looking at the correct calendar. Follow this tour to upload one.",
        placement: "center",
        backdrop: true,
        template: wide_tour_template
      },
      {
        skip: function()
          {
            if($('#calendar_customize_data').css('display') != 'none')
            {
              return true;
            }
            return false;
          },
        path: tour_path_prefix + 'type=administration&amp;action=list',
        redirect: true,
        element: "#calendar_customize_title",
        title: "",
        content: "Click here to open the 'Calendar Customization' section.",
        placement: "top",
        backdrop: true,
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=administration&amp;action=list',
        redirect: true,
        element: "a[href\*='type=administration&amp;action=logo_color_options']",
        title: "",
        content: "Click here to go to the 'Logo, Color &amp;amp; Settings' wizard.",
        placement: "top",
        backdrop: true,
        reflex: true,
        delay: 250,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=administration&amp;action=logo_color_options',
        redirect: true,
        element: "#branding_group",
        title: "",
        content: "This is where you upload your logo. Please note the size restraints.",
        placement: "top",
        backdrop: true,
        hideNext: true,
        template: end_tour_template
      }
    ],
    debug: debug_tours
  });

  add_my_org_steps(tours['add_logo'], 1, 'type=administration&amp;action=logo_color_options');

  tours['add_community_member'] = new Tour({
    name: "add_community_member",
    storage: window.sessionStorage,
    template: tour_template,
    onStart: function(_tour)
      {
        $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_start&amp;id=add_community_member');

        window.sessionStorage.setItem('last_tour', 'add_community_member');
      },
    onEnd: function(_tour)
      {
        _tour._removeState('current_step');
        _tour._removeState('end');

        window.sessionStorage.removeItem('last_tour');

        if(notify_end_tour) $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_end&amp;id=add_community_member');
      },
    steps: [
      {
        element: 'body',
        title: "",
        content: "Tandem was built to keep all your community members updated automatically when new events are added, updated, canceled or changed. Click next below to add the members of your community so that they are always up to date!",
        placement: "center",
        template: wide_tour_template,
        backdrop: true
      },
      {
        skip: function()
          {
            if(document.location.href.indexOf('type=user_accounts&amp;action=list') &gt;= 0)
            {
              return true;
            }
            return false;
          },
        path: tour_path_prefix + 'type=administration&amp;action=list',
        redirect: true,
        element: "a[href\*='type=user_accounts&amp;action=list']",
        title: "",
        content: "Click People.",
        placement: "top",
        backdrop: true,
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=user_accounts&amp;action=list',
        redirect: true,
        element: "#common_nav_action_add",
        title: "",
        content: "Click Add.",
        placement: "left",
        backdrop: true,
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=user_accounts&amp;action=add_select',
        redirect: true,
        element: "#add_public",
        title: "",
        content: "Click Add Community Member.",
        placement: "top",
        backdrop: true,
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=user_accounts&amp;action=add_public',
        redirect: true,
        element: "input[name='email']",
        title: "",
        content: "Enter the new person's contact information (including email address, first name, last name), they will be emailed an invitation to sign in and set up a password for their account.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=user_accounts&amp;action=add_public',
        redirect: true,
        element: "#user_type_row",
        title: "",
        content: "Select the correct user type.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=user_accounts&amp;action=add_public',
        redirect: true,
        element: "#new_wizard_submit_button_container_inner",
        title: "",
        content: "Then, add this Person.",
        placement: "right"
      },
      {
        path: tour_path_prefix + 'type=user_accounts&amp;action=add_public',
        redirect: true,
        element: "input[name='email']",
        title: "",
        content: "Scheduling goes faster when more of the people in your organization are working together! Add other people who help with the scheduling of your organization.",
        placement: "top",
        hideNext: true,
        template: end_tour_template
      }
    ],
    debug: debug_tours
  });

  add_my_org_steps(tours['add_community_member'], 1, 'type=user_accounts&amp;action=list');

  tours['setup_azure_ad_or_g_suite'] = new Tour({
    name: "setup_azure_ad_or_g_suite",
    storage: window.sessionStorage,
    template: tour_template,
    onStart: function(_tour)
      {
        $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_start&amp;id=setup_azure_ad_or_g_suite');

        window.sessionStorage.setItem('last_tour', 'setup_azure_ad_or_g_suite');
      },
    onEnd: function(_tour)
      {
        _tour._removeState('current_step');
        _tour._removeState('end');

        window.sessionStorage.removeItem('last_tour');

        if(notify_end_tour) $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_end&amp;id=setup_azure_ad_or_g_suite');
      },
    steps: [
      {
        element: 'body',
        title: "",
        content: "Follow this tour to setup an Azure Active Directory or Google Workspace integration!",
        placement: "center",
        template: wide_tour_template,
        backdrop: true
      },
      {
        skip: function()
          {
            if($('#community_data').css('display') != 'none')
            {
              return true;
            }
            return false;
          },
        path: tour_path_prefix + 'type=administration&amp;action=list',
        redirect: true,
        element: "#community_title",
        title: "",
        content: "Click here to open the 'Integrations' section.",
        placement: "top",
        backdrop: true,
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=administration&amp;action=list',
        redirect: true,
        element: "#community_data",
        title: "",
        content: "Click either the 'Active Directory' or 'Google Workspace' links below to get started.",
        placement: "top",
        backdrop: true,
        reflex: true,
        delay: 250,
        hideNext: true,
        template: end_tour_template
      }
    ],
    debug: debug_tours
  });

  add_my_org_steps(tours['setup_azure_ad_or_g_suite'], 1, 'type=integrations');

  tours['connect_website'] = new Tour({
    name: "connect_website",
    storage: window.sessionStorage,
    template: tour_template,
    onStart: function(_tour)
      {
        $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_start&amp;id=connect_website');

        window.sessionStorage.setItem('last_tour', 'connect_website');
      },
    onEnd: function(_tour)
      {
        _tour._removeState('current_step');
        _tour._removeState('end');

        window.sessionStorage.removeItem('last_tour');

        if(notify_end_tour) $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_end&amp;id=connect_website');
      },
    steps: [
      {
        element: 'body',
        title: "",
        content: "Make sure your updated Tandem calendar is connected to the right parts of your website. Follow this tour to see all the ways you can embed Tandem into your website.",
        placement: "center",
        template: wide_tour_template,
        backdrop: true
      },
      {
        skip: function()
          {
            if($('#community_data').css('display') != 'none')
            {
              return true;
            }
            return false;
          },
        path: tour_path_prefix + 'type=administration&amp;action=list',
        redirect: true,
        element: "#community_title",
        title: "",
        content: "Click here to open the 'Integrations' section.",
        placement: "top",
        backdrop: true,
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=administration&amp;action=list',
        redirect: true,
        element: "a[href\*='type=administration&amp;action=publish_setup']",
        title: "",
        content: "Click 'Website' below.",
        placement: "top",
        backdrop: true,
        reflex: true,
        delay: 250,
        hideNext: true,
        template: end_tour_template
      }
    ],
    debug: debug_tours
  });

  add_my_org_steps(tours['connect_website'], 1, 'type=administration&amp;action=publish_setup');

  tours['enable_weekly_member_emails'] = new Tour({
    name: "enable_weekly_member_emails",
    storage: window.sessionStorage,
    template: tour_template,
    onStart: function(_tour)
      {
        $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_start&amp;id=enable_weekly_member_emails');

        window.sessionStorage.setItem('last_tour', 'enable_weekly_member_emails');
      },
    onEnd: function(_tour)
      {
        _tour._removeState('current_step');
        _tour._removeState('end');

        window.sessionStorage.removeItem('last_tour');

        if(notify_end_tour) $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_end&amp;id=enable_weekly_member_emails');
      },
    steps: [
      {
        element: 'body',
        title: "",
        content: "Tandem will send a weekly schedule to your community members on Sunday evening showcasing their upcoming events for the entire week. Follow this tour to enable it.",
        placement: "center",
        backdrop: true,
        template: wide_tour_template
      },
      {
        skip: function()
          {
            if($('#calendar_customize_data').css('display') != 'none')
            {
              return true;
            }
            return false;
          },
        path: tour_path_prefix + 'type=administration&amp;action=list',
        redirect: true,
        element: "#calendar_customize_title",
        title: "",
        content: "Click here to open the 'Calendar Customization' section.",
        placement: "top",
        backdrop: true,
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=administration&amp;action=list',
        redirect: true,
        element: "a[href\*='type=administration&amp;action=logo_color_options']",
        title: "",
        content: "Click here to go to the 'Logo, Color &amp;amp; Settings' wizard.",
        placement: "top",
        backdrop: true,
        reflex: true,
        delay: 250,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=administration&amp;action=logo_color_options',
        element: "#top_bar_link_email_options_group_title",
        title: "",
        content: "Click 'Email'.",
        placement: "right",
        reflex: true,
        hideNext: true,
        backdrop: true
      },
      {
        path: tour_path_prefix + 'type=administration&amp;action=logo_color_options',
        redirect: true,
        element: "#enable_weekly_member_events_email_row",
        title: "",
        content: "Check this box and click the 'Save' button at the bottom.",
        placement: "top",
        backdrop: true,
        hideNext: true,
        delay: 250,
        template: end_tour_template
      }
    ],
    debug: debug_tours
  });

  add_my_org_steps(tours['enable_weekly_member_emails'], 1, 'type=administration&amp;action=logo_color_options');

  tours['send_announcements'] = new Tour({
    name: "send_announcements",
    storage: window.sessionStorage,
    template: tour_template,
    onStart: function(_tour)
      {
        $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_start&amp;id=send_announcements');

        window.sessionStorage.setItem('last_tour', 'send_announcements');
      },
    onEnd: function(_tour)
      {
        _tour._removeState('current_step');
        _tour._removeState('end');

        window.sessionStorage.removeItem('last_tour');

        if(notify_end_tour) $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_end&amp;id=send_announcements');
      },
    steps: [
      {
        element: 'body',
        title: "",
        content: "Want to send a quick update to your community regarding an event? Use Announcements to send an email notification to specific members in a group, or your entire community.",
        placement: "center",
        backdrop: true,
        template: wide_tour_template
      },
      {
        path: tour_path_prefix + 'type=groups&amp;action=announcements',
        redirect: true,
        element: "div:not([id\*='_temp']).group_header.group_even:visible a[id\*='_message_link']:visible:first",
        title: "",
        content: "Click here.",
        placement: "left",
        reflex: true,
        delay: 250,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=groups&amp;action=announcements',
        redirect: true,
        element: ".group_action_message_iframe:visible:first",
        title: "",
        content: "Add a subject and body.  Then check the boxes for the groups of people to which you'd like to send the message.  Finally, click the 'Send' button in the bottom right.  You may also use the Announcements links next to each group to target more specific groups of people.",
        placement: "top",
        delay: 1000
      },
      {
        element: 'body',
        title: "",
        content: "Have fun sending Announcements!",
        placement: "center",
        hideNext: true,
        template: end_wide_tour_template
      }
    ],
    debug: debug_tours
  });

  tours['add_facility_rental'] = new Tour({
    name: "add_facility_rental",
    storage: window.sessionStorage,
    template: tour_template,
    onStart: function(_tour)
      {
        $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_start&amp;id=add_facility_rental');

        window.sessionStorage.setItem('last_tour', 'add_facility_rental');
      },
    onEnd: function(_tour)
      {
        _tour._removeState('current_step');
        _tour._removeState('end');

        window.sessionStorage.removeItem('last_tour');

        if(notify_end_tour) $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_end&amp;id=add_facility_rental');
      },
    steps: [
      {
        element: "a[href\*='type=facility_event&amp;action=add']",
        title: "",
        content: "Click Submit Facility Rental",
        placement: "top",
        backdrop: true,
        hideNext: true
      },
      {
        skip: function()
          {
            if($('#accept_terms').length &lt; 1)
            {
              return true;
            }
            return false;
          },
        path: tour_path_prefix + 'type=facility_event&amp;action=add',
        redirect: true,
        element: '#accept_terms',
        title: "",
        content: "Review the terms aboove and check this box to agree to them.",
        placement: "right",
        reflex: true,
      },
      {
        skip: function()
          {
            if($('#accept_terms').length &lt; 1)
            {
              return true;
            }
            return false;
          },
        path: tour_path_prefix + 'type=facility_event&amp;action=add',
        redirect: true,
        element: "#event_finish_button_container_inner:visible",
        title: "",
        content: "Click here to continue to the \"Submit Facility Rental\" wizard.",
        placement: "right",
        hideNext: true,
      },
      {
        skip: function()
          {
            if($('#error').length &lt; 1)
            {
              return true;
            }
            return false;
          },
        path: tour_path_prefix + 'type=facility_event&amp;action=add',
        element: "#error",
        title: "",
        content: "Fix these errors before continuing.",
        placement: "bottom",
        hideNext: true,
      },
      {
        path: tour_path_prefix + 'type=facility_event&amp;action=add',
        element: '#locations_add',
        title: "",
        content: "Choose the location that you want.",
        placement: "bottom"
      },
      {
        path: tour_path_prefix + 'type=facility_event&amp;action=add',
        redirect: true,
        element: '#form_date_start',
        title: "",
        content: "Select the date of your rental event.",
        placement: "bottom"
      },
      {
        path: tour_path_prefix + 'type=facility_event&amp;action=add',
        redirect: true,
        element: 'input#time_start',
        title: "",
        content: "Enter the start time of your rental event.",
        placement: "bottom"
      },
      {
        path: tour_path_prefix + 'type=facility_event&amp;action=add',
        redirect: true,
        element: 'input#time_end',
        title: "",
        content: "Enter the time your rental event ends.",
        placement: "bottom"
      },
      {
        path: tour_path_prefix + 'type=facility_event&amp;action=add',
        redirect: true,
        element: 'input#private_checkbox:visible:first',
        title: "",
        content: "If your rental event should not be visible to the public, check this box.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=facility_event&amp;action=add',
        redirect: true,
        element: 'input#all_day_checkbox',
        title: "",
        content: "Check this box for an all day rental event.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=facility_event&amp;action=add',
        redirect: true,
        element: 'input#recurs_checkbox:visible',
        title: "",
        content: "Check this box to create a recurring rental event.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=facility_event&amp;action=add',
        redirect: true,
        element: 'input#multi_day_checkbox',
        title: "",
        content: "Check this box if your rental event goes all through the night and end on another day.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=facility_event&amp;action=add',
        redirect: true,
        element: '#name',
        title: "",
        content: "Enter the name of your rental event.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=facility_event&amp;action=add',
        redirect: true,
        element: '#description_reveal',
        title: "",
        content: "Describe your event.  This description will show up on the event details page.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=facility_event&amp;action=add',
        redirect: true,
        element: '#groups_add',
        title: "",
        content: "Select your group.  If your group is not listed and this field is required, contact this organization to get them to add it.",
        placement: "top",
      },
      {
        path: tour_path_prefix + 'type=facility_event&amp;action=add',
        redirect: true,
        element: '#num_attendees',
        title: "",
        content: "Add the number of attendees for your rental event.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=facility_event&amp;action=add',
        redirect: true,
        element: '#line_items_container',
        title: "",
        content: "If you have been filling out this form as you go, you will see any line items for your rental listed here.  You may also select any optional line items you need for your event.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=facility_event&amp;action=add',
        redirect: true,
        element: "#forms_container",
        title: "",
        content: "Any required forms for renting this facility that this organization needs you to fill out and return (fax, scan and email) back to them will be listed here.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=facility_event&amp;action=add',
        redirect: true,
        element: "#payment_container",
        title: "",
        content: "Select your payment method and billing address here.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=facility_event&amp;action=add',
        redirect: true,
        element: "#notes_reveal",
        title: "",
        content: "Enter any additional publicly visible notes describing your rental event here.",
        placement: "top",
      },
      {
        path: tour_path_prefix + 'type=facility_event&amp;action=add',
        redirect: true,
        element: "#setup_instructions_reveal",
        title: "",
        content: "Enter any non-public setup instructions, requirements, or communications that the organization needs to know about your event here.",
        placement: "top",
      },
      {
        path: tour_path_prefix + 'type=facility_event&amp;action=add',
        redirect: true,
        element: "#setup_picture_data_label",
        title: "",
        content: "If you have access to this organization's room setup options, upload the room setup image you downloaded.",
        placement: "top",
      },
      {
        path: tour_path_prefix + 'type=facility_event&amp;action=add',
        redirect: true,
        element: "#event_finish_button_container_inner:visible",
        title: "",
        content: "Click here to add your event.",
        placement: "right",
        hideNext: true,
        template: end_tour_template
      }
    ],
    debug: debug_tours
  });

  tours['setup_facility_rentals'] = new Tour({
    name: "setup_facility_rentals",
    storage: window.sessionStorage,
    template: tour_template,
    onStart: function(_tour)
      {
        $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_start&amp;id=setup_facility_rentals');

        window.sessionStorage.setItem('last_tour', 'setup_facility_rentals');
      },
    onEnd: function(_tour)
      {
        _tour._removeState('current_step');
        _tour._removeState('end');

        window.sessionStorage.removeItem('last_tour');

        if(notify_end_tour) $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_end&amp;id=setup_facility_rentals');
      },
    steps: [
      {
        element: 'body',
        title: "",
        content: "Follow this tour to setup Facility Rentals.",
        placement: "center",
        backdrop: true,
        template: wide_tour_template
      },
      {
        skip: function()
          {
            if(document.location.href.indexOf('type=facility_request_system&amp;action=list') &gt;= 0)
            {
              return true;
            }
            return false;
          },
        element: "#top_bar_left a[href\*='type=facility_request_system&amp;action=list']:visible",
        title: "",
        content: "Click 'Facility Rentals'.",
        placement: "right",
        reflex: true,
        hideNext: true,
        backdrop: true
      },
      {
        skip: function()
          {
            if($('#facility_requests_data').css('display') != 'none')
            {
              return true;
            }
            return false;
          },
        path: tour_path_prefix + 'type=facility_request_system&amp;action=list',
        redirect: true,
        element: "#facility_requests_title",
        title: "",
        content: "Click here to open the 'Setup &amp;amp; Configure' section.",
        placement: "top",
        backdrop: true,
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=facility_request_system&amp;action=list',
        redirect: true,
        element: "#facility_requests_data",
        title: "",
        content: "We'll go through the order in which you'll want to go through these.",
        placement: "top",
        delay: 250,
      },
      {
        path: tour_path_prefix + 'type=facility_request_system&amp;action=list',
        redirect: true,
        element: "a[href\*='type=group_sub_type&amp;action=list']",
        title: "",
        content: "1) Group Sub Types&lt;br /&gt;&lt;br /&gt;Here is where you'll setup the different categories of groups that will be renting your facilities (which will then allow you to bill them at different rates).  Examples: Non-profit and For-profit.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=facility_request_system&amp;action=list',
        redirect: true,
        element: "a[href\*='type=pay_rates_facility_rentals&amp;action=list']",
        title: "",
        content: "2) Pay Rates&lt;br /&gt;&lt;br /&gt;Here is where you'll setup how much renting your facilities will cost.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=facility_request_system&amp;action=list',
        redirect: true,
        element: "a[href\*='type=line_items&amp;action=list']",
        title: "",
        content: "3) Line Items&lt;br /&gt;&lt;br /&gt;Here is where you'll use the Pay Rates you already set up to assign pay rates to facilities and when they should be applied.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=facility_request_system&amp;action=list',
        redirect: true,
        element: "a[href\*='type=forms&amp;action=list&amp;page=1']",
        title: "",
        content: "4) Forms&lt;br /&gt;&lt;br /&gt;Here is where you'll add any other forms that the people renting your facilities will need to fill out (example: proof of insurance).",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=facility_request_system&amp;action=list',
        redirect: true,
        element: "a[href\*='type=available_times&amp;action=list']",
        title: "",
        content: "5) Available Times&lt;br /&gt;&lt;br /&gt;Here is where you'll setup the dates and times people are allowed to rent your facilities.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=facility_request_system&amp;action=list',
        redirect: true,
        element: "body",
        title: "",
        content: "6) Make your facilities rentable&lt;br /&gt;&lt;br /&gt;Go to the 'Facilities' section in '" + my_org_title + "'.  Find the facilities that you want to make rentable and edit them.  Check the 'rentable' box, add a 'capacity', and choose at least 1 'Available Time', and lastly click the 'Modify' button.",
        placement: "center"
      },
      {
        path: tour_path_prefix + 'type=facility_request_system&amp;action=list',
        redirect: true,
        element: "a[href\*='type=administration&amp;action=facility_rental_options']",
        title: "",
        content: "7) Make it available to the public&lt;br /&gt;&lt;br /&gt;Go to the 'Options' wizard below - and check the 'Make available to the public' box (and review the other options as well).",
        placement: "top"
      },
      {
        element: "body",
        title: "",
        content: "Congrats!  Your facilities are now rentable!",
        placement: "center",
        hideNext: true,
        template: end_wide_tour_template,
      },
    ],
    debug: debug_tours
  });

  tours['setup_transportation'] = new Tour({
    name: "setup_transportation",
    storage: window.sessionStorage,
    template: tour_template,
    onStart: function(_tour)
      {
        $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_start&amp;id=setup_transportation');

        window.sessionStorage.setItem('last_tour', 'setup_transportation');
      },
    onEnd: function(_tour)
      {
        _tour._removeState('current_step');
        _tour._removeState('end');

        window.sessionStorage.removeItem('last_tour');

        if(notify_end_tour) $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_end&amp;id=setup_transportation');
      },
    steps: [
      {
        element: 'body',
        title: "",
        content: "Follow this tour to setup Transportation.",
        placement: "center",
        backdrop: true,
        template: wide_tour_template
      },
      {
        skip: function()
          {
            if(document.location.href.indexOf('type=transportation_system&amp;action=list') &gt;= 0)
            {
              return true;
            }
            return false;
          },
        element: "#top_bar_left a[href\*='type=transportation_system&amp;action=list']:visible",
        title: "",
        content: "Click 'Transportation'.",
        placement: "right",
        hideNext: true,
        backdrop: true
      },
      {
        skip: function()
          {
            if($('#transportation_data').css('display') != 'none')
            {
              return true;
            }
            return false;
          },
        path: tour_path_prefix + 'type=transportation_system&amp;action=list',
        redirect: true,
        element: "#transportation_title",
        title: "",
        content: "Click here to open the 'Setup &amp;amp; Configure' section.",
        placement: "top",
        backdrop: true,
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=transportation_system&amp;action=list',
        redirect: true,
        element: "#transportation_data",
        title: "",
        content: "We'll go through the order in which you'll want to go through these.",
        placement: "top",
        delay: 250
      },
      {
        path: tour_path_prefix + 'type=transportation_system&amp;action=list',
        redirect: true,
        element: "a[href\*='type=vehicle_type&amp;action=list']",
        title: "",
        content: "1) Vehicle Types&lt;br /&gt;&lt;br /&gt;Here is where you'll setup the various vehicle types (bus sizes).  Examples: Bus, Small Bus, Van etc.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=transportation_system&amp;action=list',
        redirect: true,
        element: "a[href\*='type=vehicles&amp;action=list']",
        title: "",
        content: "2) Vehicles&lt;br /&gt;&lt;br /&gt;Here is where you'll set each unique vehicle.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=transportation_system&amp;action=list',
        redirect: true,
        element: "a[href\*='type=user_accounts&amp;action=list&amp;filter_driver=t']",
        title: "",
        content: "3) Drivers&lt;br /&gt;&lt;br /&gt;Set up all of your drivers here. You can set license expiration dates so that the transportation administrator is notified when drivers licenses need recertification.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=transportation_system&amp;action=list',
        redirect: true,
        element: '#transportation_data',
        title: "",
        content: "Continue if you want to review options, charters, and the transportation billing system. Otherwise you can close this tour.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=transportation_system&amp;action=list',
        redirect: true,
        element: "a[href\*='type=administration&amp;action=transportation_options']",
        title: "",
        content: "Options&lt;br /&gt;&lt;br /&gt;Visit options to require transportation requests to fill out the following fields in add event:&lt;br /&gt;School Depart,&lt;br /&gt;Destination Arrival,&lt;br /&gt;Destination Depart,&lt;br /&gt;Return Arrival.&lt;br /&gt;You can also set a transportation lock to take place on events X hours before an event takes place so noone can try to pull a fast change on transportation without calling them.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=transportation_system&amp;action=list',
        redirect: true,
        element: "a[href\*='type=charters&amp;action=list']",
        title: "",
        content: "Charters&lt;br /&gt;&lt;br /&gt;Some school districts use charter buses or other vehicles for their transportation needs.  If you require charters then this is the section you will use to keep track of and organize your charter companies.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=transportation_system&amp;action=list',
        redirect: true,
        element: "a[href\*='type=pay_rates_transportation&amp;action=list']",
        title: "",
        content: "Pay Rates&lt;br /&gt;&lt;br /&gt;Enter a driver pay rate and a standby rate you can use to calculate the cost of the trip.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=transportation_system&amp;action=list',
        redirect: true,
        element: "a[href\*='type=odometer_rates&amp;action=list']",
        title: "",
        content: "Odometer Rates&lt;br /&gt;&lt;br /&gt;If your district does transportation billing based on odometer rates, this is the section where you can define these rates.  You can define different rates for different periods of time if your odometer rates change from year to year or even quarterly.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=transportation_system&amp;action=list',
        redirect: true,
        element: "a[href\*='type=minimum_trip_hours&amp;action=list']",
        title: "",
        content: "Minimum Trip Hours&lt;br /&gt;&lt;br /&gt;Depending on how your district does transportation billing, you might need to define the minimum amount of hours billed per trip.  If you require bus trips that are at least one hour long but a trip uses only 30 minutes of that time, the system can be instructed to bill the trip for the full hour.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=transportation_system&amp;action=list',
        redirect: true,
        element: "a[href\*='type=budgets&amp;action=list']",
        title: "",
        content: "Budgets&lt;br /&gt;&lt;br /&gt;This is where you can define the budgets for your district that can be used in trips.  Trips can be billed to one budget or split among several different budgets.  It is generally much more efficient for transportation billing administrators if schools use one pooled budget to bill trips and deal with splitting the cost on their own.  This will vary based on your district's policies.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=transportation_system&amp;action=list',
        redirect: true,
        element: "a[href\*='type=bill_to&amp;action=list']",
        title: "",
        content: "Bill Tos&lt;br /&gt;&lt;br /&gt;Bill-tos are external entities that need to be billed for an event because they are choosing to pick up part of the cost.  Examples include promotionals for zoo visits where the zoo pays part of the cost or parent groups that help to fund certain trips.",
        placement: "top"
      },
      {
        element: "body",
        title: "",
        content: "Once you are all set up you need to set up people that manage the transportation requests and add trips.  Head over to &lt;b&gt;" + my_org_title + " &gt; People&lt;/b&gt; and set up a person as an author and under 'Other Permissions' select the 'Transportation Administrator' permission group. Next, under 'Notification Groups' select the 'Transportation Administrator' notification group. Now that person is set to start using transportation!",
        placement: "center",
        hideNext: true,
        template: end_wide_tour_template
      },
    ],
    debug: debug_tours
  });

  tours['transportation_overview'] = new Tour({
    name: "transportation_overview",
    storage: window.sessionStorage,
    template: tour_template,
    onStart: function(_tour)
      {
        $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_start&amp;id=transportation_overview');

        window.sessionStorage.setItem('last_tour', 'transportation_overview');
      },
    onEnd: function(_tour)
      {
        _tour._removeState('current_step');
        _tour._removeState('end');

        window.sessionStorage.removeItem('last_tour');

        if(notify_end_tour) $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_end&amp;id=transportation_overview');
      },
    steps: [
      {
        element: 'body',
        title: "",
        content: "Tandem has a built in system for issuing transportation requests within the add/request event tool. Tranportation requests can then be handled by transportation staff to approve, decline, and add trips to them",
        placement: "center",
        template: wide_tour_template
      },
      {
        path: tour_path_prefix + 'type=transportation_system&amp;action=list',
        redirect: true,
        element: "a[href\*='type=trips&amp;action=list']",
        title: "",
        content: "Trips&lt;br /&gt;&lt;br /&gt;Trips are used to identify drivers and vehicles traveling from an origin to a destination.  They can be one-way or round-trip and different drivers can be chosen for each leg of the trip.  Each event in the system can have multiple trips associated with it if multiple drivers and vehicles are required.  Each trip can go through an approval process and be billed by the accounting system.",
        placement: "bottom",
        template: wide_tour_template,
      },
      {
        path: tour_path_prefix + 'type=transportation_system&amp;action=list',
        redirect: true,
        element: "a[href\*='type=transport&amp;action=list_alerts']",
        title: "",
        content: "Requests&lt;br /&gt;&lt;br /&gt;Requests allow transportation administrators to view all requested trips and to approve or reject them based on bus availability or other scheduling needs.  Each trip request can be given a specific message depending on whether it was approved or rejected.  If transportation is rejected then the person submitting the event has the opportunity to correct the problem and re-submit the trip request.  Once a request is approved, it automatically moves over to the Trips section for management.",
        placement: "bottom",
        template: wide_tour_template,
      },
      {
        path: tour_path_prefix + 'type=transportation_system&amp;action=list',
        redirect: true,
        element: "a[href\*='type=trans_reports&amp;action=list']",
        title: "",
        content: "Transportation Reports&lt;br /&gt;&lt;br /&gt;These provide transportation administrators with the ability to create custom reports of trips, vehicles or drivers in the system.  Included are numerous fields such as destinations and departure times which will give you the ability to make very customized reports to keep track of the transportation in your district.",
        placement: "bottom",
        template: wide_tour_template,
      },
      {
        path: tour_path_prefix + 'type=transportation_system&amp;action=list',
        redirect: true,
        element: "a[href\*='type=transport&amp;action=get_quote']",
        title: "",
        content: "Get Quote/Estimate&lt;br /&gt;&lt;br /&gt;This section provides you with the ability to calculate a hypothetical trip cost.  This can be very useful if a school is considering a trip but they are not sure if they can fit it into their budget.  Although it is only a rough estimate of the total cost it will at least give the school an idea of what it will have to pay.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=transportation_system&amp;action=list',
        redirect: true,
        element: "a[href\*='type=trips&amp;action=driver_dispatch_date']",
        title: "",
        content: "Driver Dispatch&lt;br /&gt;&lt;br /&gt;Use this to generate a PDF document for either one date or a range of dates.  Each page in the document will correspond to a trip that a driver is going to be driving for.  Driver Dispatches contain all of the necessary information for the driver such as destination name and address, order of stops and times and dates.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=transportation_system&amp;action=list',
        redirect: true,
        element: "a[href\*='type=trans_reports&amp;action=bid_sheet']",
        title: "",
        content: "Driver Bid Sheet&lt;br /&gt;&lt;br /&gt;If your school district uses a bidding system for your bus drivers, the Driver Bid Sheet section allows you to print out a trip list for each day so that drivers can bid on the trips.  Each PDF bid sheet contains empty spaces for drivers to place their names next to the trips they want to do.  Additionally, if a trip is already taken, it will be listed with the name of the driver that has secured that trip.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=transportation_system&amp;action=list',
        redirect: true,
        element: "a[href\*='type=trip_bills&amp;action=list']",
        title: "",
        content: "Billing Events&lt;br /&gt;&lt;br /&gt;View all of the billing events that you have generated by billing trips.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=transportation_system&amp;action=list',
        redirect: true,
        element: "a[href\*='type=trip_billing_exports&amp;action=list']",
        title: "",
        content: "Billing Exports&lt;br /&gt;&lt;br /&gt;Here you can export billable events for processing into your accounting system.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=transportation_system&amp;action=list',
        redirect: true,
        element: "a[href\*='type=billing_exports&amp;action=customer_report']",
        title: "",
        content: "Billing Report By Customer&lt;br /&gt;&lt;br /&gt;It allows you to see all expenditures in a date range for only a specific customer.  Since customers are schools, this will allow you to view all billable events at a specific school organized by budget.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=transportation_system&amp;action=list',
        redirect: true,
        element: "a[href\*='type=administration&amp;action=invoice_id_lookup&amp;from_section=transport']",
        title: "",
        content: "Invoice ID Lookup&lt;br /&gt;&lt;br /&gt;If you have printed out a PDF of a billing event. You can use this tool to quickly locate it in the system at any time.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=transportation_system&amp;action=list',
        redirect: true,
        element: "#transportation_title",
        title: "",
        content: "Setup &amp; Configure&lt;br /&gt;&lt;br /&gt;This section contains the parts you need to setup in order to start using Transportation.  Please refer to the 'How to get started' tour at the top of this page to learn more.",
        placement: "top"
      },
      {
        element: "body",
        title: "",
        content: "That concludes this overview of the transportation system in Tandem.  To continue setting up the system, click 'How to get started' above.",
        placement: "center",
        hideNext: true,
        template: end_wide_tour_template
      },
    ],
    debug: debug_tours
  });

  tours['left_hand_nav_walkthrough'] = new Tour({
    name: "left_hand_nav_walkthrough",
    storage: window.sessionStorage,
    template: tour_template,
    onStart: function(_tour)
      {
        $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_start&amp;id=left_hand_nav_walkthrough');

        window.sessionStorage.setItem('last_tour', 'left_hand_nav_walkthrough');
      },
    onEnd: function(_tour)
      {
        _tour._removeState('current_step');
        _tour._removeState('end');

        window.sessionStorage.removeItem('last_tour');

        if(notify_end_tour) $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_end&amp;id=left_hand_nav_walkthrough');
      },
    steps: [
      {
        element: 'body',
        title: "",
        content: "Hello! We have an exciting new look for your Tandem experience, starting today. Here is a quick tour of what is new.",
        placement: "center",
        backdrop: true,
        template: wide_tour_template
      },
      {
        element: "#top_bar",
        title: "",
        content: "Previously, all the tabs that were listed horizontally across the top of the page. Now, your navigation bar has been moved to the left hand side of the screen, featuring all the same sections as before.",
        placement: "right",
        backdrop: true,
      },
      {
        element: "#top_bar_account",
        title: "",
        content: "Your organization profile photo and name are now always displayed - even when you are signed in.",
        placement: "right",
        backdrop: true,
      },
      {
        element: "#top_bar_account_logo img",
        title: "",
        content: "Your organization profile photo is now square (before it was a horizontal rectangle). We have re-uploaded your organization's profile photo with the new shape in mind. Let us know if it doesn't look right and we will help get a new one in place!",
        placement: "right",
        backdrop: true,
      },
      {
        element: "#top_bar_right",
        title: "",
        content: "There is now more room to show other links that used to be hidden in a drop-down menu like '" + my_org_title + "' and 'Setup Guide'.",
        placement: "right",
        backdrop: true,
      },
      {
        element: "#account_section_link",
        title: "",
        content: "You now have the ability to collapse the left hand navigation bar and only show the icons. Click here and then 'Collapse' to transition to this view.",
        backdrop: true,
        reflex: true,
      },
      {
        element: "#top_bar_link_collapse",
        title: "",
        content: "Here is that new 'Collapse' option.",
        placement: "right",
        reflex: true,
        delay: 250,
      },
      {
        path: tour_path_prefix + 'type=view&amp;action=month',
        element: ".common_nav_date_navigation",
        title: "",
        content: "The navigation area here has been refined. The year and month are clickable, so you can jump back and forward to see events on your calendar.",
        placement: "bottom",
        backdrop: true
      },
      {
        path: tour_path_prefix + 'type=view&amp;action=month',
        element: "a.vm_event_normal:first",
        title: "",
        content: "The individual event detail pages has been updated as well. The 'Edit' and 'Cancel' actions are now buttons - which makes them more obvious and easier to click.  Additionally, a map display has been added to better help people understand where the event will be.",
        placement: "bottom",
        backdrop: true,
      },
      {
        element: "#top_bar_link_config",
        title: "",
        content: "Many other parts of Tandem has also been refined.  The 'Facilities', 'Groups', and 'Equipment' sections in '" + my_org_title + "' have also been refined and sport a cleaner look-and-feel.",
        placement: "right",
        backdrop: true,
      },
      {
        element: 'body',
        title: "",
        content: "We would love your feedback. Play around and then send it to us!&lt;br /&gt;&lt;br /&gt;Thanks!",
        placement: "center",
        backdrop: true,
        template: end_wide_tour_template,
      },
    ],
    debug: debug_tours
  });

  tours['add_people2'] = new Tour({
    name: "add_people2",
    storage: window.sessionStorage,
    template: tour_template,
    onStart: function(_tour)
      {
        $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_start&amp;id=add_people2');

        window.sessionStorage.setItem('last_tour', 'add_people2');
      },
    onEnd: function(_tour)
      {
        _tour._removeState('current_step');
        _tour._removeState('end');

        window.sessionStorage.removeItem('last_tour');

        if(notify_end_tour) $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_end&amp;id=add_people2');
      },
    steps: [
      {
        element: 'body',
        title: "",
        content: "Scheduling is a lot easier when everyone in your organization is collaborating with the same tool."
+ "&lt;br /&gt;"
+ "&lt;br /&gt;Follow this tour to add more people to your Tandem account!",
        placement: "center",
        template: wide_tour_template,
        backdrop: true
      },
      {
        skip: function()
          {
            if(document.location.href.indexOf('type=user_accounts&amp;action=list') &gt;= 0 || document.location.href.indexOf('type=user_accounts&amp;action=add') &gt;= 0)
            {
              return true;
            }
            return false;
          },
        path: tour_path_prefix + 'type=administration&amp;action=list',
        redirect: true,
        element: "a[href\*='type=user_accounts&amp;action=list']",
        title: "",
        content: "Click People.",
        placement: "top",
        backdrop: true,
        reflex: true,
        hideNext: true
      },
      {
        skip: function()
          {
            if(document.location.href.indexOf('type=user_accounts&amp;action=add') &gt;= 0)
            {
              return true;
            }
            return false;
          },
        path: tour_path_prefix + 'type=user_accounts&amp;action=list',
        redirect: true,
        element: "#common_nav_action_add",
        title: "",
        content: "Click Add.",
        placement: "left",
        backdrop: true,
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=user_accounts&amp;action=add',
        element: "input[name='email']",
        title: "",
        content: "Enter the new person's contact information (including email address, first name, last name), they will be emailed an invitation to sign in and set up a password for their account.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=user_accounts&amp;action=add',
        element: "#user_type_row",
        title: "",
        content: "Select the correct user type.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=user_accounts&amp;action=add',
        element: "#user_type_admin",
        title: "",
        content: "Admins, have full permissions in the system. They can add events directly to the calendar, edit events and times, see public and private events, add any additional people to your Tandem account, and more  You will likely only have one or 2 of these accounts.  But it really depends on your organization's size and needs.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=user_accounts&amp;action=add',
        element: "#user_type_scheduler",
        title: "",
        content: "Managers can see private and public events, approve events in facilities of which they are in charge, and create and edit events of any groups, locations, and equipment to which they are a manager. Their scheduling permissions are defined by Admins.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=user_accounts&amp;action=add',
        element: "#user_type_author",
        title: "",
        content: "Authors can make event requests which will then need to be approved by a manager or admin before they appear on the calendar. They will receive email updates for their event requests when they are approved or declined.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=user_accounts&amp;action=add',
        element: "#user_type_member",
        title: "",
        content: "Members can view both public and private events for groups of which they are a member. For those events they will also receive event notifications - these include: event cancellations, time changes, location changes, and any other event updates.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=user_accounts&amp;action=add',
        element: "#user_type_follower",
        title: "",
        content: "Followers can see all the public events on your calendar. They can be set up as followers of specific groups by an admin or by a manager of a group in this tool. Otherwise, they can sign themselves up and start following the groups they are interested in. Like members followers receive event notifications however, this is only for public events.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=user_accounts&amp;action=add',
        element: "#user_type_viewer",
        title: "",
        content: "Viewers can simply see all events on your calendar.  They have signed up themselves or have been added by an admin and may be subscribed to a calendar feed in their personal calendar.  But they are not following anything and will not receive normal updates via email.  If you are using facility rentals, however, they will receive email updates for their rental requests when they are approved or declined.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=user_accounts&amp;action=add',
        element: "#pe_admin_approval",
        title: "",
        content: "If you're adding an admin, All you really need to check is whether or not this person needs to be a primary approver for requests.  The primary approver role is a catchall for any requests that come through that don't match any other specific approval workflow.  Also, if you don't set up approval workflows for any of your facilities, groups or equipment then this approver would handle every event request.  You can have more than one primary approver on your calendar.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=user_accounts&amp;action=add',
        element: "#group_member_add",
        title: "",
        content: "Here you may specify any groups that you need this admin to be a member of.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=user_accounts&amp;action=add',
        element: "#user_type_scheduler",
        title: "",
        content: "Select 'Manager'",
        placement: "right",
        delay: 250,
        backdrop: true,
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=user_accounts&amp;action=add',
        element: "#user_viewing_groups",
        title: "",
        content: "If you're adding a manager, you can choose whether or not to restrict them from viewing all private events.  If so, you can select groups they will be a member of and they will only see private events for those groups.",
        placement: "top",
        delay: 250
      },
      {
        path: tour_path_prefix + 'type=user_accounts&amp;action=add',
        element: "#group_member_add",
        title: "",
        content: "Here you may specify any groups that you need this manager to be a member of.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=user_accounts&amp;action=add',
        element: "#scheduling_permissions",
        title: "",
        content: "Now you can select the schools, facilities, groups and equipment they manage. Note that after you select something, you can toggle extra permissions and approval abilities on these objects.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=user_accounts&amp;action=add',
        element: "#scheduling_permissions",
        title: "",
        content: "Toggling between 'Schedule and Manage' means that a person will be able to Freely Schedule events for an object without needing approval so long as all other facilities, groups, and equipment in the event are also managed by this person.  Also, they will be able to edit the object and set followers and managers for it.  'Schedule Only' will switch permissions to only allow this person to freely schedule the object without needing approval to do so.  Note for school districts.  If you give someone manage permissions at the school level, they will also receive manage permissions for all of that school's facilities, groups, and equipment.",
        placement: "center",
        backdrop: true
      },
      {
        path: tour_path_prefix + 'type=user_accounts&amp;action=add',
        element: "#scheduling_permissions",
        title: "",
        content: "Primary Approver makes this person a step 1 approver on an object.  They will receive an email when a request for the object is made.  Optional Approver is essentially a backup role and they will not be emailed about requests for the object but can jump in and make a decision to approve for requests that include it. Cannot Approve will not include this user in the approval process for the object.",
        placement: "center",
        backdrop: true
      },
      {
        path: tour_path_prefix + 'type=user_accounts&amp;action=add',
        element: "#user_group_add",
        title: "",
        content: "Unlike permissions being granted to specific objects like managing permissions above, Other Permissions is where you can grant users permissions to certain sections in Tandem.   You can give users full access to add, edit, or delete any events without needing approval for instance, by selecting the 'Calendar Operators' permission group."
        +"&lt;br /&gt;For Transportation Administrators and others dealing with transportation requests you would give them on of the Transportation  permission groups.  Now they will be able to approve transportation requests and assign buses and drivers to trips."
        +"&lt;br /&gt;Optionally, if you are the lead person overseeing all approvals and need to follow their progress via email. You can select 'Event Request Event Manager' to get emailed about any and all event request decisions and submissions as they occur.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=user_accounts&amp;action=add',
        element: "#driver_group_title_title",
        title: "",
        content: "To make a person available as a bus driver in transportation, expand the Driver Options and select the 'Bus Driver'  or 'Secondary Driver' checkbox.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=user_accounts&amp;action=add',
        element: "#following_group_title_title",
        title: "",
        content: "Finally, the following section allows you to set up a user to receive email updates based on different objects they are following.  These fields are all searched for individually.  Meaning all events that match any of these event attributes will be included.  Also, if you are following an entire school you will not need to follow a group that belongs to the school as that would be redundant.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=user_accounts&amp;action=add',
        element: "#user_type_author",
        title: "",
        content: "Select 'Author'",
        placement: "right",
        delay: 250,
        backdrop: true,
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=user_accounts&amp;action=add',
        element: "#private",
        title: "",
        content: "Authors may or may not also be staff members of your organization.  You can check 'Staff Member' to show and assign other permissions, driver settings, and following for this person.  (covered earlier in this tutorial)  People created as Members have these same fields available.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=user_accounts&amp;action=add',
        element: "body",
        title: "",
        content: "Followers and Viewers both have reduced permissions than the user types already covered.",
        placement: "center",
      },
      {
        path: tour_path_prefix + 'type=user_accounts&amp;action=add',
        redirect: true,
        element: "#new_wizard_submit_button_container_inner",
        title: "",
        content: "Click 'Add' and the person will be sent an activation email to use to activate their account.",
        placement: "right"
      },
      {
        path: tour_path_prefix + 'type=user_accounts&amp;action=add',
        redirect: true,
        element: "input[name='email']",
        title: "",
        content: "Start a chat with us if you have more questions. Happy Scheduling!",
        placement: "top",
        hideNext: true,
        template: end_tour_template
      }
    ],
    debug: debug_tours
  });

  add_my_org_steps(tours['add_people2'], 1, 'type=user_accounts&amp;action=list');

  /*******/
  tours['people_overview'] = new Tour({
    name: "people_overview",
    storage: window.sessionStorage,
    template: tour_template,
    onStart: function(_tour)
      {
        $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_start&amp;id=people_overview');

        window.sessionStorage.setItem('last_tour', 'people_overview');
      },
    onEnd: function(_tour)
      {
        _tour._removeState('current_step');
        _tour._removeState('end');

        window.sessionStorage.removeItem('last_tour');

        if(notify_end_tour) $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_end&amp;id=people_overview');
      },
    steps: [
      {
        element: 'body',
        title: "",
        content: "People are users of the system and there are a handful of ways for people to become users.  One way is to use the Sign-Up option on the login page.  The second way is for a calendar administrator to enter the user manually in the People section.  The People section has the ability to give people permissions and roles, such as entering events and approval roles. The third way of adding users is to import users using the import feature.  Finally, if you are using Google Suite or Active Directory on the Azure platform you can import users, then edit their accounts in people and grant them permissions.",
        placement: "center",
        template: wide_tour_template,
        backdrop: true
      },
      {
        path: tour_path_prefix + 'type=user_accounts&amp;action=list',
        element: ".common_list_container:first",
        title: "",
        content: "The list of people in your Tandem account will be listed here. Checkboxes next to each person allow you to edit and remove multiple entries at one time.",
        placement: "top"
      },
      {
        skip: function()
          {
            if(document.getElementById('page_nav_box') == null)
            {
              return true;
            }
            return false;
          },
        path: tour_path_prefix + 'type=user_accounts&amp;action=list',
        element: "#page_nav_box",
        title: "",
        content: "If you have more than one page of people, you can navigate through them here.",
        placement: "bottom"
      },
      {
        path: tour_path_prefix + 'type=user_accounts&amp;action=list',
        element: "#search_input",
        title: "",
        content: "If you need to search for a specific name or all or part of an email address, type it in here and use the enter key to submit the search.",
        placement: "bottom"
      },
      {
        path: tour_path_prefix + 'type=user_accounts&amp;action=list',
        element: "#common_nav_search_filter",
        title: "",
        content: "The filter tool can be used to refine the users shown on this page. Click it to continue.",
        placement: "bottom",
        delay: 250,
        backdrop: true,
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=user_accounts&amp;action=list',
        element: "#common_nav_filters",
        title: "",
        content: "Use the filters shown here to show users of a specific user type, specific viewing permissions, or other permissions.",
        placement: "left",
        delay: 250,
        backdrop: true,
        reflex: true
      },
      {
        path: tour_path_prefix + 'type=user_accounts&amp;action=list',
        element: "#filters_close",
        title: "",
        content: "Click 'close' to continue.",
        placement: "bottom",
        backdrop: true,
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=user_accounts&amp;action=list',
        element: "#view_options_box",
        title: "",
        content: "You may also choose to import or export your people into Tandem.",
        placement: "left"
      },
      {
        path: tour_path_prefix + 'type=user_accounts&amp;action=list',
        element: "#common_nav_action_add",
        title: "",
        content: "Finally you may use the 'Add' button to add a new person to the system.",
        placement: "left"
      },
      {
        path: tour_path_prefix + 'type=user_accounts&amp;action=list',
        element: "body",
        title: "",
        content: "Start a chat with us if you have more questions. Happy Scheduling!",
        placement: "top",
        hideNext: true,
        template: end_tour_template
      }
    ],
    debug: debug_tours
  });

  tours['setup_gsuite'] = new Tour({
    name: "setup_gsuite",
    storage: window.sessionStorage,
    template: tour_template,
    onStart: function(_tour)
      {
        $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_start&amp;id=setup_gsuite');

        window.sessionStorage.setItem('last_tour', 'setup_gsuite');
      },
    onEnd: function(_tour)
      {
        _tour._removeState('current_step');
        _tour._removeState('end');

        window.sessionStorage.removeItem('last_tour');

        if(notify_end_tour) $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_end&amp;id=setup_gsuite');
      },
    steps: [
      {
        path: tour_path_prefix + 'type=administration&amp;action=list',
        element: "a[href\*='type=integrations&amp;action=google_directory_setup']",
        title: "",
        content: "Click the Setup Button",
        placement: "top",
        redirect: true,
        backdrop: true,
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=integrations&amp;action=google_directory_setup',
        element: "a[href\*='https://accounts.google.com/o/oauth2']",
        title: "",
        content: "Click the Setup button and authorize Tandem.  See you when you're done.",
        placement: "bottom",
        backdrop: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=integrations&amp;action=google_directory_setup',
        element: "body",
        title: "",
        content: "Great! Now all you need to do is sync your users.",
        placement: "center"
      },
      {
        path: tour_path_prefix + 'type=integrations&amp;action=google_directory_setup',
        element: "a[href\*='type=integrations&amp;action=google_directory_setup&amp;page=4&amp;read_type=users']",
        title: "",
        content: "Use this link to import your users.",
        placement: "top",
      },
      // {
      //   path: tour_path_prefix + 'type=integrations&amp;action=google_directory_setup',
      //   element: "a[href\*='type=integrations&amp;action=google_directory_setup&amp;page=4&amp;read_type=groups']",
      //   title: "",
      //   content: "Use this link to import your users by OU groups.  This allows you to limit the users that you import to those belonging to certain OUs.",
      //   placement: "top",
      // },
      {
        path: tour_path_prefix + 'type=integrations&amp;action=google_directory_setup',
        element: "a[href\*='type=integrations&amp;action=google_directory_setup&amp;page=4&amp;read_type=groups']",
        title: "",
        content: "Use this link to import your OU groups into Tandem as groups. You may also import users of those OU groups into Tandem as members of their groups.",
        placement: "top",
      },
      {
        path: tour_path_prefix + 'type=integrations&amp;action=google_directory_setup',
        element: "body",
        title: "",
        content: "Start a chat with us if you have more questions. Happy Scheduling!",
        placement: "top",
        hideNext: true,
        template: end_tour_template
      }
    ],
    debug: debug_tours
  });

  tours['setup_azure_ad'] = new Tour({
    name: "setup_azure_ad",
    storage: window.sessionStorage,
    template: tour_template,
    onStart: function(_tour)
      {
        $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_start&amp;id=setup_azure_ad');

        window.sessionStorage.setItem('last_tour', 'setup_azure_ad');
      },
    onEnd: function(_tour)
      {
        _tour._removeState('current_step');
        _tour._removeState('end');

        window.sessionStorage.removeItem('last_tour');

        if(notify_end_tour) $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_end&amp;id=setup_azure_ad');
      },
    steps: [
      {
        path: tour_path_prefix + 'type=administration&amp;action=list',
        element: "a[href\*='type=integrations&amp;action=azure_ad_setup']",
        title: "",
        content: "Click the Setup Button",
        placement: "top",
        redirect: true,
        backdrop: true,
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=integrations&amp;action=azure_ad_setup',
        element: "a[href\*='login.microsoftonline.com']",
        title: "",
        content: "Click the Setup button and authorize Tandem.  See you when you're done.",
        placement: "bottom",
        backdrop: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=integrations&amp;action=azure_ad_setup',
        element: "body",
        title: "",
        content: "Great! Now all you need to do is sync your users.",
        placement: "center"
      },
      {
        path: tour_path_prefix + 'type=integrations&amp;action=azure_ad_setup',
        element: "a[href\*='type=integrations&amp;action=azure_ad_setup&amp;page=4&amp;read_type=users']",
        title: "",
        content: "Use this link to import your users.",
        placement: "top",
      },
      {
        path: tour_path_prefix + 'type=integrations&amp;action=azure_ad_setup',
        element: "a[href\*='type=integrations&amp;action=azure_ad_setup&amp;page=4&amp;read_type=ous']",
        title: "",
        content: "Use this link to import your users by OU groups.  This allows you to limit the users that you import to those belonging to certain OUs.",
        placement: "top",
      },
      {
        path: tour_path_prefix + 'type=integrations&amp;action=azure_ad_setup',
        element: "a[href\*='type=integrations&amp;action=azure_ad_setup&amp;page=4&amp;read_type=groups']",
        title: "",
        content: "Use this link to import your OU groups into Tandem as groups. You may also import users of those OU groups into Tandem as members of their groups.",
        placement: "top",
      },
      {
        path: tour_path_prefix + 'type=integrations&amp;action=azure_ad_setup',
        element: "body",
        title: "",
        content: "Start a chat with us if you have more questions. Happy Scheduling!",
        placement: "top",
        hideNext: true,
        template: end_tour_template
      }
    ],
    debug: debug_tours
  });

  tours['groups_list_overview'] = new Tour({
    name: "groups_list_overview",
    storage: window.sessionStorage,
    template: tour_template,
    onStart: function(_tour)
      {
        $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_start&amp;id=groups_list_overview');

        window.sessionStorage.setItem('last_tour', 'groups_list_overview');
      },
    onEnd: function(_tour)
      {
        _tour._removeState('current_step');
        _tour._removeState('end');

        window.sessionStorage.removeItem('last_tour');

        if(notify_end_tour) $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_end&amp;id=groups_list_overview');
      },
    steps: [
      {
        element: 'body',
        title: "",
        content: "Groups signify a collection of people that are participating in an event. People can choose to follow (recieve email updates) and subscribe to groups in their personal calendars. You may also make people members of groups, thus granting them the ability to see private and subscribe to private events for this group even though they are a public user. Groups are a primary factor in driving effective communication with your community.",
        placement: "center",
        template: wide_tour_template,
        backdrop: true
      },
      {
        path: tour_path_prefix + 'type=groups&amp;action=list',
        element: ".common_list_container:first",
        title: "",
        content: "The list of groups in your Tandem account are listed here. Checkboxes next to each group allow you to edit and remove multiple entries at one time.  This is particularly useful if you have a large portion of groups that were set up with one or more incorrect fields and you want to fix them all quickly.",
        placement: "top"
      },
      {
        skip: function()
          {
            if(document.getElementById('page_nav_box') == null)
            {
              return true;
            }
            return false;
          },
        path: tour_path_prefix + 'type=groups&amp;action=list',
        element: "#page_nav_box",
        title: "",
        content: "If you have more than one page of groups, you can navigate through them here.",
        placement: "bottom"
      },
      {
        path: tour_path_prefix + 'type=groups&amp;action=list',
        element: "#search_input",
        title: "",
        content: "If you need to search for a specific group by name, type in a search term and use the enter key to submit the search and see all matches.",
        placement: "bottom"
      },
      {
        path: tour_path_prefix + 'type=groups&amp;action=list',
        element: "#common_nav_search_filter",
        title: "",
        content: "The filter tool can be used to refine the groups shown on this page. Click it to continue.",
        placement: "bottom",
        delay: 250,
        backdrop: true,
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=groups&amp;action=list',
        element: "#common_nav_filters",
        title: "",
        content: "Use the filters shown here to show groups of a specific level, gender, season or choose to include ghosted groups.  If your organization is a school you may filter by groups belonging to specific schools.",
        placement: "left",
        delay: 250,
        backdrop: true,
        reflex: true
      },
      {
        path: tour_path_prefix + 'type=groups&amp;action=list',
        element: "#filters_close",
        title: "",
        content: "Click 'close' to continue.",
        placement: "bottom",
        backdrop: true,
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=groups&amp;action=list',
        element: "#view_options_box",
        title: "",
        content: "You may also choose to import or export your groups into Tandem.",
        placement: "left"
      },
      {
        path: tour_path_prefix + 'type=groups&amp;action=list',
        element: "#common_nav_action_add",
        title: "",
        content: "Finally you may use the 'Add' button to add a new group to the system.",
        placement: "left"
      },
      {
        path: tour_path_prefix + 'type=groups&amp;action=list',
        element: "body",
        title: "",
        content: "Start a chat with us if you have more questions. Happy Scheduling!",
        placement: "top",
        hideNext: true,
        template: end_tour_template
      }
    ],
    debug: debug_tours
  });

  tours['activity_overview'] = new Tour({
    name: "activity_overview",
    storage: window.sessionStorage,
    template: tour_template,
    onStart: function(_tour)
      {
        $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_start&amp;id=activity_overview');

        window.sessionStorage.setItem('last_tour', 'activity_overview');
      },
    onEnd: function(_tour)
      {
        _tour._removeState('current_step');
        _tour._removeState('end');

        window.sessionStorage.removeItem('last_tour');

        if(notify_end_tour) $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_end&amp;id=activity_overview');
      },
    steps: [
      {
        path: tour_path_prefix + 'type=activity&amp;action=list',
        element: ".common_list_container:first",
        title: "",
        content: "The list of activities in your Tandem account will be listed here. Checkboxes next to each activity allow you to edit and remove multiple entries at one time.",
        placement: "top"
      },
      {
        skip: function()
          {
            if(document.getElementById('page_nav_box') == null)
            {
              return true;
            }
            return false;
          },
        path: tour_path_prefix + 'type=activity&amp;action=list',
        element: "#page_nav_box",
        title: "",
        content: "If you have more than one page of activities, you can navigate through them here.",
        placement: "bottom"
      },
      {
        path: tour_path_prefix + 'type=activity&amp;action=list',
        element: "#search_input",
        title: "",
        content: "If you need to search for a specific activity, type it in here and use the enter key to submit the search.",
        placement: "bottom"
      },
      {
        path: tour_path_prefix + 'type=activity&amp;action=list',
        element: "#common_nav_search_filter",
        title: "",
        content: "The filter tool can be used to change what is shown on this page. Click it to continue.",
        placement: "bottom",
        delay: 250,
        backdrop: true,
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=activity&amp;action=list',
        element: "#common_nav_filters",
        title: "",
        content: "In activities all you have the ability to filter for are ghosted records",
        placement: "left",
        delay: 250,
        backdrop: true,
        reflex: true
      },
      {
        path: tour_path_prefix + 'type=activity&amp;action=list',
        element: "#filters_close",
        title: "",
        content: "Click 'close' to continue.",
        placement: "bottom",
        backdrop: true,
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=activity&amp;action=list',
        element: "#view_options_box",
        title: "",
        content: "You may also choose to import or export your activities into Tandem.",
        placement: "left"
      },
      {
        path: tour_path_prefix + 'type=activity&amp;action=list',
        element: "#common_nav_action_add",
        title: "",
        content: "Finally you may use the 'Add' button to add a new activity to the system.",
        placement: "left"
      },
      {
        path: tour_path_prefix + 'type=activity&amp;action=list',
        element: "body",
        title: "",
        content: "Start a chat with us if you have more questions. Happy Scheduling!",
        placement: "top",
        hideNext: true,
        template: end_tour_template
      }
    ],
    debug: debug_tours
  });

  tours['department_overview'] = new Tour({
    name: "department_overview",
    storage: window.sessionStorage,
    template: tour_template,
    onStart: function(_tour)
      {
        $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_start&amp;id=department_overview');

        window.sessionStorage.setItem('last_tour', 'department_overview');
      },
    onEnd: function(_tour)
      {
        _tour._removeState('current_step');
        _tour._removeState('end');

        window.sessionStorage.removeItem('last_tour');

        if(notify_end_tour) $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_end&amp;id=department_overview');
      },
    steps: [
      {
        path: tour_path_prefix + 'type=departments&amp;action=list',
        element: ".common_list_container:first",
        title: "",
        content: "The list of departments in your Tandem account will be listed here. Checkboxes next to each department allow you to edit and remove multiple entries at one time.",
        placement: "top"
      },
      {
        skip: function()
          {
            if(document.getElementById('page_nav_box') == null)
            {
              return true;
            }
            return false;
          },
        path: tour_path_prefix + 'type=departments&amp;action=list',
        element: "#page_nav_box",
        title: "",
        content: "If you have more than one page of departments, you can navigate through them here.",
        placement: "bottom"
      },
      {
        path: tour_path_prefix + 'type=departments&amp;action=list',
        element: "#search_input",
        title: "",
        content: "If you need to search for a specific department, type it in here and use the enter key to submit the search.",
        placement: "bottom"
      },
      {
        path: tour_path_prefix + 'type=departments&amp;action=list',
        element: "#common_nav_search_filter",
        title: "",
        content: "The filter tool can be used to change what is shown on this page. Click it to continue.",
        placement: "bottom",
        delay: 250,
        backdrop: true,
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=departments&amp;action=list',
        element: "#common_nav_filters",
        title: "",
        content: "In departments all you have the ability to filter for are ghosted records",
        placement: "left",
        delay: 250,
        backdrop: true,
        reflex: true
      },
      {
        path: tour_path_prefix + 'type=departments&amp;action=list',
        element: "#filters_close",
        title: "",
        content: "Click 'close' to continue.",
        placement: "bottom",
        backdrop: true,
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=departments&amp;action=list',
        element: "#view_options_box",
        title: "",
        content: "You may also choose to import or export your departments into Tandem.",
        placement: "left"
      },
      {
        path: tour_path_prefix + 'type=departments&amp;action=list',
        element: "#common_nav_action_add",
        title: "",
        content: "Finally you may use the 'Add' button to add a new department to the system.",
        placement: "left"
      },
      {
        path: tour_path_prefix + 'type=departments&amp;action=list',
        element: "body",
        title: "",
        content: "Start a chat with us if you have more questions. Happy Scheduling!",
        placement: "top",
        hideNext: true,
        template: end_tour_template
      }
    ],
    debug: debug_tours
  });

  tours['event_type_overview'] = new Tour({
    name: "event_type_overview",
    storage: window.sessionStorage,
    template: tour_template,
    onStart: function(_tour)
      {
        $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_start&amp;id=event_type_overview');

        window.sessionStorage.setItem('last_tour', 'event_type_overview');
      },
    onEnd: function(_tour)
      {
        _tour._removeState('current_step');
        _tour._removeState('end');

        window.sessionStorage.removeItem('last_tour');

        if(notify_end_tour) $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_end&amp;id=event_type_overview');
      },
    steps: [
      {
        path: tour_path_prefix + 'type=event_types&amp;action=list',
        element: ".common_list_container:first",
        title: "",
        content: "The list of event types in your Tandem account will be listed here. Checkboxes next to each event type allow you to edit and remove multiple entries at one time.",
        placement: "top"
      },
      {
        skip: function()
          {
            if(document.getElementById('page_nav_box') == null)
            {
              return true;
            }
            return false;
          },
        path: tour_path_prefix + 'type=event_types&amp;action=list',
        element: "#page_nav_box",
        title: "",
        content: "If you have more than one page of event types, you can navigate through them here.",
        placement: "bottom"
      },
      {
        path: tour_path_prefix + 'type=event_types&amp;action=list',
        element: "#search_input",
        title: "",
        content: "If you need to search for a specific event type, type it in here and use the enter key to submit the search.",
        placement: "bottom"
      },
      {
        path: tour_path_prefix + 'type=event_types&amp;action=list',
        element: "#common_nav_search_filter",
        title: "",
        content: "The filter tool can be used to change what is shown on this page. Click it to continue.",
        placement: "bottom",
        delay: 250,
        backdrop: true,
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=event_types&amp;action=list',
        element: "#common_nav_filters",
        title: "",
        content: "In event types all you have the ability to filter for are ghosted records",
        placement: "left",
        delay: 250,
        backdrop: true,
        reflex: true
      },
      {
        path: tour_path_prefix + 'type=event_types&amp;action=list',
        element: "#filters_close",
        title: "",
        content: "Click 'close' to continue.",
        placement: "bottom",
        backdrop: true,
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=event_types&amp;action=list',
        element: "#view_options_box",
        title: "",
        content: "You may also choose to import or export your event types into Tandem.",
        placement: "left"
      },
      {
        path: tour_path_prefix + 'type=event_types&amp;action=list',
        element: "#common_nav_action_add",
        title: "",
        content: "Finally you may use the 'Add' button to add a new event type to the system.",
        placement: "left"
      },
      {
        path: tour_path_prefix + 'type=event_types&amp;action=list',
        element: "body",
        title: "",
        content: "Start a chat with us if you have more questions. Happy Scheduling!",
        placement: "top",
        hideNext: true,
        template: end_tour_template
      }
    ],
    debug: debug_tours
  });

  tours['my_organization_overview'] = new Tour({
    name: "my_organization_overview",
    storage: window.sessionStorage,
    template: tour_template,
    onStart: function(_tour)
      {
        $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_start&amp;id=my_organization_overview');

        window.sessionStorage.setItem('last_tour', 'my_organization_overview');
      },
    onEnd: function(_tour)
      {
        _tour._removeState('current_step');
        _tour._removeState('end');

        window.sessionStorage.removeItem('last_tour');

        if(notify_end_tour) $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_end&amp;id=my_organization_overview');
      },
    steps: [
      {
        element: '#users',
        title: "",
        content: "The first section in " + my_org_title + " contains the building blocks for events you will be setting up in Tandem.  People, allows the management of the organization's private and public users of the system.  Facilities, manages the locations that your organization owns and schedules in the system.  Groups, manages the various groupings of people in the system that participate in events such as a staff group, committees, boards, clubs, or teams.  Equipment allows you to add your various resources into Tandem in order to allocate them along with a quantity in order to not exceed or double book that resource.",
        placement: "top",
        template: wide_tour_template
      },
      {
        path: tour_path_prefix + 'type=administration&amp;action=list',
        element: "#permissions_user_reports_title",
        title: "",
        content: "Permissions &amp; User Reports gives you the ability to create and manage permissions groups to assign to users.  You can also run a report on the people in the system that are following or are members of a group.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=administration&amp;action=list',
        element: "#other_title",
        title: "",
        content: "Other People &amp; Locations givers you the ability to add external groups (rental groups) that use your facilities and contacts for events that may not be listed in people. Any external locations you don't own that you may travel to for an event are in Other Locations.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=administration&amp;action=list',
        element: "#event_tools_title",
        title: "",
        content: "Event Tools contains powerful admin tools that allow you to oversee all outstanding event requests or facility rentals.  It also has a log of all event actions that have taken place in the system. A conflict report can gives you a list of all events where admins or managers may have overridden conflicts.  Mass Event Action can be used to cancel or delete events that match a specific search criteria.  Import Events and Import Key Dates can be used to import events and key dates from csv's (Comma Separated Value spreadsheets) using our import headers.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=administration&amp;action=list',
        element: "#community_title",
        title: "",
        content: "Integrations contains different ways of integrating Tandem into your website.  You can look here to get started with that.  Active Directory and Google Workspace integrations can also be set up to import users and allow Single Sign On from those sources.  (More options for integrating with your website are also available.  For instance on specific  Pages and individual Groups under 'Admin Actions' you can find an 'Embed' option)",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=administration&amp;action=list',
        element: "#calendar_customize_title",
        title: "",
        content: "Calendar Customization is where you can update your logo, color, and other settings.  You can also reconfigure the Event Wizard and move fields around to more suit your existing experience if you wish. You may also set up subdomains which are prefiltered calendar views.  For instance if you are a large organization or school district you could use subdomains to have unique calendars for each school or campus.  The event data in them would be in the master calendar an also the subdomain.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=administration&amp;action=list',
        element: "#additional_cat_title",
        title: "",
        content: "Types and Tags allows you to set up event tags such as departments, Activities, and Event Types.",
        placement: "top"
      },
      {
        skip: function()
          {
            if(document.getElementById('time_title') == null)
            {
              return true;
            }
            return false;
          },
        path: tour_path_prefix + 'type=administration&amp;action=list',
        element: "#time_title",
        title: "",
        content: "Time Periods allow you to set a bell schedule if a portion of your events take place in sync with that schedule.  Then setting an event time is as easy as selecting 'Period 1' and the correct time will be calculated for the event.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=administration&amp;action=list',
        element: "#share_tandem",
        title: "",
        content: "Finally, if you are enjoying Tandem and know someone that could use it too.  Share it right inside Tandem.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=administration&amp;action=list',
        element: "body",
        title: "",
        content: "Start a chat with us if you have more questions. Happy Scheduling!",
        placement: "center",
        hideNext: true,
        template: end_tour_template
      }
    ],
    debug: debug_tours
  });

  tours['inbox_overview'] = new Tour({
    name: "inbox_overview",
    storage: window.sessionStorage,
    template: tour_template,
    onStart: function(_tour)
      {
        $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_start&amp;id=inbox_overview');

        window.sessionStorage.setItem('last_tour', 'inbox_overview');
      },
    onEnd: function(_tour)
      {
        _tour._removeState('current_step');
        _tour._removeState('end');

        window.sessionStorage.removeItem('last_tour');

        if(notify_end_tour) $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_end&amp;id=inbox_overview');
      },
    steps: [
      {
        element: 'body',
        title: "",
        content: "The 'Dashboard' area will show you any unapproved requests waiting on you to make a decision.  It will also show you any unapproved users if you choose to employ that setting. You can also monitor Facility Conflicts and all recent activity on your Tandem Calendar.",
        placement: "center",
        template: wide_tour_template,
        backdrop: true
      },
      {
        skip: function()
          {
            if(document.getElementById('config_changes') == null)
            {
              return true;
            }
            return false;
          },
        path: tour_path_prefix + 'type=management&amp;action=dashboard',
        element: "a[href\*='type=billing&amp;action=overview']",
        title: "",
        content: "If you wish to upgrade to a Pro or Enterprise plan. Click the 'Upgrade' button.",
        placement: "top"
      },
      {
        skip: function()
          {
            if($("#top_bar_link_dashboard").attr("data-count") &gt; 0)
            {
              return true;
            }
            return false;
          },
        path: tour_path_prefix + 'type=management&amp;action=dashboard',
        element: "#er",
        title: "",
        content: "Here is the list of requests waiting for your approval.",
        placement: "top"
      },
      {
        skip: function()
          {
            if($("#top_bar_link_dashboard").attr("data-count") &gt; 0)
            {
              return true;
            }
            return false;
          },
        path: tour_path_prefix + 'type=management&amp;action=dashboard',
        element: "a[href\*='type=view&amp;action=event']",
        title: "",
        content: "You may click on any event to review it, You may also make decisions on the event details page if you wish to do so.",
        placement: "right"
      },
      {
        skip: function()
          {
            if($("#top_bar_link_dashboard").attr("data-count") &gt; 0)
            {
              return true;
            }
            return false;
          },
        path: tour_path_prefix + 'type=management&amp;action=dashboard',
        element: "a[href\*='type=approval&amp;action=decide']",
        title: "",
        content: "You may click an 'Approve' next to any request to either approve or decline it.",
        placement: "right"
      },
      {
        skip: function()
          {
            if(document.getElementById('unapproved_users') == null)
            {
              return true;
            }
            return false;
          },
        path: tour_path_prefix + 'type=management&amp;action=dashboard',
        element: "#unapproved_users",
        title: "",
        content: "If you have commmunity users awaiting approval, You can choose to approve them here.",
        placement: "top"
      },
      {
        skip: function()
          {
            if(document.getElementById('upcoming_conflicts') == null)
            {
              return true;
            }
            return false;
          },
        path: tour_path_prefix + 'type=management&amp;action=dashboard',
        element: "#upcoming_conflicts",
        title: "",
        content: "If you have upcoming facility conflicts You can view those here.",
        placement: "top"
      },
      {
        skip: function()
          {
            if(document.getElementById('upcoming_conflicts') == null)
            {
              return true;
            }
            return false;
          },
        path: tour_path_prefix + 'type=management&amp;action=dashboard',
        element: "a[href\*='type=reports&amp;action=conflict_view&amp;conflict_type=facilities']",
        title: "",
        content: "View next week's facility conflicts by using this link.",
        placement: "right"
      },
      {
        skip: function()
          {
            if(document.getElementById('recent_activity') == null)
            {
              return true;
            }
            return false;
          },
        path: tour_path_prefix + 'type=management&amp;action=dashboard',
        element: "#recent_activity",
        title: "",
        content: "Use the All Recent activity to view what is happeing in your Tandem scheduling system.",
        placement: "top"
      },
      {
        skip: function()
          {
            if(document.getElementById('member_events') == null)
            {
              return true;
            }
            return false;
          },
        path: tour_path_prefix + 'type=management&amp;action=dashboard',
        element: "#member_events",
        title: "",
        content: "The member events area will show you all upcoming events that include a group to which you are a member.",
        placement: "top"
      },
      {
        skip: function()
          {
            if(document.getElementById('tracked_events') == null)
            {
              return true;
            }
            return false;
          },
        path: tour_path_prefix + 'type=management&amp;action=dashboard',
        element: "#tracked_events",
        title: "",
        content: "The Followed events area will show you all upcoming events for any group or facility that you are following.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=management&amp;action=dashboard',
        element: "body",
        title: "",
        content: "Thats all there is to the 'Dashboard' area.  Start a chat with us if you have more questions. Happy Scheduling!",
        placement: "top",
        hideNext: true,
        template: end_tour_template
      }
    ],
    debug: debug_tours
  });

  tours['my_schedule_overview'] = new Tour({
    name: "my_schedule_overview",
    storage: window.sessionStorage,
    template: tour_template,
    onStart: function(_tour)
      {
        $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_start&amp;id=my_schedule_overview');

        window.sessionStorage.setItem('last_tour', 'my_schedule_overview');
      },
    onEnd: function(_tour)
      {
        _tour._removeState('current_step');
        _tour._removeState('end');

        window.sessionStorage.removeItem('last_tour');

        if(notify_end_tour) $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_end&amp;id=my_schedule_overview');
      },
    steps: [
      {
        element: 'body',
        title: "",
        content: "Groups and, for districts, entire schools may be followed. Once you have chosen to follow something the 'My Schedule' area will show you any upcoming events to groups that you are a member of or are following. Admins, managers, and authors can additionally follow locations and equipment.",
        placement: "center",
        template: wide_tour_template,
        backdrop: true
      },
      {
        path: tour_path_prefix + 'type=my_schedule&amp;action=view',
        element: "a[href\*='type=my_schedule&amp;action=add_to_my_calendar']",
        title: "",
        content: "If you wish to subscribe to all events to which to are connected as a member or follower. Click a 'Subscribe' button.",
        placement: "bottom"
      },
      {
        path: tour_path_prefix + 'type=my_schedule&amp;action=view',
        element: "a[href\*='type=view&amp;action=month&amp;my_",
        title: "",
        content: "Click 'View Calendar' to view your member or followed events in a calendar view.",
        placement: "right",
      },
      {
        path: tour_path_prefix + 'type=my_schedule&amp;action=view',
        element: "my_schedule_icon_link",
        title: "",
        content: "You may click on the gear icon to change what you are following.",
        placement: "right"
      },
      {
        path: tour_path_prefix + 'type=my_schedule&amp;action=view',
        element: "body",
        title: "",
        content: "Thats all there is to the 'My Schedule' area.  Start a chat with us if you have more questions. Happy Scheduling!",
        placement: "center",
        hideNext: true,
        template: end_tour_template
      }
    ],
    debug: debug_tours
  });

  /******/

  tours['add_page'] = new Tour({
    name: "add_page",
    storage: window.sessionStorage,
    template: tour_template,
    onStart: function(_tour)
      {
        $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_start&amp;id=add_page');

        window.sessionStorage.setItem('last_tour', 'add_page');
      },
    onEnd: function(_tour)
      {
        _tour._removeState('current_step');
        _tour._removeState('end');

        window.sessionStorage.removeItem('last_tour');

        if(notify_end_tour) $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_end&amp;id=add_page');
      },
    steps: [
      {
        skip: function()
          {
            if(document.location.href.indexOf('type=pages&amp;action=list') &gt;= 0 || document.location.href.indexOf('type=pages&amp;action=list') &gt;= 0)
            {
              return true;
            }
            return false;
          },
        element: "#top_bar_link_pages",
        title: "",
        content: "Click Pages.",
        placement: "right",
        backdrop: true,
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=pages&amp;action=list',
        redirect: true,
        element: "#common_nav_action_add",
        title: "",
        content: "Click Create.",
        placement: "left",
        backdrop: true,
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=pages&amp;action=add',
        redirect: true,
        element: "#featured_image_data_label",
        title: "",
        content: "To upload an image for this page click on 'Add Featured Image' and select an image from your device.",
        placement: "bottom"
      },
      {
        path: tour_path_prefix + 'type=pages&amp;action=add',
        redirect: true,
        element: "#name",
        title: "",
        content: "Next, add a name for the page.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=pages&amp;action=add',
        redirect: true,
        element: "#description_reveal_text",
        title: "",
        content: "A description can let viewers know more about the page.  So they know what they are looking at.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=pages&amp;action=add',
        redirect: true,
        element: "#data_status_row",
        title: "",
        content: "Choose a status to display for this page.&lt;br /&gt;&lt;br /&gt;(note: this will NOT apply the chosen status to all events list on this Page).",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=pages&amp;action=add',
        redirect: true,
        element: "label[for='user_viewing_groups']",
        title: "",
        content: "You can check the private checkbox if your page is not for public use.",
        placement: "right"
      },
      {
        path: tour_path_prefix + 'type=pages&amp;action=add',
        redirect: true,
        element: "#filters_group_title + div.new_wizard_group_title_section",
        title: "",
        content: "The next section is the Event filters.  Events will only show if they match the filter criteria.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=pages&amp;action=add',
        redirect: true,
        element: "#filters_group_title + div.new_wizard_group_title_section &gt; div.new_wizard_row_group:first",
        title: "",
        content: "You may choose to include or exclude events that are active, cancelled or tentative .  You can also choose to include key dates like holidays and breaks as well as including and excluding private events from this page.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=pages&amp;action=add',
        redirect: true,
        element: "#filters_group_title + div.new_wizard_group_title_section &gt; div.new_wizard_row:first",
        title: "",
        content: "Filters are one of the more powerful tools at your disposal in Tandem. Items in the same filter field are matched with ORs and filters from different filter fields are matched with ANDing.  Therefore, if I added filters for the 'HS Boys Soccer Varsity' and 'HS Boys Soccer JV' groups the resulting page would produce results for all events that include either the 'HS Boys Soccer Varsity' or 'HS Boys Soccer JV' groups.  I could go a step further and also select a location, such as the 'Clyde Hill Flynn Field', since its a different filter field now the page will only include events where either the 'HS Boys Soccer Varsity' or 'HS Boys Soccer JV' groups are selected AND the location of the event is the 'Clyde Hill Flynn Field'",
        placement: "top",
        template: wide_tour_template
      },
      {
        path: tour_path_prefix + 'type=pages&amp;action=add',
        redirect: true,
        element: "#more_filters_group_title_title",
        title: "",
        content: "Click 'More filters'.",
        placement: "top",
        delay: 250,
        backdrop: true,
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=pages&amp;action=add',
        redirect: true,
        element: "#more_filters_group_title_data",
        title: "",
        content: "Next you have options for excluding public events, including and excluding events awaiting approval, cancelled by the requester or requests that were declined.&lt;br /&gt;&lt;br /&gt;You may also choose to filter by department, activity, or event types.  The same filter rules apply so if I were to choose an event type of 'Game'.  Then the resulting report would only include events where either the 'HS Boys Soccer Varsity' or 'HS Boys Soccer JV' groups are selected AND the location of the event is the 'Clyde Hill Flynn Field' AND also has a tag of the Event Type 'Game'.",
        placement: "top",
        delay: 250,
        template: wide_tour_template
      },
      {
        path: tour_path_prefix + 'type=pages&amp;action=add',
        redirect: true,
        element: "#exclude_filters_group_title_title",
        title: "",
        content: "The next section is the Exclude Filters, here you will find the ability to exclude events with any of the various filters listed in the sections above.  For example, if I wanted to see all events that were not created by a specific user, I would use the 'created by' exclude filter and select that user.  These exclude filters are combined with the include filters above.  So any event must meet all include and exclude filters to be in the final results.",
        placement: "top",
        template: wide_tour_template
      },
      {
        path: tour_path_prefix + 'type=pages&amp;action=add',
        redirect: true,
        element: "#page_type1_row",
        title: "",
        content: "Finally we are down to the display format for this page.  Simple list is a great view for pages that are consumed by the public and that is the default.  You may also wish to show this page as a calendar.  Additionally, you will find the familiar custom list which comes right out of the previous reports section and that allows you to use nearly all of the event fields in the results of the page.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=pages&amp;action=add',
        redirect: true,
        element: "#report_finish_button_container_inner",
        title: "",
        content: "Finally, create this Page.",
        placement: "right",
        hideNext: true,
        template: end_tour_template
      }
    ],
    debug: debug_tours
  });

  tours['pages_overview'] = new Tour({
    name: "pages_overview",
    storage: window.sessionStorage,
    template: tour_template,
    onStart: function(_tour)
      {
        $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_start&amp;id=pages_overview');

        window.sessionStorage.setItem('last_tour', 'pages_overview');
      },
    onEnd: function(_tour)
      {
        _tour._removeState('current_step');
        _tour._removeState('end');

        window.sessionStorage.removeItem('last_tour');

        if(notify_end_tour) $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_end&amp;id=pages_overview');
      },
    steps: [
      {
        element: 'body',
        title: "",
        content: "Using pages, you can easily create new landing pages for events already on your calendar by using your filters.  These pages can be easily shared with your internal staff, shared with the community, and embedded into your website."
+"&lt;br /&gt;&lt;br /&gt;Examples of pages would be sports schedules, group events, yearly calendars, or any custom list of events you want to create. Users can explore, share and subscribe to pages that interest them to receive email updates when events on it are modified.",
        placement: "center",
        template: wide_tour_template,
        backdrop: true
      },
      {
        path: tour_path_prefix + 'type=pages&amp;action=list',
        element: "#search_input",
        title: "",
        content: "If you need to search for a specific page by name, type in a search term and use the enter key to submit the search and see all matches.",
        placement: "bottom"
      },
      {
        path: tour_path_prefix + 'type=pages&amp;action=list',
        element: ".common_list_container:first",
        title: "",
        content: "The list of pages in your Tandem account are listed here. Click on them to view them.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=pages&amp;action=list',
        element: "#common_nav_action_add",
        title: "",
        content: "You may use the 'Create' button to add a new page.",
        placement: "left"
      },
      {
        path: tour_path_prefix + 'type=pages&amp;action=list',
        element: "body",
        title: "",
        content: "Start a chat with us if you have more questions. Happy Scheduling!",
        placement: "top",
        hideNext: true,
        template: end_tour_template
      }
    ],
    debug: debug_tours
  });

  tours['customize_account'] = new Tour({
    name: "customize_account",
    storage: window.sessionStorage,
    template: tour_template,
    onStart: function(_tour)
      {
        $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_start&amp;id=customize_account');

        window.sessionStorage.setItem('last_tour', 'customize_account');
      },
    onEnd: function(_tour)
      {
        _tour._removeState('current_step');
        _tour._removeState('end');

        window.sessionStorage.removeItem('last_tour');

        if(notify_end_tour) $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_end&amp;id=customize_account');
      },
    steps: [
      {
        element: 'body',
        title: "",
        content: "Add your own custom logo, facilities, groups, tags, equipment, integrations, and more in the " + my_org_title + " area."
+ "&lt;br /&gt;"
+ "&lt;br /&gt;Follow this tour to learn how!",
        placement: "center",
        template: wide_tour_template
      },
      {
        path: tour_path_prefix + 'type=administration&amp;action=list',
        redirect: true,
        element: "a[href\*='type=local_facilities&amp;action=manage']",
        title: "",
        content: "Facilities is where you set up and configure the details of your organization, its facilities, and who you wish to be a decision maker for events involving these facilities.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=administration&amp;action=list',
        redirect: true,
        element: "a[href\*='type=groups&amp;action=manage']",
        title: "",
        content: "Groups is the area where you can add the groups that your organization is in charge of scheduling.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=administration&amp;action=list',
        redirect: true,
        element: "a[href\*='type=equipment&amp;action=manage']",
        title: "",
        content: "This is where you define the equipment, resources, and/or items that can be added or reserved for event use.",
        placement: "top"
      },
      {
        skip: function()
          {
            if($('#calendar_customize_data').css('display') != 'none')
            {
              return true;
            }
            return false;
          },
        path: tour_path_prefix + 'type=administration&amp;action=list',
        redirect: true,
        element: "#calendar_customize_title",
        title: "",
        content: "Click here to open the 'Calendar Customization' section.",
        placement: "top",
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=administration&amp;action=list',
        redirect: true,
        element: "a[href\*='type=administration&amp;action=logo_color_options']",
        title: "",
        content: "This is where you can update your logo, color, and other settings.",
        placement: "top",
        delay: 250,
      },
      {
        skip: function()
          {
            if($('#additional_cat_data').css('display') != 'none')
            {
              return true;
            }
            return false;
          },
        path: tour_path_prefix + 'type=administration&amp;action=list',
        redirect: true,
        element: "#additional_cat_title",
        title: "",
        content: "Click here to open the 'Types &amp; Tags' section.",
        placement: "top",
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=administration&amp;action=list',
        redirect: true,
        element: "#additional_cat_data",
        title: "",
        content: "Go into each of the sections below and setup your tags.",
        placement: "top",
        reflex: true,
        delay: 250,
        hideNext: true,
        template: end_tour_template
      }
    ],
    debug: debug_tours
  });

  add_my_org_steps(tours['customize_account'], 1, '');

  tours['event_wizard_config'] = new Tour({
    name: "event_wizard_config",
    storage: window.sessionStorage,
    template: tour_template,
    onStart: function(_tour)
      {
        $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_start&amp;id=event_wizard_config');

        window.sessionStorage.setItem('last_tour', 'event_wizard_config');
      },
    onEnd: function(_tour)
      {
        _tour._removeState('current_step');
        _tour._removeState('end');

        window.sessionStorage.removeItem('last_tour');

        if(notify_end_tour) $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_end&amp;id=event_wizard_config');
      },
    steps: [
      {
        path: tour_path_prefix + 'type=administration&amp;action=list',
        element: "#calendar_customize_title",
        title: "",
        content: "Click 'Calendar Customization' to expand the cutomization menu and continue.",
        placement: "top",
        delay: 250,
        backdrop: true,
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=administration&amp;action=list',
        element: "a[href\*='type=event&amp;action=fields_config']",
        title: "",
        content: "Click the 'Event Wizard Configuration' link to make changes to the Event Wizard layout.",
        placement: "top",
        delay: 250,
        backdrop: true,
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=event&amp;action=fields_config',
        element: "#name_row + img.draggable",
        title: "",
        content: "You may use these handles to drag and drop fields anywhere on the form.  You can even move fields in and out of the 'More Options' area.",
        placement: "right",
        delay: 250,
        backdrop: true,
        reflex: true
      },
      {
        path: tour_path_prefix + 'event&amp;action=fields_config',
        element: "#event_finish_button_container_inner",
        title: "",
        content: "Click here to 'Save' changes or 'Reset' to the Default Event Wizard layout.",
        placement: "top"
      }
    ],
    debug: debug_tours
  });

  add_my_org_steps(tours['event_wizard_config'], 1, '');

  tours['conflict_view'] = new Tour({
    name: "conflict_view",
    storage: window.sessionStorage,
    template: tour_template,
    onStart: function(_tour)
      {
        $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_start&amp;id=conflict_view');

        window.sessionStorage.setItem('last_tour', 'conflict_view');
      },
    onEnd: function(_tour)
      {
        _tour._removeState('current_step');
        _tour._removeState('end');

        window.sessionStorage.removeItem('last_tour');

        if(notify_end_tour) $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_end&amp;id=conflict_view');
      },
    steps: [
      {
        path: tour_path_prefix + 'type=administration&amp;action=list',
        element: "#event_tools_title",
        title: "",
        content: "Click 'Event Tools' to expand the event tools menu and continue.",
        placement: "top",
        delay: 250,
        backdrop: true,
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=administration&amp;action=list',
        element: "a[href\*='type=reports&amp;action=conflict_view']",
        title: "",
        content: "Click the 'Conflict View' link.",
        placement: "top",
        delay: 250,
        backdrop: true,
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=reports&amp;action=conflict_view',
        element: "#common_nav_date_navigation",
        title: "",
        content: "Use the filter area to change the current month you are searching through. Toggle between viewing Facility, Group, or Equipment conflict types.  And use the funnel filter to look for conflicts in a single location or of different event types and statuses",
        placement: "bottom"
      },
      {
        path: tour_path_prefix + 'type=reports&amp;action=conflict_view',
        element: "#conflict_report_list_contents",
        title: "",
        content: "Finally, conflicts that match the filtering criteria above will be displayed here.",
        placement: "right",
        delay: 250,
        backdrop: true,
        reflex: true
      }
    ],
    debug: debug_tours
  });

  add_my_org_steps(tours['conflict_view'], 1, '');

  tours['my_profile_overview'] = new Tour({
    name: "my_profile_overview",
    storage: window.sessionStorage,
    template: tour_template,
    onStart: function(_tour)
      {
        $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_start&amp;id=my_profile_overview');

        window.sessionStorage.setItem('last_tour', 'my_profile_overview');
      },
    onEnd: function(_tour)
      {
        _tour._removeState('current_step');
        _tour._removeState('end');

        window.sessionStorage.removeItem('last_tour');

        if(notify_end_tour) $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_end&amp;id=my_profile_overview');
      },
    steps: [
      {
        element: 'body',
        title: "",
        content: "The My Profile area allows you to manage things that impact how you interact with Tandem.  These are user specific tweaks, email and text message preferences, user details, followed groups.  Any Event Requests or Facility Rentals you have made can be reviewed as well.",
        placement: "center",
        template: wide_tour_template,
        backdrop: true
      },
      {
        path: tour_path_prefix + 'type=prefs&amp;action=system',
        element: "a[href\*='type=list&amp;action=approval_allrequests_event_request']",
        title: "",
        content: "Check out a listing of all Events or Event Requests you have made.  You may use the filter tool to view them by their approval status.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=prefs&amp;action=system',
        element: "a[href\*='type=list&amp;action=approval_allrequests_facility_rental']",
        title: "",
        content: "Check out a listing of all Facility Rental Requests you have made.  You may use the filter tool to view them by their approval status.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=prefs&amp;action=system',
        element: "a[href\*='type=list&amp;action=my_event_templates']",
        title: "",
        content: "If you have saved any Event Templates, check out a listing of all of them.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=prefs&amp;action=system',
        element: "a[href\*='type=list&amp;action=my_event_reminders']",
        title: "",
        content: "If you have set up any specific Event Reminders, manage theose here.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=prefs&amp;action=system',
        element: "a[href\*='type=view&amp;action=month&amp;my_tracked_events=t']",
        title: "",
        content: "If you are following single events in the system you can view a calendar of those by clicking here.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=prefs&amp;action=system',
        element: "a[href\*='type=prefs&amp;action=my_account']",
        title: "",
        content: "The Profile area allows you to enter information about yourself into the system.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=prefs&amp;action=system',
        element: "a[href\*='type=prefs&amp;action=my_preferences']",
        title: "",
        content: "The Preferences area allows you to change settings for your user account.  Email and Text message settings, the page to land on when you log in, having buttons at the top and bottom of forms, the number of records per page on listviews are all things you can adjust here.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=prefs&amp;action=system',
        element: "a[href\*='type=prefs&amp;action=my_tracking']",
        title: "",
        content: "Change the groups you are following here, and for internal users also facilities and equipment.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=prefs&amp;action=system',
        element: "a[href\*='type=prefs&amp;action=my_addresses']",
        title: "",
        content: "In order to rent out a facility, you must enter an address for your user account.  Also for navigation, 'Get Directions' links can use this address as your starting point.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=prefs&amp;action=system',
        element: "a[href\*='type=prefs&amp;action=change_email']",
        title: "",
        content: "If you need to swap email addresses on this account click here.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=prefs&amp;action=system',
        element: "a[href\*='type=prefs&amp;action=change_password']",
        title: "",
        content: "Finally, if you want to change your password you can use this link.",
        placement: "top"
      },
      {
        path: tour_path_prefix + 'type=prefs&amp;action=system',
        element: "body",
        title: "",
        content: "Start a chat with us if you have more questions. Happy Scheduling!",
        placement: "top",
        hideNext: true,
        template: end_tour_template
      }
    ],
    debug: debug_tours
  });

  tours['public_tour'] = new Tour({
    name: "public_tour",
    storage: window.sessionStorage,
    template: tour_template,
    onStart: function(_tour)
      {
        $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_start&amp;id=public_tour');

        window.sessionStorage.setItem('last_tour', 'public_tour');
      },
    onEnd: function(_tour)
      {
        _tour._removeState('current_step');
        _tour._removeState('end');

        window.sessionStorage.removeItem('last_tour');

        if(notify_end_tour) $.ajax(ajax_prefix + 'type=ajax&amp;action=tour_end&amp;id=public_tour');
      },
    steps: [
      {
        element: 'body',
        title: "",
        content: "Welcome to Tandem, The calendar view is where you can explore and navigate to find events you are interested in.",
        placement: "center",
        template: wide_tour_template,
        backdrop: true
      },
      {
        path: tour_path_prefix + 'type=view&amp;action=month',
        element: "#common_nav_jump_to_title",
        title: "",
        content: "Use the arrows to navigate back in time or into the future.  If you've navigated away from the current date and wish to jump back, click 'Today'.  You may also use the 'week', 'day' and 'list' views if you prefer. PRO TIP: Click on the month name to jump to another month/year quickly.",
        placement: "bottom"
      },
      {
        path: tour_path_prefix + 'type=view&amp;action=month',
        element: "#search_input",
        title: "",
        content: "If you need to search for events by keyword, type it in here and use the enter key to submit the search.",
        placement: "bottom"
      },
      {
        path: tour_path_prefix + 'type=view&amp;action=month',
        element: "#common_nav_search_filter",
        title: "",
        content: "The Filter tool will allow you to find events that are tagged with specific groups, departments, or locations. Click the funnel icon to continue.",
        placement: "bottom",
        delay: 250,
        backdrop: true,
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=view&amp;action=month',
        element: "#common_nav_filters",
        title: "",
        content: "Here you may select filters to narrow your events and then click the 'filter' button to apply the filters to the calendar view.",
        placement: "left",
        delay: 250,
        backdrop: true,
        reflex: true
      },
      {
        path: tour_path_prefix + 'type=view&amp;action=month',
        element: "#filters_close",
        title: "",
        content: "Click 'close' to continue.",
        placement: "bottom",
        backdrop: true,
        reflex: true,
        hideNext: true
      },
      {
        skip: function()
        {
          if(document.querySelectorAll("a[href\*='type=user_accounts&amp;action=get_updates']") == null)
          {
            return true;
          }
          return false;
        },
        path: tour_path_prefix + 'type=view&amp;action=month',
        element: "a[href\*='type=view&amp;action=subscribe']",
        title: "",
        content: "Click the 'subscribe' button to pull a list of events into your personal calendar.  You will probably want to apply filters prior to clicking subscribe in order to subscribe to only those things that you are interested in.",
        placement: "left"
      },
      {
        skip: function()
        {
          if(document.querySelectorAll("a[href\*='type=view&amp;action=subscribe']") == null)
          {
            return true;
          }
          return false;
        },
        path: tour_path_prefix + 'type=view&amp;action=month',
        element: "a[href\*='type=user_accounts&amp;action=get_updates']",
        title: "",
        content: "Click the 'Get Updates' button sign up and start following your interests on this calendar.",
        placement: "left"
      },
      {
        path: tour_path_prefix + 'type=view&amp;action=month',
        element: "#top_bar_link_pages",
        title: "",
        content: "Pages contain uniquely configured lists of events curated by the owner of this calendar for you to use.",
        placement: "right"
      },
      {
        path: tour_path_prefix + 'type=view&amp;action=month',
        element: "#account_section_link",
        title: "",
        content: "If you are signed in, you will see your name at the bottom,  You may click it to find more help in the help section or change up your account preferences and settings.",
        placement: "right"
      },
      {
        path: tour_path_prefix + 'type=view&amp;action=month',
        element: "body",
        title: "",
        content: "Thanks for taking this tour. We hope it helps!",
        placement: "center",
        hideNext: true,
        template: end_tour_template
      }
    ],
    debug: debug_tours
  });

  tours['upgrade_tour'] = new Tour({
    name: "upgrade_tour",
    storage: window.sessionStorage,
    template: tour_template,
    onStart: function(_tour)
      {
        $.ajax('index.php?' + host_id_link + 'type=ajax&amp;action=tour_start&amp;id=upgrade_tour');

        window.sessionStorage.setItem('last_tour', 'upgrade_tour');
      },
    onEnd: function(_tour)
      {
        _tour._removeState('current_step');
        _tour._removeState('end');

        window.sessionStorage.removeItem('last_tour');

        if(notify_end_tour) $.ajax('index.php?' + host_id_link + 'type=ajax&amp;action=tour_end&amp;id=upgrade_tour');
      },
    steps: [
      {
        element: 'body',
        title: "",
        content: "Welcome to your new Tandem, Let's take a minute to show you the important changes in this latest version.",
        placement: "center",
        template: wide_tour_template,
        backdrop: true
      },
      {
        path: tour_path_prefix + 'type=management&amp;action=dashboard',
        element: "#top_bar_link_dashboard",
        title: "",
        content: "'Inbox' is now 'Dashboard'. Along with the renaming of this area admins may now view a snapshot of recent activity, see a visual of upcoming facility conflicts, and if the option is on, you can view and approve community users that sign up for an account.",
        placement: "right",
        delay: 250
      },
      {
        path: tour_path_prefix + 'type=pages&amp;action=list',
        element: "#top_bar_link_pages",
        title: "",
        content: "'Reports/Schedules' will now be 'Pages'. New banner images are available to be placed at the top of each Page.  There are also new viewing options available. A simple list view, calendar views and the familiar custom list view.  All of your previous reports/schedules are in the custom list view.  Feel free to try out the new views.  Users may also subscribe to Pages, pulling in just information for the events on a Page into their personal calendar.",
        placement: "right",
        delay: 250
      },
      {
        path: tour_path_prefix + 'type=administration&amp;action=list',
        element: "#top_bar_link_config",
        title: "",
        content: "" + my_org_title + " is now Settings. We felt it was a better definition of this section in its entirety.",
        placement: "right",
        delay: 250
      },
      {
        path: tour_path_prefix + 'type=administration&amp;action=list',
        element: "#event_tools_title",
        title: "",
        content: "Click 'Event Tools' to expand the menu and continue.",
        placement: "top",
        delay: 250,
        backdrop: true,
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=administration&amp;action=list',
        element: "a[href\*='type=reports&amp;action=conflict_view']",
        title: "",
        content: "Click the 'Conflict View' link to view upcoming confilicts.",
        placement: "top",
        delay: 250,
        backdrop: true,
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=reports&amp;action=conflict_view',
        element: "#common_nav_date_navigation",
        title: "",
        content: "Use the filter area to change the current month you are searching through. Toggle between viewing Facility, Group, or Equipment conflict types.  And use the funnel filter to look for conflicts in a single location or of different event types and statuses",
        placement: "bottom"
      },
      {
        path: tour_path_prefix + 'type=administration&amp;action=list',
        element: "#calendar_customize_title",
        title: "",
        content: "Jumping Back to Settings, click 'Calendar Customization' to expand the cutomization menu and continue.",
        placement: "top",
        delay: 250,
        backdrop: true,
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=administration&amp;action=list',
        element: "a[href\*='type=event&amp;action=fields_config']",
        title: "",
        content: "Click the 'Event Wizard Configuration' link to make changes to the Event Wizard layout.",
        placement: "top",
        delay: 250,
        backdrop: true,
        reflex: true,
        hideNext: true
      },
      {
        path: tour_path_prefix + 'type=event&amp;action=fields_config',
        element: "#name_row + img.draggable",
        title: "",
        content: "You may use these handles to drag and drop fields anywhere on the form.  You can even move fields in and out of the 'More Options' area.",
        placement: "right",
        delay: 250,
        backdrop: true,
        reflex: true
      },
      {
        path: tour_path_prefix + 'type=event&amp;action=fields_config',
        element: "body",
        title: "",
        content: "Thanks for taking this tour. We hope it helps!",
        placement: "center",
        hideNext: true,
        template: end_tour_template
      }
    ],
    debug: debug_tours
  });

  var last_tour = window.sessionStorage.getItem('last_tour');

  var tour_state;

  for(var i in tour_ids)
  {
      if( tour_ids[i] == last_tour )
      {
          tour_state = new get_tour_state( tour_ids[i] );

          if(tour_state.end == 'yes')
          {

          }
          else if(tour_state.current_step != null)
          {
            tours[ tour_ids[i] ].init();
            break;
          }
      }
  }

  function get_tour_state(tour_id)
  {
      this.current_step = window.sessionStorage.getItem(tour_ids[i] + '_current_step');
      this.end = window.sessionStorage.getItem(tour_ids[i] + '_end');

      if(this.current_step === void 0 || this.current_step === 'null')
      {
        this.current_step = null;
      }

      if(this.end === void 0 || this.end === 'null')
      {
        this.end = null;
      }
  }

  function add_my_org_steps(tour, offset, skip_href)
  {
      // var ui = $('#ui').val();

      var my_org_steps = [
          {
            skip: function()
              {
                if(document.location.href.indexOf('type=administration&amp;action=list') &gt;= 0)
                {
                  return true;
                }
                else if(skip_href.length &gt; 0 &amp;&amp; document.location.href.indexOf(skip_href) &gt;= 0)
                {
                  return true;
                }
                return false;
              },
            element: "#top_bar_right a[href\*='type=administration&amp;action=list']:visible",
            title: "",
            content: "Click '" + my_org_title + "'.",
            placement: "right",
            reflex: true,
            hideNext: true,
            backdrop: true
          }
      ];

      /*var my_org_steps = [
          {
            skip: function()
              {
                if(document.location.href.indexOf('type=administration&amp;action=list') &gt;= 0 || document.location.href.indexOf(skip_href) &gt;= 0)
                {
                  return true;
                }
                return false;
              },
            element: "#top_bar_right",
            title: "",
            content: "First click here.",
            placement: "left",
            backdrop: true,
            reflex: true,
            hideNext: true,
            onNext: function(_tour)
              {
                if($('#account_section_menu').length &gt; 0 &amp;&amp; $('#account_section_menu').css('display') == 'none')
                {
                  document.getElementById( $("#account_section_link_container").attr('id') ).click();
                }
              }
          },
          {
            skip: function()
              {
                if(document.location.href.indexOf('type=administration&amp;action=list') &gt;= 0 || document.location.href.indexOf(skip_href) &gt;= 0)
                {
                  return true;
                }
                return false;
              },
            element: "#account_section_menu a[href\*='type=administration&amp;action=list']:visible",
            title: "",
            content: "Then click '" + my_org_title + "'.",
            placement: "left",
            delay: 100,
            reflex: true,
            hideNext: true
          }
      ];*/

      for(i in my_org_steps)
      {
          tour._options.steps.splice(offset, 0, my_org_steps[i]);
          offset++;
      }
  }

});

function start_tour(tour_id)
{
    notify_end_tour = false;

    for(var i in tour_ids)
    {
        tours[ tour_ids[i] ].end();
    }

    notify_end_tour = true;

    tours[ tour_id ].restart();
}

function tour_manager_title(lowercase)
{
    if( typeof lowercase == 'undefined' ) var lowercase = false;

    var title = '';

    // title = 'Scheduler';
    title = 'Manager';

    if(lowercase) title = title.toLowerCase();

    return title;
}

}
</pre></body></html>