<!-- Contains descriptions of all the pictures in my photo album.
<!-- To be used by display.html to add info about the pictures.

function findLabel ()
{
var temp=document.location.search;
    imageName=temp.substring(temp.indexOf("photo=")+6, temp.length);

// *********************** Initializations *********************************
// If there are extra terms at the end of the URL or if there's the
// "big" extension then remove those unwanted terms.
if (imageName.indexOf("&") != -1)
  imageName = imageName.substring(0,imageName.indexOf("&"));

if (imageName.indexOf("big")!=-1)
  imageName = imageName.substring(0,imageName.indexOf("_big"))
             +imageName.substring(imageName.indexOf("."), imageName.length);

// Assume that the picture doesn't have a "big" version.
// If it does have one then this later it will be changed to hlight = 1.
this.hlight = 0;

// ************************** Homestay and Daily Life  ***********************

if (imageName == "Emiko_Kenji.jpg") {
    this.label = "My homestay parents, Emiko and Kenji, with the homestay cat"; 
    this.hlight = 1;
    }
    
else if (imageName == "Mayumi.jpg") 
    this.label = "My homestay sister Mayumi"; 

else if (imageName == "Dorm_room.jpg") 
    this.label = "The dorm room I moved to after the homestay finished";

else if (imageName == "Ascent.jpg") 
    this.label = "The English Conversation school where I taught in the evenings"; 

else if (imageName == "Sunada.jpg") 
    this.label = "A surprise picture of my boss";

// ********************* The Osaka YWCA Language School ***********************

else if (imageName == "YWCA.jpg")  {
    this.label = "The Osaka YWCA School, where I studied Japanese"; 
    this.hlight = 1;
    }

else if (imageName == "Mino.jpg")  {
    this.label = "My class picture at Mino waterfall"; 
    this.hlight = 1;
    }

else if (imageName == "Sensei_sake.jpg") {  
    this.label = "The YWCA teachers drinking beer at the Kirin Beer Factory<br>(in the mountains north of Kobe)";
    this.hlight = 1;
    }
    
else if (imageName == "Kirin.jpg")  
    this.label = "Drinking free beer with another YWCA student<br>(at the Kirin Beer Factory near Kobe)";

else if (imageName == "Yukata_Dinner.jpg")  
    this.label = "Wearing Yukatas while eating a Japanese dinner<br>(Awaji Island, near Kobe)"; 

else if (imageName == "Yukata.jpg") 
    this.label = "Wearing Yukata on a YWCA overnight trip"; 

else if (imageName == "Subarashii.jpg") 
    this.label = "My Japanese teacher 'teaching'<br>Actually, she's writing 'Ravi is an excellent student'";

else if (imageName == "Karaoke.jpg") 
    this.label = "Singing karaoke with friends from the YWCA"; 

else if (imageName == "Bar_isnt_it.jpg") 
    this.label = "My going away party with YWCA friends"; 

else if (imageName == "Graduation.jpg")  {
    this.label = "The Graduation Photo at the YWCA";
    this.hlight = 1;
    }

// ****************** Traditional Japanese Culture ***********************

else if (imageName == "Kaminoki.jpg") {
    this.label = "This old tree is a Shinto god<br>(Sumiyoshi Shrine, Osaka)"; 
    this.hlight = 1;
    }
    
else if (imageName == "Sumo.jpg") {
    this.label = "Posing with a Sumo at the Osaka Sumo Tournament"; 
    this.hlight = 1;
    }
    
else if (imageName == "Sumo_lineup.jpg")  {
    this.label = "The top ranked Sumos going through the entrance ceremony";
    this.hlight = 1;
    }

else if (imageName == "Kimono_sitting.jpg") {
    this.label = "A colorful kimono for an unmarried woman";
    this.hlight = 1;
    }

else if (imageName == "Kimono_standing.jpg") {
    this.label = "Yuka modelling the Kimono with me";
    this.hlight = 1;
    }

else if (imageName == "Mochi.jpg") {
    this.label = "Making mochi (a traditional Japanese dessert) at my dorm"; 
    this.hlight = 1;
    }
    
// ********************* Modern Japan ***********************

else if (imageName == "Vending.jpg")
    this.label = "Typical Japanese vending machines with up to 36 types of drinks per machine";

else if (imageName == "Capsule_room.jpg") 
    this.label = "The capsule hotel room where I stayed in Nagasaki"; 

else if (imageName == "Capsule_bed.jpg") 
    this.label = "My bed in the capsule hotel"; 

else if (imageName == "USA.jpg") 
    this.label = "A train bound for USA, Japan (a city on Kyushu)"; 

// ************* The Kiso River Valley in Nagano ***********************

else if (imageName == "Magome.jpg")  {
    this.label = "An Edo era street in Magome"; 
    this.hlight = 1;
    }

else if (imageName == "Man_waterfall.jpg")
    this.label = "The 'Man Waterfall' waterfall (the 'Woman Waterfall' is nearby)<br>(on the hiking trail between Magome and Tsumago, Nagano Prefecture)";

else if (imageName == "Hat_yukata.jpg")
    this.label = "A traditional straw farmer's hat and a yukata<br>(in Tsumago, Nagano Prefecture)"; 

// ************************** Kansai **********************

else if (imageName == "Kinkakuji.jpg")  {
    this.label = "The Golden Pavilion Temple in Kyoto"; 
    this.hlight = 1;
    }

else if (imageName == "Bamboo.jpg") 
    this.label = "The bamboo forest at a Kyoto temple";

else if (imageName == "Kiyomizu.jpg")  
    this.label = "Drinking 'holy water' at the Kiyomizu temple in Kyoto";

else if (imageName == "Takao.jpg") {
    this.label = "A temple at Takao, near Kyoto"; 
    this.hlight = 1;
    }
    
else if (imageName == "New_Years.jpg") {
    this.label = "The New Year's ringing of the temple bell, in Kyoto";
    this.hlight = 1;
    }
    
else if (imageName == "Tanuki.jpg")
    this.label = "Me posing with Tanuki statues in Kyoto";

else if (imageName == "Nara.jpg")  {
    this.label = "The deer in Nara"; 
    this.hlight = 1;
    }
    
else if (imageName == "Nara_pagoda.jpg") 
    this.label = "A pond and ancient pagoda in Nara";

else if (imageName == "Himeji.jpg")   {
    this.label = "Himeji Castle<br>The best castle in Japan still remaining in its original form";
    this.hlight = 1;
    }

else if (imageName == "Chinatown.jpg") 
    this.label = "The Kobe Chinatown"; 

// ************************** Osaka **********************
else if (imageName == "Osaka_castle.jpg") 
    this.label = "Osaka Castle"; 

else if (imageName == "Ume.jpg") {
    this.label = "White Ume (Japanese plum) blossoms at Osaka Castle Park"; 
    this.hlight = 1;
    }
    
else if (imageName == "Ume-red.jpg") {
    this.label = "Red Ume (Japanese plum) blossoms at Osaka Castle Park"; 
    this.hlight = 1;
    }
    
else if (imageName == "Sakura.jpg")  {
    this.label = "The cherry blossoms at Osaka Castle";
    this.hlight = 1;
    }

else if (imageName == "Hitachi.jpg") {
    this.label = "The Hitachi Tower in Osaka"; 
    this.hlight = 1;
    }

else if (imageName == "Osaka.jpg") {
    this.label = "Osaka, as seen from the top of the Osaka Tower"; 
    this.hlight = 1;
    }

else if (imageName == "Monkey.jpg") {
    this.label = "Monkeys at the Mino waterfall near Osaka";
    this.hlight = 1;
    }
    
else if (imageName == "Ichidai.jpg") 
    this.label = "Osaka City University<br>The palm trees make it look like LA in Japan";

else if (imageName == "Dragon_boat.jpg") { 
    this.label = "The Dragon Boat races in Osaka the day before the Tenjin Festival"; 
    this.hlight = 1;
    }
    
else if (imageName == "Mikoshi.jpg") { 
    this.label = "A mikoshi, the traditional Japanese parade float<br>(at the pre-Tenjin Festival celebrations, Osaka)"; 
    this.hlight = 1;
    }

// ********************* Western Honshu ***********************

else if (imageName == "Iwakuni.jpg")  {
    this.label = "The Edo era 5-arched bridge in Iwakuni<br>Originally only Samurai were allowed to cross it<br>(~2 hours from Hiroshima)";
    this.hlight = 1;
    }
 
else if (imageName == "Iwakuni_me.jpg")  
    this.label = "On top of the Edo era 5-arched Kintaikyo Bridge<br>(Iwakuni, ~2 hours from Hiroshima)";

else if (imageName == "Hattoji.jpg") {  
    this.label = "The traditional thatched roof house that friends and I stayed in<br> (in Hattoji, Okayama, June 1997)";
    this.hlight = 1;
    }
    
else if (imageName == "Cow_shrine.jpg") {
    this.label = "At a shrine to cows in Okayama with friends"; 
    this.hlight = 1;
    }
    
else if (imageName == "Miyajima.jpg")  {
    this.label = "The floating gate of Miyajima across from Hiroshima";
    this.hlight = 1;
    }


// ******************** Ashizuri Pictures **************************

else if (imageName == "Ferry.jpg") 
    this.label = "The cute 'Whale Ferry' I took<br>from Osaka to Cape Ashizuri, Shikoku";

else if (imageName == "Glass_boat.jpg")
    this.label = "A view of coral reefs, sea urchins, and tropical fish from the glass bottomed boats<br>(Cape Ashizuri, SW Shikoku)";

else if (imageName == "Manjiro.jpg")
    this.label = "The John Manjiro museum commemorating the first Japanese person to live in the US<br>(Cape Ashizuri, SW Shikoku)";

else if (imageName == "Shimanto.jpg")
    this.label = "A scenic view of the Shimanto River Valley<br>(SW Shikoku)";

else if (imageName == "Tent.jpg")
    this.label = "The tent I stayed in at the 'Canoe Cabin'<br>(Shimanto Valley, SW Shikoku)";

else if (imageName == "Canoe_kan.jpg")
    this.label = "In front of the Canoe Cabin<br>(Shimanto Valley, SW Shikoku)"; 
else if (imageName == "Kayak_bridge.jpg")
    this.label = "Soaking wet after a long 8km kayak trip on the Shimanto River<br>(SW Shikoku)";

else if (imageName == "Kayak_wet.jpg")  
    this.label = "Yuka and me, soaked after finishing the kayaking trip on the Shimanto River<br>(SW Shikoku)";


// *********************** Kagawa Prefecture Pictures *********************
else if (imageName == "Shikoku_mura.jpg") 
    this.label = "Recreation of a traditional vine bridge";

else if (imageName == "Zanseki.jpg")
    this.label = "Zanseki, 'Leftover stones' cut to build Osaka castle but never used";

else if (imageName == "Kotohira.jpg")
    this.label = "The inner shrine of Kotohira Shrine";

else if (imageName == "Kotohira_Stairs.jpg")   
    this.label = "A portion of the 1,300 steps to the top of Kotohira Shrine";

// ******************************* Kyushu *********************************

else if (imageName == "Saints.jpg") 
    this.label = "The 26 Saints of Nagasaki, martyred in the 18th century"; 

else if (imageName == "Dejima.jpg")
    this.label = "A model of Dejima Island, the Dutch trading colony in Nagasaki"; 

else if (imageName == "Dutch_slopes.jpg") 
    this.label = "A fake Dutch street in the Grover Gardens area of Nagasaki"; 

else if (imageName == "Urakami.jpg") 
    this.label = "The Urakami Cathedral in Nagasaki<br>In the foreground are ruins of the old cathedral destroyed by the Atomic Bomb";

else if (imageName == "Statues.jpg") 
    this.label = "The blasted remains of statues in front of the Urakami Cathedral"; 

else if (imageName == "Hypocenter.jpg")
    this.label = "The Hypocenter in Nagasak,<br>the spot directly below the atomic bomb blast"; 

else if (imageName == "Jewish_cemetary.jpg")  
    this.label = "The Foreigner's Cemetary in Nagasaki, used until ~1930";

else if (imageName == "Kumamoto.jpg")  {
    this.label = "Kumamoto castle<br>Was one of the 3 best castles in ancient Japan";
    this.hlight = 1;
    }

else if (imageName == "Suizenji.jpg")  {
    this.label = "The Suizenji Park in Kumamoto"; 
    this.hlight = 1;
    }

else if (imageName == "Kumamoto_bus.jpg")  
    this.label = "An interesting 80 year old man I met at Kumamoto Bus Station";

// *************************** South Korea ***********************

else if (imageName == "Seoul_gate.jpg") {
    this.label = "The Namdaemun gate in Seoul (recently burnt down)";
    this.hlight = 1;
    }
    
else if (imageName == "Aaram.jpg")  {
    this.label = "My friend Aaram in front of an old palace in Seoul";
    this.hlight = 1;
    }
    
else if (imageName == "Panmunjon.jpg") {
    this.label = "At Panmunjon in the Korean De-militarized zone (DMZ)<br>A South Korean soldier is on the left, a North Korean in the middle, and I'm on the right";
    this.hlight = 1;
    }
    
// *************************** Other ******************************

else this.label = "";

// *************************************************************

// Put the label in format for the URL and make sure that we don't highlight
// a picture that is already the large size. Even though this won't be turned
// into a URL, in the display.html file we use "unescape" so I'm "escape"ing 
// it here.
this.label = escape (this.label);
if (temp.indexOf ("big") != -1)   this.hlight = 0;

}

