﻿var AjaxCaching = true;
        var IsPageLoaded = 0;
        var FebruaryText = new Array(2);
        var AprilText = new Array(10);
        var AugustText = new Array(23);
        var CvPanels = new Array(6);
        var CvLinks = new Array(6);

        function GetMovieNameFromUrl() {
            var Url = document.URL;
            var output = "";
            var start = Url.indexOf("id=", 0) + 3;
            if (start < 5) {
                return "april";
            }
            var end = Url.length;

            if (Url.indexOf("#") > 0) {
                end = end - 1;
            }
            output = Url.substring(start, end);
            switch (output) {
                case "myfamily": output = "myfamily"; break;
                case "january": output = output; break;
                case "february": output = output; break;
                case "march": output = output; break;
                case "april": output = output; break;
                case "may": output = output; break;
                case "june": output = output; break;
                case "july": output = output; break;
                case "august": output = output; break;
                case "september": output = output; break;
                case "october": output = output; break;
                case "november": output = output; break;
                case "december": output = output; break;
                default: output = "april";
            }
            return output;
        }
        function SetTitleAndYear(MovieName) {
            var MovieTitle;
            var MovieYear;
            switch (MovieName) {
                case "myfamily": MovieTitle = "My Family"; MovieYear = "1997-2008"; break;
                case "january": MovieTitle = "January"; MovieYear = "2009"; break;
                case "february": MovieTitle = "February"; MovieYear = "1999-2009"; break;
                case "march": MovieTitle = "March"; MovieYear = "2004-2009"; break;
                case "april": MovieTitle = "April"; MovieYear = "2001-2009"; break;
                case "may": MovieTitle = "May"; MovieYear = "2001-2009"; break;
                case "june":MovieTitle = "June";MovieYear = "2008";break;
                case "july":MovieTitle = "July";MovieYear = "2008";break;
                case "august":MovieTitle = "August";MovieYear = "2008-2009";break;
                case "september": MovieTitle = "September"; MovieYear = "2003-2009"; break;
                case "october": MovieTitle = "October"; MovieYear = "2009"; break;
                case "november": MovieTitle = "November"; MovieYear = "2009"; break;
                case "december": MovieTitle = "December"; MovieYear = "2000-2009"; break;
                default: MovieTitle = "April"; MovieYear = "2001-2009";
            }
            document.getElementById("title").innerHTML = MovieTitle;
            document.getElementById("year").innerHTML = MovieYear;
        }
        function thisMovie(MovieName) {
            if (navigator.appName.indexOf("Microsoft") != -1) {
                return window[MovieName];
            } else {
                return document[MovieName];
            }
            return null;
        }
        function sendToActionScript(MovieName) {
            if (IsPageLoaded > 0) {
                if (thisMovie("Container") != null) {
                    thisMovie("Container").sendToActionScript(MovieName);
                } else {
                    var flashvars = { Movie: MovieName };
                    var params = {};
                    var attributes = { id: "Container", name: "Container" };
                    LoadFlash(flashvars, params, attributes)
                }
            }
        }
        function SetIsPageLoaded() {
            IsPageLoaded = 1;
        }
        function LoadFlashFromUrl() {
            var MovieName = GetMovieNameFromUrl();
            SetTitleAndYear(MovieName);
            LoadFlash(MovieName);
            SetStory(MovieName);
        }
        function LoadFlash(MovieName) {
            try {
                var flashvars = { Movie: MovieName };
                var params = {};
                var attributes = { id: "Container", name: "Container" };
                swfobject.embedSWF("flash/Container.swf", "flashcontent", "950", "400", "9", false, flashvars, params, attributes);
                //                SetStory(MovieName + ".txt");
            }
            catch (err) {
                document.getElementById("flashcontent").innerHTML = "sorry, cannot load the flash movie";
            }
        }
        function ShowEmailPanel() {
            CvPanels[5].style.display = "block";
            document.getElementById("txtMsg").focus();
        }
        function CleanUpEmailPanel() {
            EmptyEmailFields();
            ResetEmailErrors();
        }
        function ShowPanel(PanelIndex) {
            if (CvPanels[PanelIndex].style.display == "block") {
                CvLinks[PanelIndex].style.backgroundColor = "#000000";
                HidePanel(PanelIndex);
                return;
            }
            var i;
            for (i = 0; i < 6; i++) {
                HidePanel(i);
            }
            if (PanelIndex != 5) {
                CvPanels[PanelIndex].style.display = "block";
            } else {
                ShowEmailPanel()
            }
            CvLinks[PanelIndex].style.backgroundColor = "#660000";
        }
        function HidePanel(PanelIndex) {
        if(PanelIndex == 5){
            CleanUpEmailPanel()
        }
            CvPanels[PanelIndex].style.display = "none";
            CvLinks[PanelIndex].style.backgroundColor = "#000000";
        }
        function SetCvPanels() {
            CvPanels[0] = document.getElementById("Individual");
            CvPanels[1] = document.getElementById("Group");
            CvPanels[2] = document.getElementById("Work");
            CvPanels[3] = document.getElementById("Writings");
            CvPanels[4] = document.getElementById("Cv");
            CvPanels[5] = document.getElementById("Email");
        }
        function SetCvLinks() {
            CvLinks[0] = document.getElementById("KonartIndividual");
            CvLinks[1] = document.getElementById("KonartGroup"); 
            CvLinks[2] = document.getElementById("KonartWorkPublications"); 
            CvLinks[3] = document.getElementById("KonartWritingPublications"); 
            CvLinks[4] = document.getElementById("KonartVita");          
            CvLinks[5] = document.getElementById("KonartEmailme"); 
        }

        function ButtonOver() {
            document.getElementById("Send").style.color = "#FF3300";
        }
        function ButtonDown() {
            document.getElementById("Send").style.backgroundColor = "#CCCC66";
        }
        function ButtonUp() {
            document.getElementById("Send").style.color = "#000000";
            document.getElementById("Send").style.backgroundColor = "#D4D0C8";
        }
        function ButtonOut() {
            document.getElementById("Send").style.backgroundColor = "#D4D0C8";
            document.getElementById("Send").style.color = "#000000";
        }
        function SendClicked() {
            var msg = "";
            var name = "";
            var from = "";
            try {
                msg = document.getElementById("txtMsg").value;
                name = document.getElementById("txtName").value;
                from = document.getElementById("txtAddress").value;
                msg = Clean(msg);
                name = Clean(name);
                from = Clean(from);
                from = from.replace(/ /g, "");
            }
            catch (err) {
               // alert("error: 174");
            }
            if (CheckFields(msg, name, from)) {
                document.getElementById("ErrSum").style.display = "none";
                GetItOut("mercury.php", "from=" + from + "&name=" + name + "&msg=" + msg);
                alert("Thank you for your email.");
                HidePanel(5);
            } else {
            document.getElementById("ErrSum").style.display = "inline";
            }
        }
        function CheckFields(msg, name, from) {
            var output = false;
            var IsValidMessage = false;
            var IsValidName = false;
            var IsValidAddress = false;
            try {
                IsValidMessage = CheckMessage(msg);
                IsValidName = CheckName(name);
                IsValidAddress = CheckAddress(from);
            }
            catch (err) {
                return false;
            }
            if (IsValidMessage && IsValidName && IsValidAddress) {
                output = true;
            }
            return output;
        }
        function CheckMessage(Message) {
            var testee = Message.replace(/ /g, "");
            if (testee.length > 0) {
                document.getElementById("ErrMsg").style.display = "none";
                return true;
            }
            document.getElementById("ErrMsg").style.display = "inline";
            document.getElementById("txtMsg").value = "";
            return false;
        }
        function CheckName(Name) {
            var testee = Name.replace(/ /g, "");
            if (testee.length > 0) {
                document.getElementById("ErrName").style.display = "none";
                return true;
            }
            document.getElementById("ErrName").style.display = "inline";
            document.getElementById("txtName").value = "";
            return false;
        }
        function CheckAddress(Address) {
            var AddressFilter = /^[^@]+@[^@.]+\.[^@]*\w\w$/;
            if (AddressFilter.test(Address)) {
                document.getElementById("ErrAdd").style.display = "none";
                return true;
            }
            document.getElementById("ErrAdd").style.display = "inline";
            document.getElementById("txtAddress").value = "";
            return false;
        }
        function Clean(testee) {
            var output = testee.replace(/[\(\)\<\>\;\:\\\/\"\[\]]/g, "");
            return output;
        }
        function EmptyEmailFields() {
            document.getElementById("txtMsg").value = "";
            document.getElementById("txtName").value = "";
            document.getElementById("txtAddress").value = "";
        }
        function ResetEmailErrors() {
            document.getElementById("ErrMsg").style.display = "none";
            document.getElementById("ErrName").style.display = "none";
            document.getElementById("ErrAdd").style.display = "none";
            document.getElementById("ErrSum").style.display = "none";
        }
        function GetItOut(url, data) {
            var xhr = createXHR();
            if (xhr != null) {
                xhr.open("POST", url, true);
                xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
                xhr.send(data);
            }
        }
        function createXHR() {
            xmlhttp = null;
            if (window.XMLHttpRequest) {// IE7, Firefox, Mozilla, etc.
                xmlhttp = new XMLHttpRequest();
            }
            else if (window.ActiveXObject) {// IE5, IE6
                xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
            }
            return xmlhttp;
        }
        function DisplayHtmlFragment(Content, Destination) {
            Destination.innerHTML = Content;
        }
        function SetMyfamilyStory() {
            var Content = "My Family originated in a Toronto junk store, several years ago. At that time I was making Toronto my new home. While looking through the repository of local artifacts, I came across a pile of old photographs. I bought about twenty group portraits and put them on the shelf beside my kitchen table. My new friends thought that the people in the photographs were my family. I wouldn't correct them. It was fun to name the strangers and to make up stories about their lives.";
            var Destination = document.getElementById("StoryHolder");
            DisplayHtmlFragment(Content, Destination);
        }
        function SetJanuaryStory() {
            var Content = "At the office all the morning, thinking at noon to have been taken home, and my wife (according to appointment yesterday), by my Lord Bruncker, to dinner and then to a play, but he had forgot it, at which I was glad, being glad of avoyding the occasion of inviting him again, and being forced to invite his doxy, Mrs. Williams.<br />&nbsp<br />[Diary of Samuel Pepys — Volume 49: January 1666-67]";
            var Destination = document.getElementById("StoryHolder");
            DisplayHtmlFragment(Content, Destination);
        }
        function SetFebruaryStory(StoryIndex) {
            var Content = FebruaryText[StoryIndex];
            var Destination = document.getElementById("StoryHolder");
            DisplayHtmlFragment(Content, Destination);
        }
        function SetMarchStory() {
            var Content = "First Captain: Halt, Left Dress, Front.<br />&nbsp;<br />Rear Captains: Column half left, March, Column half right March. Taking 5 paces from the flank of the company last on line and allowing the company to pass by him until the rear guide reaches him. Captain commands: Squads left, March, Company Halt, Left Dress, Front.";
            var Destination = document.getElementById("StoryHolder");
            DisplayHtmlFragment(Content, Destination);
        }
        function SetAprilStory(StoryIndex) {
            var Content = AprilText[StoryIndex];
            var Destination = document.getElementById("StoryHolder");
            DisplayHtmlFragment(Content, Destination);
            //            var StoryFileName = "april_"+StoryIndex+".txt";
            //            SetStoryFromFile(StoryFileName);
        }
        function SetMayStory() {
            var Content = "A package of glass plates slippped into the pocket of my jacket over ten years ago. Neither of us said a word. The heavy smell of dust and concrete in the basement excused the silence. Soon after the dinner I scanned all the plates and put them aside. It would take me a while to find them now.";
            var Destination = document.getElementById("StoryHolder");
            DisplayHtmlFragment(Content, Destination);
        }
        function SetJuneStory(StoryIndex) {
            var Content = "Abey,Ace,Adriana,Adrianne,Agata,Agnes,Agnetha,Agnieszka,Aiko,Aintzane,Aisha,Ajani,Ala,Alaine,Alberta,Aldona,Alexandra,Alice,Alina,Alison,Alissa,Alita,Amanda,Amelia,Amelie,Amélie,Amy,Andrea,Angeni,Ania,Aniceta,Anie,Anita,Anka,Ann,Anna,Anne,Annie,Aponi,Asda,Asha,Ashley,Ashlyn,Aspasia,Ava,Ayane,Ayiana,Babette,Ballaire,Barb,Barbara,Barta,Basia,Beata,Becky,Bella,Benny,Berta,Beth,Betty,Bettyann,Bianca,Bianka,Bill,Binti,Blerina,Blondie,Brenda,Brenna,Bridget,Brigitta,Brigitte,Brita,Britt,Bronislawa,Bylowa,Cacamoutte,Cai,Camille,Carey,Carol,Caroline,Catalin,Cate,Catherine,Cathy,Cecile,Celine,Chanchan,Chantal,Chelesea,Cheryl,Chimalis,Chorie,Chorine,Christel,Christina,Christine,Cindy,Claire,Clara,Clinio,Courtney,Cybele,Cynthia,Czeslawa,Dafny,Dagmar,Dahlia,Dalia,Danna,Danuta,Daria,Dassah,Deborah,Debra,Delfina,Della,Diana,Diane,Dominique,Donna,Dora,Doris,Dorota,Dorothee,Dymphna,Edith,Edruko,Ela,Elaine,Eleanor,Elena,Eleni,Elizabeth,Elle,Ellie,Elu,Elvira,Ema,Emilia,Enola,Enrique,Erica,Erin,Estelle,Esther,Ethel,Eugenia,Eva,Eve,Evelinne,Ewa,Fabienne,Fabiola,Farrin,Fatima,Fatma,Fela,Felice,Felicia,Felicja,Filipinka,Fiona,Flora,Florance,Florentine,Fods,Frances,Francesca,Francine,Francis,Franciszka,Franie,Franka,Frieda,Gabbie,Geneviève,Genovefa,Georgiana,Gertrud,Gertruda,Gina,Ginette,Gloria,Golda,Gosia,Grace,Grazyna,Greta,Griffin,Guilda,Guinevere,Gunnel,Haley,Halina,Halona,Hanna,Heather,Heidi,Heike,Hela,Helen,Helena,Helga,Hella,Hermione,Hilda,Holly,Huyana,Hythia,Ilana,Ilona,Ingrid,Iratze,Irena,Irene,Irina,Isabelle,Isolde,Iza,Jadwiga,Jane,Janeen,Janina,Janine,Jasmine,Jeanine,Jen,Jenna,Jennifer,Jenny,Jessica,Jiji,Jill,Jillian,Joan,Joanna,Jola,Jolanta,Jone,Josette,Joyceline,Jude,Juli,Julia,Julie,Jullie,June,Kachine,Kacy,Kaja,Karen,Karin,Karla,Karolina,Kasia,Kaska,Kassy,Kate,Katherine,Kathryn,Kathy,Katie,Katrina,Kay,Kaya,Kayla,Kazimiera,Kia,Klara,Klima,Klothie,Kora,Kristina,Krycha,Krystyna,Kwanita,Lana,Larissa,Laura,Laurette,Lea,Leah,Lee,Lena,Leokadia,Lidia,Lilac,Lilla,Lim,Lindsey,Lisa,Liz,Liza,Lola,Louise,Loulou,Luana,Ludka,Ludwika,Luisa,Luise,Lula,Lydia,Lydie,Lyn,Ma,Magda,Majka,Malcolm,Malgorzata,Malgosia,Malvina,Mania,Maniya,Manuela,Mara,Marcela,Marcia,Marga,Margaret,Margret,Maria,Marie,Mariella,Marielle,Mariko,Marina,Mariola,Marlena,Marta,Martha,Maru,Mary,Maryla,Matylda,May,Me,Megan,Melania,Melanie,Melinda,Melissa,Mia,Michèle,Mila,Milana,Milena,Mina,Ming,Minia,Minnie,Miranda,Mireille,Miriam,Mirka,Miroslava,Misty,Mizuki,Molly,Monia,Monica,Monika,Monique,Morgan,Myong,Myrna,Nadia,Nadja,Nan,Nana,Nancy,Natacha,Natalia,Natsumi,Nell,Nelly,Nicole,Nina,Noio,Ofelia,Ona,Orla,Osamu,Pam,Pamela,Paola,Patricia,Paula,Paulina,Pelagia,Penelope,Phillis,Pia,Quinee,Rachelle,Rebecca,Rena,Renata,Rene,Rhona,Rhonda,Riko,Rikuto,Rita,Roberta,Robyn,Rose,Rowena,Róza,Ruth,Sabina,Safara,Sakura,Sally,Samantha,Sandra,Sara,Sarah,Saskia,Satomi,Shani,Sheila,Shela,Shy,Sierra,Silvia,Smel,Sofia,Sofie,Sonia,Sophia,Sora,Stacy,Steph,Stephany,Sue,Sumana,Susan,Susanna,Suzanne,Suzume,Suzume,Sylvia,Sylvie,Sylwia,Tabitha,Talia,Tamara,Tammy,Tania,Telimena,Teresa,Toni,Treva,Trudy,Ula,Ummi,Una,Urszula,Valencia,Valerie,Vello,Velma,Venetia,Venus,Verena,Vevila,Victoria,Virginia,Wala,Waltraud,Wanda,Wayne,Weenona,Wendie,Wendy,Wera,Werena,Wiesia,Wilhelmina,Wilma,Woi,Xene,Xenia,Ydessa,Yen,Yoko,Yoshiko,Zenobia,Zizi,Zoe,Zofia,Zorka,Zsuzsa<br/>Aaron,Abellard,Adam,Adek,Adler,Adolf,Adriel,Akio,Al,Alan,Albert,Alejandro,Alek,Aleksy,Alex,Ali,Alister,Allan,Allard,Aloysius,Andre,Andreas,Andrew,Andrzej,Andy,Angel,Angus,Anselm,Anthony,Apollinaire,Arata,Arnold,Art,Artur,Assad,Aureliusz,Ayumu,Ballair,Bart,Ben,Benjamin,Bernard,Bernie,Bertold,Blythe,Bo,Bob,Bobby,Bobo,Bogdan,Boguslaw,Bohdan,Bolivar,Bonifacy,Brad,Brandon,Brett,Bruno,Brunon,Burt,Carlos,Caspar,Casper,Celestin,Cesar,Chaine,Charlie,Chayton,Chris,Christopher,Chutyo,Claude,Conor,Corey,Craig,Cyrus,Czeslaw,Daan,Dacre,Damien,Dan,Darek,David,Dick,Dietrich,Dirk,Dmitry,Dobromir,Don,Donald,Dragan,Drago,Drake,Drew,Duane,Edan,Edgar,Edward,Edwin,Eetam,Egan,El,Elias,Elijah,Elliott,Ellis,Elton,Elvis,Emil,Emmett,Enrst,Erik,Ernest,Ernst,Erskine,Eustachy,Fabian,Farrell,Felek,Felix,Ferdinand,Fernando,Ferruccio,Filip,Filippo,Filon,Florian,Floyd,Fouad,Franek,Frank,Franz,Fred,Frédéric,Fritz,Gardner,Gareth,Gary,Genek,George,Georges,Ger,Gerald,Gerwazy,Gilbert,Gilles,Ginger,Glenn,Gordy,Graham,Greg,Gregory,Grzegorz,Gwen,Haakkon,Haim,Hamid,Hanan,Hank,Hans,Harold,Harry,Hartmut,Henio,Henri,Henry,Henryk,Herbert,Heriberto,Hiraku,Horst,Hotaka,Huang,Hugo,Huk,Igor,Iocasta,Ivan,Ivo,Iwanow,Iwona,Jack,Jackson,Jaco,James,Jameson,Jamie,Jan,Janus,Jason,Jasper,Jean,Jerzy,Jesse,Jesus,Jim,Jin,Jiri,Jiro,Joe,Joey,John,Johnny,Jon,Jonathan,Jorge,Joseph,Josh,Juan,Juhan,Juk,Juliusz,Jurek,Kaito,Kali,Katashi,Katsu,Kazuki,Kazuo,Kelly,Ken,Kenji,Kichiro,Kim,Kiril,Klaus,Kola,Krzys,Krzysztof,Lars,Leen,Lennart,Leon,Lloyd,Lukas,Lukasz,Luke,Manfred,Marcelo,Marcin,Marco,Marek,Marian,Mark,Markus,Mars,Martin,Marvin,Mat,Matas,Matt,Matthew,Mau,Maurice,Max,Meir,Melchior,Melvyn,Merlin,Michael,Michal,Michel,Michi,Mietek,Mike,Mildred,Millicent,Milo,Milos,Minoru,Mischa,Monger,Morathi,Moritz,Mustafa,Myoung,Neal,Ned,Nestor,Norman,Olaf,Olivier,Onufry,Oringo,Osip,Otto,Owen,Pat,Patrick,Patrycjusz,Paul,Pavel,Pawel,Pekko,Pere,Peter,Philip,Phill,Phillip,Pierre,Piet,Piotr,Piotrus,Pons,Protazy,Przemek,Publius,Quasim,Raban,Raisan,Raoul,Ray,Riad,Riaz,Richard,Rick,Rishi,Robbie,Robert,Roberto,Robin,Rod,Roger,Roland,Roman,Ron,Ronaldo,Ronnie,Ryan,Ryo,Ryota,Ryszard,Sabas,Salim,Salman,Sam,Sandor,Sandy,Sasha,Scott,Sean,Sefu,Selim,Shad,Shalini,Shmul,Sidney,Sunny,Szczepan,Tadziu,Taras,Taro,Ted,Tejapaala,Terrence,Theo,Theodor,Thilo,Thomas,Thyagin,Tim,Tom,Tomasz,Tomek,Tommy,Tyler,Uberto,Udo,Vicente,Victor,Vid,Vishnu,Vito,Vladimir,Wallace,Wang,Wicek,Wieslaw,Wiktor,Wilhelm,William,Wit,Wojciech,Wojtek,Wolker,Woyzek,Wyaat,Xavier,Yadu,Yanick,Yennan,Xenan,Yamato,Zach,Zachary,Zack,Zafar,Zaki,Zenek,Zenon,Ziggy,Zila,Zivan,Zoltan,Zoran,Zygmunt";
            var Destination = document.getElementById("StoryHolder");
            DisplayHtmlFragment(Content, Destination);
            //            var StoryFileName = "august_" + StoryIndex + ".txt";
            //            SetStoryFromFile(StoryFileName);
        }
        function SetJulyStory(StoryIndex) {
            var Content = "The names were given to me by the visitors to My Family project. The pictures were a gift from my daughter (I never asked where she got them from). I borrowed the stories from other websites.";
            var Destination = document.getElementById("StoryHolder");
            DisplayHtmlFragment(Content, Destination);
        }
        function SetAugustStory(StoryIndex) {
            var Content = AugustText[StoryIndex];
            var Destination = document.getElementById("StoryHolder");
            DisplayHtmlFragment(Content, Destination);
        }
        function SetSeptemberStory() {
            var Content = "'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''  ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''";
            var Destination = document.getElementById("StoryHolder");
            DisplayHtmlFragment(Content, Destination);
        }
        function SetOctoberStory() {
            var Content = "How far he has caught or is capable of being imbued with the Yankee spirit of enterprise and industry, remains to be seen. In some things he has already shown himself an apt scholar. I notice, for instance, that he is about as industrious an office-seeker as the most patriotic among us, and that he learns with amazing ease and rapidity all the arts and wiles of the politicians. He is versed in parades, mass meetings, caucuses, and will soon shine on the stump. I observe, also, that he is not far behind us in the observance of the fashions, and that he is as good a church-goer, theatre-goer, and pleasure-seeker generally, as his means will allow."; //Burroughs, John, 1837-1921 Winter Sunshine
            var Destination = document.getElementById("StoryHolder");
            DisplayHtmlFragment(Content, Destination);
        }
        function SetNovemberStory() {
            var Content = "Un jesuite rencontra en Tartarie une femme huronne qu'il avoit connue au Canada: il conclut de cette etrange aventure, que le continent de l'Amerique se rapproche au nord-ouest du continent de l'Asie, et il devina ainsi l'existence du detroit qui, longtemps apres, a fait la gloire de Bering et de Cook.<br />&nbsp;<br />[François-René de Chateaubriand, Genie du Christianisme, 1802]";
            var Destination = document.getElementById("StoryHolder");
            DisplayHtmlFragment(Content, Destination);
        }
        function SetDecemberStory() {
            var Content = "The stadium was still there, merely. The structure was too heavy. Built on muddy ground, the whole thing was sliding down the slope. No use for the masses. Only kids would just jump the fence and play ball there. The location was good. One could see far beyond the river from there. I took several pictures of the field.";
            var Destination = document.getElementById("StoryHolder");
            DisplayHtmlFragment(Content, Destination);
        }
        function SetStory(MovieName) {
            switch (MovieName) {
                case "myfamilyenter": SetMyfamilyStory(); break;
                case "myfamily": SetMyfamilyStory(); break;
                case "january": SetJanuaryStory(); break;
                case "february": SetFebruaryStory(0); break;
                case "march": SetMarchStory(); break;
                case "april": SetAprilStory(0); break;
                case "may": SetMayStory(); break;
                case "june": SetJuneStory(0); break;
                case "july": SetJulyStory(0); break;
                case "august": SetAugustStory(22); break;
                case "september": SetSeptemberStory(); break;
                case "october": SetOctoberStory(); break;
                case "november": SetNovemberStory(); break;
                case "december": SetDecemberStory(); break;
            }
        }
//        function SetStoryFromFile(StoryFileName) {
//            var Url = "text/" + StoryFileName;
//            var Destination = document.getElementById("StoryHolder");
//            var xhr = createXHR();
//            xhr.onreadystatechange = function() {
//                if (xhr.readyState == 4) {
//                    if (xhr.status == 200) {
//                        var Content = xhr.responseText;
//                        DisplayHtmlFragment(Content, Destination);
//                    }
//                }
//            };

//            if (AjaxCaching == false)
//                Url = Url + "?nocache=" + Math.random();
//            xhr.open("GET", Url, true);
//            xhr.send(null);
//        }

        function LoadContentFragments() {
            FebruaryText[0] = "";
            FebruaryText[1] = "Das Licht, welches Glas durchdringt ohne es zu zerbrechen. Das Licht des Vaters, das durch den Leib der Jungfrau gegangen ist.<br\>&nbsp;<br\>&nbsp;<br\>[St. Bernard de Clairvaux (1090-1153), French monk, preacher, mystical writer]";
            AugustText[0] = "August got on my mind when I googled for Konart. ";
            AugustText[1] = "Have you ever googled your name? ";
            AugustText[2] = "Yes, you have. ";
            AugustText[3] = "Geographically, most of my returns were located in so called disputed territories. ";
            AugustText[4] = "One was in the Carpathian Mountains. ";
            AugustText[5] = "The other one was further North. ";
            AugustText[6] = "My wife is from there and she is a Kashebe. ";
            AugustText[7] = "There are also some Konarts in Western Canada and Argentina. ";
            AugustText[8] = "Whoever they are, my favourite &quot;ancestor&quot; is August. ";
            AugustText[9] = "He was a baker's apprentice. ";
            AugustText[10] = "He lived in Warsaw, Poland, at 1427 Zielna Street, in the mid 18 hundreds. ";
            AugustText[11] = "I used to live in the same part of town, right across from the graveyards. ";
            AugustText[12] = "We were collecting black elder fruits where the Evangelical, Jewish and Catholic cemeteries joined their edges. ";
            AugustText[13] = "The black elder harvests lead to marriage.";
            AugustText[14] = "Recently, it came to me that there were no pictures from the wedding.";
            AugustText[15] = "My mother is still working on our family photo album.";
            AugustText[16] = "Last summer I went to a place she found out about through old documents.";
            AugustText[17] = "It was impossible to read the names on the old tombstones.";
            AugustText[18] = "There were some black elder bushes across the road from the cementary.";
            AugustText[19] = "The fruits needed about two weeks to ripen.";
            AugustText[20] = "The next day, I came back to Toronto.";
            AugustText[21] = "Now it is November, 2008.";
            AugustText[22] = ""

            AprilText[0] = "I am looking for my teacher, Mr. Kamlesh Deezer, who taught Analytical Chemistry at Kipling College (Camden Road), and also worked for the City Council Scientific Services on Lover Street.";
            AprilText[1] = "Please look for my friends whom I have not gotten in touch since 1987. Their names are Jack Uaje, Sonia Santos, Cindy Vallarta, Elmer Carrera, Miriam Lozano, and Tina West. I would appreciate your help in locating them. Thank you.";
            AprilText[2] = "I am looking for a woman by the name of Vera Taneva. My mother was her penpal many years ago and would like to get in contact with her. The last time we have heard from her was in 1983. She has a daughter named Manuela.";
            AprilText[3] = "I am looking for a good friend of mine. Her name is Nicole Rowlands. She lived down the street from me. Her mom and dad were crack heads and they would do anything for money. She loved them and she new what they were doing and she hated it. I just want to know if my best friends is alive or she is dead or where she is.";
            AprilText[4] = "For severals years I've been looking for my friend Billy Carroll. He lived in New Mexico, and in 1997 he visisted my country Peru and we met in a campament. He was a very nice person and I would like to know what happened with him, where he is, if he still remembers Maria Quilcat.";
            AprilText[5] = "I am looking for my teacher. She is Filipino. Her name is Lani Decristofaro. She taught ESL class in a refugee camp. When the camp was closed, she moved back to her family in Manila. In 1987 she moved to Stanford, California.";
            AprilText[6] = "I am looking for my primary school friend Louise. We both went to Roosevelt Primary School. She was in blue class. My mum said she saw Louise at a school fair where my brother goes to and I'd like to get in touch with her.";
            AprilText[7] = "I am badly looking for a guy by the name of Teo. He has a sister named Julia who owned a driving school years ago. He used to live in Mozambique and I met him in Yeoville.";
            AprilText[8] = "We are searching for my mother's real parents or siblings. My mother and father are no doubt deceased but she has to have brothers and sisters. From what the letters and family history show her last name was Rogers.";
            AprilText[9] = "I am looking for Lucy Makerow, otherwise known to her close friends and family as Lucinda. She hates being called it.";
        }
