//--------------------------------------------------------

// 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] = 'IMG_2767.jpg';

menus[ic] = ' ';

cap[ic] = 'The subway darts through Tokyo like a huge spider web. It\'s standing room only and people are packed in like sardines elbow to elbow.';



ic++;

slides[ic] = 'IMG_2786.jpg';

menus[ic] = ' ';

cap[ic] = 'The flavor of Japan is evident in every city which showcases fine food and local produce. Farmer\'s markets are mushrooming and feature a myriad of products to stimulate your senses.';



ic++;

slides[ic] = 'IMG_2841.jpg';

menus[ic] = ' ';

cap[ic] = 'Japanese culture, including colorful dress, religious traditions and prayer rituals, all take center stage in ancient temples.';



ic++;

slides[ic] = 'IMG_2906.jpg';

menus[ic] = ' ';

cap[ic] = 'During the first evening of the 51st IFAJ Annual Congress participants attended a welcome reception at the Toranomon Pastral Hotel. The festivities included fresh sushi, delicately carved from a 30-pound tuna.';



ic++;

slides[ic] = 'IMG_2920.jpg';

menus[ic] = ' ';

cap[ic] = 'Fresh sushi helped set a festive mood for the opening to the 51st IFAJ Annual Congress. Other Japanese delicacies included mushrooms, rice balls, smoked dry-cured ham \(Detenojunsuiakabuta\), Sendai beef, seaweed roll of fish eggs, green tea and beer.';



ic++;

slides[ic] = 'IMG_2922.jpg';

menus[ic] = ' ';

cap[ic] = 'Although Japan is an industrial country with more than 2000 years of history, the organizing committee for the 51st IFAJ Annual Congress displayed the diversity of its foods and agricultural life for nearly 200 participants.';



ic++;

slides[ic] = 'IMG_2998.jpg';

menus[ic] = ' ';

cap[ic] = 'A modern fruit and vegetable packing facility operated by Zen-noh \(National Federation of Agricultural Co-operative Association\) is one of the largest organizations of its kind in the world. Every lot is recorded electronically and automatically stored in ideal conditions by using robots. Their guiding business principle is to serve as a \"reliable bridge\" between producers and consumers.';



ic++;

slides[ic] = 'IMG_3174.jpg';

menus[ic] = ' ';

cap[ic] = 'From the bustling streets of Tokyo to scenic small towns, the faces of Japan always welcome you. Giving the peace sign is a traditional greeting in this Asian country.';



ic++;

slides[ic] = 'IMG_3417.jpg';

menus[ic] = ' ';

cap[ic] = 'The moment you step into \"Rinsai Uenoie\", the old Chiba family residence you\'ll find the well-polished wooden floor and smell the charcoal burning fireplace. Visitors enjoy a traditional sit down dinner with tasty Japanese foods in the spacious tatami room while looking at country scenery.';



ic++;

slides[ic] = 'IMG_3506.jpg';

menus[ic] = ' ';

cap[ic] = 'Japan is called the \"land of Mizuho\", in which \"mizi\" means water and \"ho\" refers to paddy rice. The countryside is truly filled with colorful paddy fields and rich beautiful water.';



ic++;

slides[ic] = 'IMG_3518.jpg';

menus[ic] = ' ';

cap[ic] = 'Rice paddies fill every nook and corner of Japan. But the country is also home to 1.76 million beef cattle and 1.66 million dairy cows.';



ic++;

slides[ic] = 'IMG_3522.jpg';

menus[ic] = ' ';

cap[ic] = 'Japanese farmers currently grow 10 million tons of rice annually. It\'s a way of life that\'s been passed down from generation to generation for two millenniums.';



ic++;

slides[ic] = 'IMG_3555.jpg';

menus[ic] = ' ';

cap[ic] = 'After a hot bath at a country resort, guests are served a typical Japanese meal which includes hors d\'oeuvre, raw fish, soybean soup, pickled vegetables and boiled rice. Rounds of sake and chants of \"Bonzie\" carry into the evening.';



ic++;

slides[ic] = 'IMG_3570.jpg';

menus[ic] = ' ';

cap[ic] = 'Ryokans \(hot spring resorts\) all have one thing in common -- each guest room exudes a pure and traditional Japanese ambiance. They serve as a living, dining and bedroom all in one.  After a hot bath, tea is welcomed. Everyone wears a yukata \(cotton kimono\) and sandals or wooden thongs \(geta\) during their stay.';



ic++;

slides[ic] = 'IMG_3572.jpg';

menus[ic] = ' ';

cap[ic] = 'Located in the rugged mountainous area, Naruko-Onsen is famous for Kokeshi, or wooden dolls. From selecting the wood to polishing, the finished process gives these dolls a special character and significance of their owner. The art is passed down from master craftsmen to their apprentices.';



ic++;

slides[ic] = 'IMG_3776.jpg';

menus[ic] = ' ';

cap[ic] = 'Drying rice on wooden poles enhances quality. The average size of an individual rice farm is 1.7 hectares. About 54 pecent of the core farmers mainly engaged in this profession are 65 years old.';



ic++;

slides[ic] = 'IMG_3869.jpg';

menus[ic] = ' ';

cap[ic] = 'Sake has played a central role in Japanese life and culture for the past 2,000 years. Made primarily from rice, sake is a fermented beverage brewed using a microorganism called koji and yeast. It has an alcohol content from 13 to16  percent. Just raise your glass of sake and say, \"Kampail.\"';



ic++;

slides[ic] = 'IMG_3885.jpg';

menus[ic] = ' ';

cap[ic] = 'Japanese cities bustle with night life. The younger generation love to hang out in shopping malls and there are always lines at McDonalds.';



ic++;

slides[ic] = 'IMG_3929.jpg';

menus[ic] = ' ';

cap[ic] = 'Wheels are always ready to go and taxis skirt around cities like high-flying dragonflies.';



ic++;

slides[ic] = 'IMG_3957.jpg';

menus[ic] = ' ';

cap[ic] = 'Sendai is known for its lush greenery, nearby hot springs and beef tongue. It\'s also a center for seminal advances in materials science, microelectronics and particle physics, all connected by a labyrinth of communication lines.';



ic++;

slides[ic] = 'IMG_4013.jpg';

menus[ic] = ' ';

cap[ic] = 'Consumers seek our traditional, family-owned shops to purchase fresh fish or sushi for their evening meal.';



ic++;

slides[ic] = 'IMG_4025.jpg';

menus[ic] = ' ';

cap[ic] = 'Towns with less than 10,000 inhabitants have preserved the \"good old days\" atmosphere while adapting to the 21st century.';



ic++;

slides[ic] = 'IMG_4084.jpg';

menus[ic] = ' ';

cap[ic] = 'A special performance from colorful, enthusiastic Japanese dancers, brings down the curtain of the 51st IFAJ Annual Congress that ended in the northern city of Sendai.';



ic++;

slides[ic] = 'IMG_4133.jpg';

menus[ic] = ' ';

cap[ic] = 'Bullet trains are a great way to relax, meet the locals and take in the Japanese countryside. Finding your way through the Tokyo station is a pure adrenaline rush.';



// --------- 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 = 'IFAJ in Japan';

var showCredits = ' ';



//--------------------------------------------------------

//  (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 = true;



//  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 = 5000;





//--------------------------------------------------------

//  (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 = 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 = true;



// 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 = true;



//--------------------------------------------------------

//  (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

//--------------------------------------------------------

