//--------------------------------------------------------
// 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] = 'coolphoto.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 Cool 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 cool 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 cool 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] = '1a.jpg';
menus[ic] = 'Santiago';
cap[ic] = '';


ic++;
slides[ic] = '1.jpg';
menus[ic] = 'Santiago';
cap[ic] = 'Santiago City Tour: Greater Santiago backed by snow-capped Andes';



ic++;
slides[ic] = '2.jpg';
menus[ic] = 'Santiago';
cap[ic] = 'Santiago City Tour: La Moneda historic government complex';

ic++;
slides[ic] = '4.jpg';
menus[ic] = 'Santiago';
cap[ic] = 'Santiago City Tour: Public art on display at La Moneda';

ic++;
slides[ic] = '3.jpg';
menus[ic] = 'Santiago';
cap[ic] = 'Santiago City Tour: Plaza de Armas statue';

ic++;
slides[ic] = '5.jpg';
menus[ic] = 'Santiago';
cap[ic] = 'Santiago City Tour: Tradition alive at the city race course';

ic++;
slides[ic] = '6.jpg';
menus[ic] = 'Santiago';
cap[ic] = 'Santiago City Tour: Street vendor\'s fresh produce';


ic++;
slides[ic] = '7.jpg';
menus[ic] = 'Santiago';
cap[ic] = 'Santiago City Tour: Two bunches for less than US$1';

ic++;
slides[ic] = '8.jpg';
menus[ic] = 'Artisan Community';
cap[ic] = 'Los Dominicos Handicraft Complex: Artesian community in the foothills of the Andes';


ic++;
slides[ic] = '9.jpg';
menus[ic] = 'Artisan Community';
cap[ic] = 'Los Dominicos Handicraft Complex: New art gallery showcases local talent';



ic++;
slides[ic] = '10.jpg';
menus[ic] = 'Private Wine Tasting';
cap[ic] = '';


ic++;
slides[ic] = '11.jpg';
menus[ic] = 'Private Wine Tasting';
cap[ic] = 'Sommelier Eugenio welcomes us';

ic++;
slides[ic] = '12.jpg';
menus[ic] = 'Private Wine Tasting';
cap[ic] = 'First we test our noses';


ic++;
slides[ic] = '13.jpg';
menus[ic] = 'Private Wine Tasting';
cap[ic] = 'Twelve tiny vials challenge our sense of smell';

ic++;
slides[ic] = '14.jpg';
menus[ic] = 'Private Wine Tasting';
cap[ic] = 'A flight of Chile\'s premier wines';


ic++;
slides[ic] = '15.jpg';
menus[ic] = 'The Bristol Restaurant';
cap[ic] = 'A gourmet dinner and an elegant dessert ended our first day in Santiago';

ic++;
slides[ic] = '15a.jpg';
menus[ic] = 'Optional Excursion';
cap[ic] = '';


ic++;
slides[ic] = '16.jpg';
menus[ic] = 'Optional Excursion';
cap[ic] = 'An interesting stop on our optional excursion to coastal cities Valparaiso and Vi&ntilde;a del Mar';


ic++;
slides[ic] = '17.jpg';
menus[ic] = 'Optional Excursion';
cap[ic] = 'Ema&ntilde;adas cooking in the restaurant\'s outdoor brick oven';


ic++;
slides[ic] = '18.jpg';
menus[ic] = 'Optional Excursion';
cap[ic] = 'Valparaiso\'s main square near the busy port';


ic++;
slides[ic] = '19.jpg';
menus[ic] = 'Optional Excursion';
cap[ic] = 'Modern building wrapped in historic facade in Valparaiso';

ic++;
slides[ic] = '20.jpg';
menus[ic] = 'Optional Excursion';
cap[ic] = 'Valparaiso\'s craft market overlooks the port and city';

ic++;
slides[ic] = '21.jpg';
menus[ic] = 'Optional Excursion';
cap[ic] = 'Santiago\'s resort city Vi&ntilde;a del Mar clings to the rocky coast';

ic++;
slides[ic] = '22.jpg';
menus[ic] = 'Optional Excursion';
cap[ic] = 'View from rest stop on our return trip to Santiago';

ic++;
slides[ic] = '22a.jpg';
menus[ic] = 'Casablanca Valley Tour';
cap[ic] = '';

ic++;
slides[ic] = '23.jpg';
menus[ic] = 'Casablanca Valley Tour';
cap[ic] = 'Veramonte Vineyard\'s modern visitor\'s center in Casablanca Valley';

ic++;
slides[ic] = '23a.jpg';
menus[ic] = 'Casablanca Valley Tour';
cap[ic] = 'New spring growth';

ic++;
slides[ic] = '25.jpg';
menus[ic] = 'Casablanca Valley Tour';
cap[ic] = 'William Cole Vineyard\'s modern facility overlooks the vineyards';

ic++;
slides[ic] = '24.jpg';
menus[ic] = 'Casablanca Valley Tour';
cap[ic] = 'Touring the Vineyard at William Cole';

ic++;
slides[ic] = '26.jpg';
menus[ic] = 'Casablanca Valley Tour';
cap[ic] = 'Tasting in William Cole Vineyard\'s dining room';

ic++;
slides[ic] = '27.jpg';
menus[ic] = 'Casablanca Valley Tour';
cap[ic] = 'House of Morand&eacute;\'s modern gourmet restaurant in the Casablanca Valley';

ic++;
slides[ic] = '28.jpg';
menus[ic] = 'Casablanca Valley Tour';
cap[ic] = 'Salad course at House of Morand&eacute;';

ic++;
slides[ic] = '29.jpg';
menus[ic] = 'Casablanca Valley Tour';
cap[ic] = 'Chicken entre&eacute;';

ic++;
slides[ic] = '30.jpg';
menus[ic] = 'Casablanca Valley Tour';
cap[ic] = 'Beef entre&eacute;';

ic++;
slides[ic] = '31.jpg';
menus[ic] = 'Casablanca Valley Tour';
cap[ic] = 'Dessert';

ic++;
slides[ic] = '32.jpg';
menus[ic] = 'Vinos de Chile';
cap[ic] = 'Opening night at Hotel Plaza San Francisco\'s wine fair';

ic++;
slides[ic] = '33.jpg';
menus[ic] = 'Vinos de Chile';
cap[ic] = 'Deciding what to Sample next';

ic++;
slides[ic] = '33a.jpg';
menus[ic] = 'Maipo Valley Tour';
cap[ic] = '';


ic++;
slides[ic] = '34.jpg';
menus[ic] = 'Maipo Valley Tour';
cap[ic] = 'Cousiņo Macul Winery courtyard';
ic++;
slides[ic] = '35.jpg';
menus[ic] = 'Maipo Valley Tour';
cap[ic] = 'Candles light the way to the cellars';

ic++;
slides[ic] = '36.jpg';
menus[ic] = 'Maipo Valley Tour';
cap[ic] = 'Vintage advertising';
ic++;
slides[ic] = '37.jpg';
menus[ic] = 'Maipo Valley Tour';
cap[ic] = 'Cousi&ntilde;o Macul\'s tasting room';

ic++;
slides[ic] = '37a.jpg';
menus[ic] = 'Maipo Valley Tour';
cap[ic] = 'Flowers planted between rows of merlot';

ic++;
slides[ic] = '38.jpg';
menus[ic] = 'Maipo Valley Tour';
cap[ic] = 'Chardonnay in the garden at Concha y Toro Vineyard';

ic++;
slides[ic] = '38a.jpg';
menus[ic] = 'Maipo Valley Tour';
cap[ic] = 'Family estate now houses Conch y Toro corporate offices';

ic++;
slides[ic] = '39.jpg';
menus[ic] = 'Maipo Valley Tour';
cap[ic] = 'Visiting Casillero Del Diablo (the Devil\'s Dungeon) at Concha y Toro';

ic++;
slides[ic] = '40.jpg';
menus[ic] = 'Maipo Valley Tour';
cap[ic] = 'Touring the Maipo Valley vineyards';

ic++;
slides[ic] = '41.jpg';
menus[ic] = 'Maipo Valley Tour';
cap[ic] = 'Lunch at "Seventh Heaven"';

ic++;
slides[ic] = '42.jpg';
menus[ic] = 'Maipo Valley Tour';
cap[ic] = 'Fine food, antiques and collectibles in historic farm house setting';

ic++;
slides[ic] = '43.jpg';
menus[ic] = 'Maipo Valley Tour';
cap[ic] = 'Santa Ines/de Martino Vineyard courtyard';

ic++;
slides[ic] = '44.jpg';
menus[ic] = 'Maipo Valley Tour';
cap[ic] = 'Merlot or Carmeniere? Recently identified carmeniere (left) vines were long mistaken for merlot';

ic++;
slides[ic] = '45.jpg';
menus[ic] = 'Maipo Valley Tour';
cap[ic] = 'Private tasting with the winery PR manager Kaschka';

ic++;
slides[ic] = '45a.jpg';
menus[ic] = 'Vinos de Chile';
cap[ic] = 'Another evening of food and wine at the Plaza San Francisco';


ic++;
slides[ic] = '45b.jpg';
menus[ic] = 'Vinos de Chile';
cap[ic] = 'An array of wines to sample';

ic++;
slides[ic] = '45c.jpg';
menus[ic] = 'Day at Leisure';
cap[ic] = '';

ic++;
slides[ic] = '46.jpg';
menus[ic] = 'Day at Leisure';
cap[ic] = 'Shopping along Santiago\'s pedestrian malls';

ic++;
slides[ic] = '47.jpg';
menus[ic] = 'Day at Leisure';
cap[ic] = 'Seafood lunch at the Central Market';



















// --------- end the slide data --------------------------//


//--------------------------------------------------------
//  (2) SET UP THE TITLE PAGE
//  Enter a name for the slide show and a line for the
//  credits. Avoid funky HTML here, they go in h1, h2 tags
//  and are formatted in style sheets

var showTitle = 'Chile Wine Tour 2004';
var showCredits = 'photos by Jane Townsend';

//--------------------------------------------------------
//  (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 = false;

//--------------------------------------------------------
//  (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 = 3;

//--------------------------------------------------------
//  (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 = 0;

//--------------------------------------------------------
//  (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 = true;

// 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
//--------------------------------------------------------

