﻿//--------------------------------------------------------
// javascript slide show "clicker"
// v 4.2 April 2004
// created by alan levine, maricopa community colleges
// alan.levine@domail.maricopa.edu                                  
// http://www.mcli.dist.maricopa.edu/proj/jclicker/
// 
/* GNU General Public License 
Copyright (C) 2004 Alan Levine
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details
http://www.gnu.org/licenses/gpl.html
*/

//--------------------------------------------------------
// This external .js file contains all of the editable 
// configuration data for a jClicker slide show. It is 
// the only file you should edit. Line 17 of your 
// clicker.html file should link to this file as a linked 
// Javascript source file

// Be careful of all items in single quotes; single quotes
// or apostrophes intended for display must be entered as:
//                \'
// All JavaScript command lines must end in a semi-colon


// These are data holders for your slide show; do not touch
var slides = new Array();
var menus = new Array();
var cap = new Array();    
var ic = 0;



//  Below are the 7 sections that are needed to customize
//  the slide show.

//--------------------------------------------------------
// START OF CONFIGURATION AREA
//--------------------------------------------------------

//--------------------------------------------------------
//  (1) SET UP THE SLIDES
//  The slides are set up in order with data stored in
//  arrays. The variable 'ic' is a counter that keeps
//  track of your data. You will need to enter the
//  data for your slide show in sets of 4 lines as
//  explained below. All data must be enclosed in
//  single quotes and end with a semi-colon; if you
//  need a single quote in your menu or caption, use:
//     \'

//  (a) First increase the slide counter:
//      ic++;

//  (b) Each slide needs an associated slide image
//  that is inside the "images" folder, e.g.
//      slides[ic] = 'photo.jpg';
//
//  (c) The menus array holds the text  that will appear in 
//  the lower pop-up menu to identify each slide (these 
//  should be kept to a short length so the menu does not 
//  grow overly wide), e.g.
//      menus[ic] = 'My Menu Name';
//
//  (d) Finally, the cap array holds the text for the image
//  caption (if the slide source is HTML, this string
//  is ignored, so assign blank values of "" to save space):
//      cap[ic] = 'This is the caption for my photo.';

//  This a single slide is set up by this group of code:
//      ic++;
//      slides[ic] = 'coolphoto.jpg';
//      menus[ic] = 'My Cool Menu Name';
//      cap[ic] = 'This is the caption for my photo.';

//  The order of the slide show is the order in which the 4
//  line data is written below; so you can re-order your slides
//  simply by cutting and pasting the 4 lines of code.

  
// --------- start the slide data ------------------------//

ic++;
slides[ic] = 'entrance.jpg';
menus[ic] = 'Front entrance';
cap[ic] = 'The Menninger Clinic is located in Houston, Texas.';

ic++;
slides[ic] = 'call-center.jpg';
menus[ic] = 'Call Center';
cap[ic] = 'Menninger operators answer calls 24 hours a day, seven days a week.';

ic++;
slides[ic] = 'admissions.jpg';
menus[ic] = 'Admissions';
cap[ic] = 'Admission coordinators meet with patients upon arrival at The Clinic.';

ic++;
slides[ic] = 'unit_bldg.jpg';
menus[ic] = 'Unit building';
cap[ic] = '<a href="treatment/index.html#listofprograms">Specialty hospital programs</a> are located in three spacious one-story buildings.';

ic++;
slides[ic] = 'room_1.jpg';
menus[ic] = 'Patient room';
cap[ic] = 'Patient residences are much like a university residence hall in a campus setting.';

ic++;
slides[ic] = 'room_2.jpg';
menus[ic] = 'Patient room';
cap[ic] = 'Most rooms are designed for two patients.';

ic++;
slides[ic] = 'room_3.jpg';
menus[ic] = 'Patient room';
cap[ic] = 'Each patient room features a window, individual desks, closets and a restroom.';

ic++;
slides[ic] = 'group_room.jpg';
menus[ic] = 'Group room';
cap[ic] = 'Patient living units feature areas for groups, patient community meetings and leisure time activities.';

ic++;
slides[ic] = 'activity.jpg';
menus[ic] = 'Activity area';
cap[ic] = 'Patient activity areas on units are used for leisure time and relaxation.';
ic++;
slides[ic] = 'grounds.jpg';
menus[ic] = 'Grounds';
cap[ic] = 'The 14-acre campus is landscaped and shaded by tall pines.';

ic++;
slides[ic] = 'walkway.jpg';
menus[ic] = 'Walkway';
cap[ic] = 'Walkways throughout the campus enable patients and staff to enjoy the outdoors.';

ic++;
slides[ic] = 'gazebo.jpg';
menus[ic] = 'Gazebo';
cap[ic] = 'Houston\'s southern climate draws patients and staff members outside.';

ic++;
slides[ic] = 'courtyard.jpg';
menus[ic] = 'Courtway';
cap[ic] = 'An expansive courtyard joins the three treatment facilities and other campus buildings.';

ic++;
slides[ic] = 'trail.jpg';
menus[ic] = 'Fitness trail';
cap[ic] = 'A walking trail surrounds a grassy area with various workout stations.';

ic++;
slides[ic] = 'gym.jpg';
menus[ic] = 'Wellness Center (Gym)';
cap[ic] = 'The Wellness Center (gym) is available for fitness groups, as well as individual exercise.';

ic++;
slides[ic] = 'pool.jpg';
menus[ic] = 'Swimming pool';
cap[ic] = 'The courtyard features a swimming pool for group activities.';

ic++;
slides[ic] = 'tennis_court.jpg';
menus[ic] = 'Tennis court';
cap[ic] = 'Tennis courts are available for patients\' leisure time.';

ic++;
slides[ic] = 'volleyball.jpg';
menus[ic] = 'Volleyball court';
cap[ic] = 'Patients have the option of playing volleyball at leisure time.';

ic++;
slides[ic] = 'dining_room.jpg';
menus[ic] = 'Menninger Cafeteria';
cap[ic] = 'Patients dine with staff in the Menninger Cafeteria. Meals are delivered to the units when needed.';

ic++;
slides[ic] = 'chaplain_06.jpg';
menus[ic] = 'Chaplain';
cap[ic] = 'The Chaplain has weekly nondenominational chapel services and is available for individual consultations.';

ic++;
slides[ic] = 'school_2.jpg';
menus[ic] = 'Academic tutoring';
cap[ic] = 'Academic tutoring is provided for adolescent patients\' individual needs.';

ic++;
slides[ic] = 'security.jpg';
menus[ic] = 'Security';
cap[ic] = 'Commissioned security officers provide 24-hour protection, seven days a week.';

ic++;
slides[ic] = 'maintenance.jpg';
menus[ic] = 'Maintenance';
cap[ic] = 'Facilities Management staff maintain seven buildings on Menninger\'s 14-acre campus.';

ic++;
slides[ic] = 'housekeeping.jpg';
menus[ic] = 'Housekeeping';
cap[ic] = 'Housekeeping is on hand seven days a week to provide cleaning services for the 130-bed facility.';

ic++;
slides[ic] = 'mailroom.jpg';
menus[ic] = 'Mailroom';
cap[ic] = 'Office Services staff are happy to help with patients\' mailing, copying and faxing needs.';

ic++;
slides[ic] = 'cashier.jpg';
menus[ic] = 'Cashier';
cap[ic] = 'Patients have access to the cashier for check cashing services or to check valuables in and out of the vault.';


// --------- end the slide data --------------------------//


//--------------------------------------------------------
//  (2) SET UP THE TITLE PAGE
//  Enter a name for the slide show and a line for the
//  credits. Avoid HTML here, they go in h1, h2 tags
//  and are formatted in style sheets

var showTitle = 'Title';
var showCredits = 'photos by';

//--------------------------------------------------------
//  (3) SET THE AUTOSHOW DELAY TIME    


// To set the default that a slide show automatically starts
// in auto show mode, set auto_start = true

var auto_start = false;

//  This is the minimum amount of time between changing of 
//  slides when we are in automatic mode. Values are in 
//  milliseconds, multiple the number of seconds desired
//  by 1000. If you are unsure, try a value of 8000.

var delay_time = 8000;


//--------------------------------------------------------
//  (4) SET THE BACKGROUND MODE   
//  This variable indicates whether to use a light background
//  for the slide screen (light_mode = true;) or a dark
//  background (light_mode = false;)

var light_mode = true;

//--------------------------------------------------------
//  (5) SET THE CAPTION LOCATION  
//  This variable controls the placement of the caption
//  relative to the picture. Valid values are

//    1   above the picture  
//    2   left of the picture
//    3   right of the picture
//    4   below the picture

var cap_align = 4;

//--------------------------------------------------------
//  (6) SET THE STARTING SLIDE 
//  This variable can indicate which is the first slide
//  to show. the default is 0 which starts with the title
//  page

var show_start = 1;

//--------------------------------------------------------
//  (7) OPTIONAL BUTTONS
//  Set the following variables to control the display
//  of the buttons in the clicker control bar. Values of
//  "true" will display the button; 'false' will hide

//  CLOSE button is for allowing closing of the browser
//  window- use only if the link to the slide show opens
//  in a new window
var close_button = true;

// HELP button displays a pop-up help window that explains
// the jCLicker buttons
var help_button = false;

// RESIZE buttons allow users to enlarge or reduce the size
// of a displayed image
var resize_button = false;

// AUTOSHOW button allows user to set the slide show to
// automatically advance
var auto_button = false;

//--------------------------------------------------------
//  (8) SHOW IMAGE FILE NAME
//  Use while reviewing images to display the file name
//  appended to the captions. A value of
//  "true" will display the filename; 'false' will hide
//  (for normal show mode, use false)

var show_file = false;

//--------------------------------------------------------
// END OF CONFIGURATION AREA
//--------------------------------------------------------
