slideShowURL = 'SlideShow_assets/SlideShow.html';       // parameter from openSlideShowWindow.js
slideShowNS4URL = 'SlideShow_assets/SlideShowNS4.html'; // parameter from openSlideShowWindow.js

slides = new Array();
slides[0] = new Slide('../Picture of the Week_files/IMG_2332.jpg', '600', '800', 'IMG_2332.JPG');
slides[1] = new Slide('../Picture of the Week_files/IMG_2328.jpg', '600', '800', 'IMG_2328.JPG');
slides[2] = new Slide('../Picture of the Week_files/Mr.jpg', '800', '563', 'Mr.Lavalle.JPG');
isPureISOLatin1 = true;
contentEncodingConstant = 4;
feedbackURL = "TODO";
showFeedbackButton = false;
feedbackEnabled = true;

slideShowURL = 'SlideShow_assets/SlideShow.html';       // parameter from openSlideShowWindow.js
slideShowNS4URL = 'SlideShow_assets/SlideShowNS4.html'; // parameter from openSlideShowWindow.js

slides = new Array();
slides[0] = new Slide('../Picture of the Week_files/Fetter.jpg', '532', '800', 'Week of 3/19-23/07\nMr. Fetter, Girls Basketball Coach');
slides[1] = new Slide('../Picture of the Week_files/Baseball City Champs.jpg', '537', '800', 'Week of 3/26-30/07Baseball 6-0 City Champs 2007');
slides[2] = new Slide('../Picture of the Week_files/IMG_0013.jpg', '600', '800', 'Weeks of 4/2-16/07\nAdvanced Drama Class');
slides[3] = new Slide('../Picture of the Week_files/New Track Season.jpg', '800', '659', 'Week of 4/16-20/07\nSpring can only mean another season of track');
slides[4] = new Slide('../Picture of the Week_files/twinday.jpg', '512', '800', 'Week of 4/23-30/07\nTeachers during Twin Day, Spring Spirit Week 2007');
slides[5] = new Slide('../Picture of the Week_files/Test Taking.jpg', '600', '800', 'Week of 05/01-04/07\nIt is that time of year again.  Time to test your knowledge');
slides[6] = new Slide('../Picture of the Week_files/Hicklin.jpg', '800', '600', 'Week of 05/7-11/07\nMr. Hicklin during Teacher Appreciation Week');
slides[7] = new Slide('../Picture of the Week_files/Lil\u0027D.jpg', '800', '600', 'Lil’D says “Students....do the best you can do on the tests.”');
slides[8] = new Slide('../Picture of the Week_files/IMG_1914.jpg', '801', '795', 'Week of 05/14-18/07\nMs. Jones, 7th grade Counselor');
slides[9] = new Slide('../Picture of the Week_files/Mr_1.jpg', '480', '640', 'Week of 05/21-25/07\n“When Aliens Teach” the new summer blockbuster');
slides[10] = new Slide('../Picture of the Week_files/IMG_7450.jpg', '534', '800', 'Week of 05/29-06/01/07\nMrs. Keen and the band have had an amazing year, winning many awards');
slides[11] = new Slide('../Picture of the Week_files/Balogh Girls Soccer Champs.jpg', '600', '800', 'Week of 06/04-08/07\nCoach Balogh led the girls to an 80-26-2 record, winning city twelve CIty Championships.');
slides[12] = new Slide('../Picture of the Week_files/8th Grade Square.jpg', '560', '800', 'Week of 06/11-15/07\n8th Graders in the Eighth Grade Square for the cover of the 2007 8th Grade DVD');
slides[13] = new Slide('../Picture of the Week_files/2007 Promotion.jpg', '600', '800', 'Summer picture\n2007 8th grade promotion!');
slides[14] = new Slide('../Picture of the Week_files/IMG_0714.jpg', '600', '800', 'Weeks of 08/29-09/09/07\n6th grade orientation.  Buy your Spirit Shirt!');
slides[15] = new Slide('../Picture of the Week_files/logo.jpg', '442', '292', 'Week of 09/10-14/07\nWe will never forget the events of 09/11/01');
slides[16] = new Slide('../Picture of the Week_files/0006449_004.jpg', '512', '342', 'Week of 09/17-21/07\nMr. Shubin, our Principal is a great leader\n');
slides[17] = new Slide('../Picture of the Week_files/Statue of Liberty.jpg', '600', '800', 'Week of 09/24-28/07\nsign up for this years’ New york/Boston trip\n');
slides[18] = new Slide('../Picture of the Week_files/BoB - Box of Brain.jpg', '613', '668', 'Week of 10/01-05/07\nBoB\nBox of Brain');
slides[19] = new Slide('../Picture of the Week_files/Mr_2.jpg', '573', '638', 'Week of 10/09-12/07\nMr. Becker coaches a class of PE 6th period\n');
slides[20] = new Slide('../Picture of the Week_files/IMG_1550.jpg', '600', '800', 'Week of 10/15-19/07\nThe football team is 2-1 so far this year');
slides[21] = new Slide('../Picture of the Week_files/Integrity Poster.jpg', '759', '517', 'Week of 10/22-26/07\nEast Knights are known for their INTEGRITY');
slides[22] = new Slide('../Picture of the Week_files/Leah 1.jpg', '600', '800', 'Week of 10/29-11/02/07\nLeah Kay Roberson, born 10/28/08');
slides[23] = new Slide('../Picture of the Week_files/Easts\u0027 Veterans.jpg', '552', '800', 'Week of 11/05-11/16\nEMS Veterans...Joe Valdivia, Marines, Russ Arnold, Air Force, Josh Roberson, Army, Joe Webster, Air Force, Don Lords, Navy');
slides[24] = new Slide('../Picture of the Week_files/IMG_1555.jpg', '600', '800', 'Week of 11/16-25/07\nThe Cheerleaders are doing a great job this year');
slides[25] = new Slide('../Picture of the Week_files/bff pics 035.jpg', '694', '800', 'Week of 11/26-30/07\nMr. Becker (x2) and Mr. Mallory have some fun in the library');
slides[26] = new Slide('../Picture of the Week_files/Counselors.jpg', '600', '800', 'Week of 11/26-12/09/07\nThe E.M.S. Counselors, helping students daily');
slides[27] = new Slide('../Picture of the Week_files/8th Graders.jpg', '600', '800', 'Week of 12/10-14/07\n8th grade students at a pep rally');
slides[28] = new Slide('../Picture of the Week_files/IMG_1402.jpg', '480', '640', 'Week of 12/17-20/07\nEast Chess Club, willing to take on anyone');
slides[29] = new Slide('../Picture of the Week_files/S6300147.jpg', '600', '800', 'Holiday Break 12/20-1/06\nChristmastime in Downey, CA');
slides[30] = new Slide('../Picture of the Week_files/Bea.jpg', '724', '800', 'Week of 01/07-11/08\nMrs. Bea Jojola, our Staff Member of the Month');
slides[31] = new Slide('../Picture of the Week_files/KingPhoto.jpg', '607', '800', 'Weeks of 01/14-27/08\nMartin Luther King, Jr. Day is on January 21st');
slides[32] = new Slide('../Picture of the Week_files/EBB.jpg', '800', '687', 'Week of 01/28-02/02/08\nThe newest Knight,\nEdward Brinch Becker');
slides[33] = new Slide('../Picture of the Week_files/Jose Q.jpg', '600', '800', 'Week of 02/04-10/08\nHe had a dream and his dream came true!');
slides[34] = new Slide('../Picture of the Week_files/Portrait_of_George_Washington.jpg', '800', '657', 'Week of 2/12/08\nGeorge Washington, father of our country');
slides[35] = new Slide('../Picture of the Week_files/Sundeep2.jpg', '600', '800', 'Week of 02/25-03/01/08\nSundeep, the Director of ES1’s closing segment');
slides[36] = new Slide('../Picture of the Week_files/Drama 2008.jpg', '600', '800', 'Week of 03/03-14/08\nAdvanced Drama students');
slides[37] = new Slide('../Picture of the Week_files/S6300299.jpg', '600', '800', 'Week of 3/17-21/08\nFelicia sports a great new look for St. Paddy’s Day');
slides[38] = new Slide('../Picture of the Week_files/webster and pie.jpg', '600', '800', 'Week of 3/17-21/08\nMr. Webster has pie for snack');
slides[39] = new Slide('../Picture of the Week_files/S6301447.jpg', '600', '800', 'Week of 3/31-4/3/08\n8th graders in the final stretch to promotion');
slides[40] = new Slide('../Picture of the Week_files/S6301646.jpg', '600', '800', 'Week of 4/7-11/08\nTwin Day during Spirit Week');
slides[41] = new Slide('../Picture of the Week_files/S6300304.jpg', '600', '800', 'Week of 4/7-11/08\nTwin Day during Spirit Week');
slides[42] = new Slide('../Picture of the Week_files/S6301638.jpg', '600', '800', 'Week of 4/7-11/08\nTwin Day during Spirit Week');
slides[43] = new Slide('../Picture of the Week_files/S6301645.jpg', '600', '800', 'Week of 4/7-11/08\nTwin Day during Spirit Week');
slides[44] = new Slide('../Picture of the Week_files/Steffani student work 017.jpg', '599', '800', 'Week of 04/14-18/08\nCheck out the online art gallery');
slides[45] = new Slide('../Picture of the Week_files/100_0587.jpg', '600', '800', 'Week of 4/22-25/08\nMr. Dodge, the Masonic Temple Teacher of the Year');
slides[46] = new Slide('../Picture of the Week_files/Mr_3.jpg', '600', '800', 'Week of 4/28-5/2/08\nMr. Craig contemplates Teacher Appreciation Week');
slides[47] = new Slide('../Picture of the Week_files/Caleb Shiflett.jpg', '600', '800', 'Week of 05/5-9/08\nCaleb Shiflett inspired everyone at the Rally for Success');
slides[48] = new Slide('../Picture of the Week_files/S6300454.jpg', '600', '800', 'Week of 5/12-16/08\nThe EMS Band is REALLY good this year');
slides[49] = new Slide('../Picture of the Week_files/Bobby Couso.jpg', '600', '800', 'Week of 5/19-23/08\nBobby C as an older Vinny Q at a rally');
slides[50] = new Slide('../Picture of the Week_files/Sam A.jpg', '480', '640', 'Week of 5/27-30/08\n8th Graders are praying for passing grades');
slides[51] = new Slide('../Picture of the Week_files/Wrestling Club.jpg', '600', '800', 'Week of 06/02-06/08\nThe Wrestling Club, one of many clubs at East');
slides[52] = new Slide('../Picture of the Week_files/S6300275.jpg', '600', '800', 'Week of 6/9-13/08\nBoots of Glory looks to win Team Apprentice');
slides[53] = new Slide('../Picture of the Week_files/S6300272.jpg', '600', '800', 'Week of 6/9-13/08\nDinoThunder will try and beat them on 6/12');
slides[54] = new Slide('../Picture of the Week_files/Award.jpg', '600', '800', 'Week of 6/16-20/08\nOur Female Athlete of the year, Samantha');
slides[55] = new Slide('../Picture of the Week_files/S6301823.jpg', '600', '800', 'Picture for Summer\nMrs. Keen presents her award at the All School Awards Ceremony\non June 16th, 2008\n');
slides[56] = new Slide('../Picture of the Week_files/Mrs.jpg', '732', '647', 'Week of 9/8-12/08\nMrs. Broste teaches English and Life Skills');
slides[57] = new Slide('../Picture of the Week_files/Mr_4.jpg', '800', '563', 'Week of 9/15-19/08\nMr. Lavalle and girl volleyball teams  hope to win it all this year.\n');
slides[58] = new Slide('../Picture of the Week_files/S6301945.jpg', '600', '800', 'Week of 9/22-26/08\nMr. Webster is appreciated and admired by everyone here at East');
slides[59] = new Slide('../Picture of the Week_files/S6300586.jpg', '600', '800', 'Week of 9/29-10/3/08\nEast is like one BIG HAPPY FAMILY!');
slides[60] = new Slide('../Picture of the Week_files/G Volleyball \u002708.jpg', '219', '292', 'Week of 10/6-10/08\nGirls Volleyball is indefeated this year');
slides[61] = new Slide('../Picture of the Week_files/Football \u002708.jpg', '600', '800', 'Week of 10/12-16/08\nBoys Football going for Back-to-Back titles');
slides[62] = new Slide('../Picture of the Week_files/cheerleaders \u002708.jpg', '600', '800', 'Week of 10/20-24/08\nCheerleaders at East have great spirit!');
slides[63] = new Slide('../Picture of the Week_files/Pic.jpg', '600', '800', 'Week of 10/27-31/08\nCharacter Counts.\nShow compassion!');
slides[64] = new Slide('../Picture of the Week_files/School Dance.jpg', '600', '800', 'Week 11/3-7/08\nThe Red RIbbon Dance was a lot of fun!');
slides[65] = new Slide('../Picture of the Week_files/Avid.jpg', '688', '711', 'Week of 11/10-14/08\nMs. Henoch, AVID “DIVA”');
slides[66] = new Slide('../Picture of the Week_files/Awad.jpg', '759', '680', 'Week of 11/10-14/08\nMs. Awad, AVID “DIVA”');
slides[67] = new Slide('../Picture of the Week_files/S6301246.jpg', '800', '616', 'Week of 11/17-21/08\nBuy a Tech club shirt today!');
slides[68] = new Slide('../Picture of the Week_files/09better.jpg', '303', '800', 'Week of 11/24-12/1/08\n8th Graders took the ’09 picture last week');
slides[69] = new Slide('../Picture of the Week_files/Mr_5.jpg', '800', '598', 'Week of 12/1-5/08\nMr. Webster’s Apprentice, Jorge');
slides[70] = new Slide('../Picture of the Week_files/Vannessa.jpg', '546', '800', 'Week of 12/8-13/08 Champ of so you think you can dance, Vanessa.');
slides[71] = new Slide('../Picture of the Week_files/Lemmon.jpg', '627', '800', 'Week of 12/15-20/08\nLemmon practices to be a scientist!');
slides[72] = new Slide('../Picture of the Week_files/S6302399.jpg', '600', '800', 'Weeks of 12/19/08-01/05/09\nMerry Christmas from East Middle School and Mr. Shubin');
slides[73] = new Slide('../Picture of the Week_files/S6301362.jpg', '600', '800', 'Week of 1/5-9/09\nMs. Mir, our new Vice Principal');
slides[74] = new Slide('../Picture of the Week_files/S6302642.jpg', '600', '800', 'Week of1/12-20/09\nMrs. Marcy is running family math night 1/22/09');
slides[75] = new Slide('../Picture of the Week_files/Mr_6.jpg', '600', '800', 'Week of 1/21-25/09\nMr. Roberson coaches the Girls Varsity team');
slides[76] = new Slide('../Picture of the Week_files/Matt&&Sonny_1.jpg', '600', '800', 'Week of 1/26-2/1/09\nMatt & Sonny, Vice President and President');
slides[77] = new Slide('../Picture of the Week_files/IMG_2834.jpg', '534', '800', 'Week of 2/2-6/09\nJohn O and the Boys Varsity Basketball');
slides[78] = new Slide('../Picture of the Week_files/100_0719.jpg', '600', '800', 'Week of 2/10-13/09\nFall 2009 Library T.A.’s did great work');
slides[79] = new Slide('../Picture of the Week_files/Daisy Vargas.jpg', '625', '800', 'Week of 2/17-21/09\nES1’s own Daisy as a baby');
slides[80] = new Slide('../Picture of the Week_files/IMG_1662.jpg', '600', '800', 'Week of 2/23-27/09\nES1 Season 10 crew.  Expect big things!');
slides[81] = new Slide('../Picture of the Week_files/Detention Break.jpg', '600', '800', 'Week of 03/02-06/09\nOnly on ES1 can you see the show Detention Break');
slides[82] = new Slide('../Picture of the Week_files/cast picture adv.jpg', '534', '800', 'Week of 03/09-13/09\nAdvanced Drama Class');
slides[83] = new Slide('../Picture of the Week_files/IMG_1700.jpg', '600', '800', 'Mr. McGregory and Mr. Im lead the new “Builders Club”');
slides[84] = new Slide('../Picture of the Week_files/IMG_2864.jpg', '600', '800', 'Week of 3/23-27\nKids are grossed out from  Liver Lab!');
slides[85] = new Slide('../Picture of the Week_files/S6303048.jpg', '600', '800', 'Week of 3/30-4/3\nKevin is a contestant for East’s Top Model.');
slides[86] = new Slide('../Picture of the Week_files/IMG_2201.jpg', '600', '800', 'Week of 4/6-10/09\nA very happy birthday to Mr. Belman');
slides[87] = new Slide('../Picture of the Week_files/IMG_3893.jpg', '600', '800', 'Week of Easter\n4/10-19/09\nEnsenada Orphanage Charity Walk-A-Thon');
slides[88] = new Slide('../Picture of the Week_files/Minahan.jpg', '440', '348', 'Week of 4/20-24/09\nMr. Minahan, Teacher of the Month for April');
slides[89] = new Slide('../Picture of the Week_files/Mrs_1.jpg', '600', '800', 'Week of 4/27-5/1\nMrs. Hauben with some of her students');
slides[90] = new Slide('../Picture of the Week_files/S6303134.jpg', '600', '800', 'Week of 5/4-8/09\nMrs. Stella is applauded at the Rally for Success');
slides[91] = new Slide('../Picture of the Week_files/Mr_7.jpg', '607', '800', 'Week of 5/11-14/09\nMr. Haas, Teacher of the Month, April');
slides[92] = new Slide('../Picture of the Week_files/IMG_1857.jpg', '600', '800', 'Week of 5/18-22/09\n08-09 Yearbook Students');
slides[93] = new Slide('../Picture of the Week_files/2nd Period.jpg', '600', '800', 'Ms. Parry’s 08-09 2nd Period Class Picture');
slides[94] = new Slide('../Picture of the Week_files/S6300437.jpg', '600', '800', 'Week of 6/1-5/09\nNathan impersonates Abraham Lincoln');
slides[95] = new Slide('../Picture of the Week_files/Civil War Day Kevin Magana.jpg', '600', '800', 'Week of 6/8-12/09\nSocial Studies Annual Civil War Day');
slides[96] = new Slide('../Picture of the Week_files/Schlesinger, Bailey and Endsley.jpg', '600', '800', 'Week of 6/15-19\nWe are going to miss Mrs. Schlesinger, Mrs. Bailey, and Mrs. Endsley');
slides[97] = new Slide('../Picture of the Week_files/S6300048.jpg', '768', '573', 'Week of 9/3-5/09\nMrs. Stella at last years’ graduation ceremony');
slides[98] = new Slide('../Picture of the Week_files/060911-F-9471G-005-1.jpg', '532', '801', '09/08-11/09\nSeptember 11, 2001 is a day we will never forget');
isPureISOLatin1 = true;
contentEncodingConstant = 4;
feedbackURL = "TODO";
showFeedbackButton = false;
feedbackEnabled = true;

slideShowURL = 'SlideShow_assets/SlideShow.html';       // parameter from openSlideShowWindow.js
slideShowNS4URL = 'SlideShow_assets/SlideShowNS4.html'; // parameter from openSlideShowWindow.js

slides = new Array();
slides[0] = new Slide('../Picture of the Week_files/IMG_2332_1.jpg', '600', '800', 'Week of 9/14-18/09\nES1 Season XI crew!');
slides[1] = new Slide('../Picture of the Week_files/DSC00943.jpg', '600', '800', 'Week of 9/21-25/09\nMs. Seo’s dog Chloe!');
slides[2] = new Slide('../Picture of the Week_files/Veggies.jpg', '600', '800', 'Week of 9/28-10/02/09\nThe veggie box fundraiser');
slides[3] = new Slide('../Picture of the Week_files/Mrs_2.jpg', '600', '800', 'Week of 10/5-10/9/09\nMrs. Navarro Staff Member of the Month \n');
slides[4] = new Slide('../Picture of the Week_files/IMG_2712.jpg', '600', '800', 'Week of 10/12-10/16/09\nIntroduction of 1st Semester Student Senate');
slides[5] = new Slide('../Picture of the Week_files/Science Department.jpg', '600', '800', 'Week of 10/19-10/23/09\nEast’s science teachers');
slides[6] = new Slide('../Picture of the Week_files/Six Pillars of Character.jpg', '394', '800', 'Week of 10/22-10/30/09\nSix Pillars of Character');
slides[7] = new Slide('../Picture of the Week_files/The Nerds.jpg', '600', '800', 'Week of 11/02-11/06/09\nEast Best Dance Crew’s The Nerds made round 2');
slides[8] = new Slide('../Picture of the Week_files/IMG_2843.jpg', '600', '800', 'Week of 11/09-11/13/09\nMr.Valdivia was a former Marine');
slides[9] = new Slide('../Picture of the Week_files/IMG_0106.jpg', '600', '800', 'Week of 10/16-10/20/09\nTech-lab member learns about static electricity.');
slides[10] = new Slide('../Picture of the Week_files/Armando.jpg', '600', '800', 'Week of 11/23-11/27/09\nOur SOTW participated in Crash and Burn.');
slides[11] = new Slide('../Picture of the Week_files/IMG_0006.jpg', '635', '801', 'Week of 11/30-12/4/09\n2009’s girls soccer team');
slides[12] = new Slide('../Picture of the Week_files/IMG_0486.jpg', '600', '800', 'Week of 12/7-12/11/09\nEast tech club at a power plant control room.');
slides[13] = new Slide('../Picture of the Week_files/IMG_0027.jpg', '600', '800', 'Week of 12/14-18/09\nPavement near locker rooms under construction');
slides[14] = new Slide('../Picture of the Week_files/IMG_0065.jpg', '600', '800', 'Week of 1/4-1/8/10\nAdvanced Drama');
slides[15] = new Slide('../Picture of the Week_files/MLK2.jpg', '533', '800', 'Week of 1/11-1/15/10\nMartin Luther King Jr. marching for equal rights.');
slides[16] = new Slide('../Picture of the Week_files/102_5715.jpg', '600', '801', 'Week of 1/18-1/22/10\nOffice helpers helping Mrs. Russell');
slides[17] = new Slide('../Picture of the Week_files/101_5790.jpg', '600', '801', 'Week of 1/25-1/29/10\nEast Knights have Integrity.');
slides[18] = new Slide('../Picture of the Week_files/104_0136.jpg', '600', '800', 'Week of 2/1-8/10\nBoys Varsity 6-0 City Champs');
slides[19] = new Slide('../Picture of the Week_files/Mrs_3.jpg', '600', '801', 'Week of 2/08-12/10\nMrs. Arosteguy, Staff Member of the Month');
slides[20] = new Slide('../Picture of the Week_files/ES1Twelve.jpg', '600', '800', 'Week of 2/15-19/10\nES1 Season 12');
slides[21] = new Slide('../Picture of the Week_files/Kiwanis Donation.jpg', '600', '800', 'Week of 2/22-27/10\nKiwanis donated $50,000 to East Middle School');
slides[22] = new Slide('../Picture of the Week_files/Zap.jpg', '600', '800', 'Week of 3/1-5/10\nZaps Birthday is on March 4th');
slides[23] = new Slide('../Picture of the Week_files/104_0360.jpg', '600', '800', 'Week of 3/8-12/10\nMrs. Richardson is the Teacher of the Month');
slides[24] = new Slide('../Picture of the Week_files/104_0361.jpg', '600', '800', 'Week of 3/8-12/10\nMrs. Negro is the Staff Member of the Month');
slides[25] = new Slide('../Picture of the Week_files/Mrs_4.jpg', '521', '800', 'Week of 3/15-19/10\nMrs. Russell is awarded the Honorary Award \n');
slides[26] = new Slide('../Picture of the Week_files/104_6740.jpg', '600', '800', 'Week of 3/22-26/10\nThe book fair is going on in the library.');
slides[27] = new Slide('../Picture of the Week_files/104_6755.jpg', '600', '800', 'Week of 3/29-4/2/10\nThe carnival/dance is of Wednesday');
slides[28] = new Slide('../Picture of the Week_files/104_6835.jpg', '600', '801', 'Week of 4/19-23/10\nMrs Sparangis and her AVID students');
slides[29] = new Slide('../Picture of the Week_files/104_6871.jpg', '800', '600', 'Week of 4/26-30/10\nMrs. Vingino will be a teacher next year');
slides[30] = new Slide('../Picture of the Week_files/104_6903.jpg', '600', '800', 'Week of 5/3-7/10\nJimmy and Jorge at the Rally for Success');
slides[31] = new Slide('../Picture of the Week_files/104_6913.jpg', '600', '801', 'Week of 5/10-14/10\nMs. Moore’s birthday is on Wednesday');
slides[32] = new Slide('../Picture of the Week_files/East Teachers.jpg', '600', '800', 'Week of 5/17-21/10\nMrs. Robinson, Mr. Wong Mr Haas and Mrs. Richardson');
slides[33] = new Slide('../Picture of the Week_files/John O.jpg', '528', '720', 'Week of 5/24-28/10\nJohn O. reciting the Gettysburg Address.');
slides[34] = new Slide('../Picture of the Week_files/2010 Graduation.jpg', '600', '800', '2010 Graduation\nThe Class of 2010 graduates');
isPureISOLatin1 = true;
contentEncodingConstant = 4;
feedbackURL = "TODO";
showFeedbackButton = false;
feedbackEnabled = true;

var MINIMUM_FONT = "10";
var UNITS = "";

function elementFontSize(element)
{
    var fontSize = MINIMUM_FONT; 

    if (document.defaultView)
    {
        var computedStyle = document.defaultView.getComputedStyle(element, null);
        if (computedStyle)
        {
            fontSize = computedStyle.getPropertyValue("font-size");
        }
    }
    else if (element.currentStyle)
    {
        fontSize = element.currentStyle.fontSize;
    }

    if ((UNITS.length == 0) && (fontSize != MINIMUM_FONT))
    {
        UNITS = fontSize.substring(fontSize.length - 2, fontSize.length)
    }

    return parseFloat(fontSize);
}

function adjustFontSizeIfTooBig(idOfElement)
{
    var oTextBoxOuterDiv;
    var oTextBoxMiddleDiv;
    var oTextBoxInnerDiv;
    var oTextBoxOuterDiv = document.getElementById(idOfElement);
    
    if (oTextBoxOuterDiv)
    {
        oTextBoxMiddleDiv = getChildOfType(oTextBoxOuterDiv, "DIV", 0);
        if (oTextBoxMiddleDiv)
        {
            oTextBoxInnerDiv = getChildOfType(oTextBoxMiddleDiv, "DIV", 0);
            if (oTextBoxInnerDiv)
            {
                var offsetHeight = oTextBoxInnerDiv.offsetHeight;
                var specifiedHeight = offsetHeight;
                if (oTextBoxMiddleDiv.style.height != "")
                {
                    specifiedHeight = parseFloat(oTextBoxMiddleDiv.style.height);
                }
                else if (oTextBoxOuterDiv.style.height != "")
                {
                    specifiedHeight = parseFloat(oTextBoxOuterDiv.style.height);
                }
                if (offsetHeight > specifiedHeight)
                {
                    var smallestFontSize = 200;
                    
                    var aParaChildren = getParaDescendants(oTextBoxInnerDiv);
                    var oneLine = false;
                    for (i = 0; i < aParaChildren.length; i++)
                    {
                        var oParagraphDiv = aParaChildren[i];
                        var lineHeight = elementLineHeight(oParagraphDiv);
                        oneLine = oneLine || (lineHeight * 1.5 >= specifiedHeight);
                        if (oParagraphDiv.nodeName == "DIV")
                        {
                            var fontSize = elementFontSize(oParagraphDiv);
                            smallestFontSize = Math.min( smallestFontSize, fontSize );
                            for (j = 0; j < oParagraphDiv.childNodes.length; j++)
                            {
                                var oSpan = oParagraphDiv.childNodes[j];
                                if ((oSpan.nodeName == "SPAN") || (oSpan.nodeName == "A"))
                                {
                                    fontSize = elementFontSize(oSpan);
                                    smallestFontSize = Math.min( smallestFontSize, fontSize );
                                }
                            }
                        }
                    }
                    var minimum = parseFloat(MINIMUM_FONT);
                    
                    var count = 0
                    while ((smallestFontSize > minimum) && (offsetHeight > specifiedHeight) && (count < 10))
                    {
                        ++ count;
                        if (oneLine)
                        {
                            var oldWidth = parseInt(oTextBoxOuterDiv.style.width);
                            oTextBoxInnerDiv.style.width =
                                "" + oldWidth * Math.pow(1.05, count) + "px";
                        }
                        else
                        {
                            var scale = Math.max(0.95, minimum / smallestFontSize);
                            
                            for (i = 0; i < aParaChildren.length; i++)
                            {
                                var oParagraphDiv = aParaChildren[i];
                                if (oParagraphDiv.nodeName == "DIV")
                                {
                                    var paraFontSize = elementFontSize(oParagraphDiv) * scale;
                                    var paraLineHeight = elementLineHeight(oParagraphDiv) * scale;
                                    for (j = 0; j < oParagraphDiv.childNodes.length; j++)
                                    {
                                        var oSpan = oParagraphDiv.childNodes[j];
                                        if ((oSpan.nodeName == "SPAN") || (oSpan.nodeName == "A"))
                                        {
                                            var spanFontSize = elementFontSize(oSpan) * scale;
                                            var spanLineHeight = elementLineHeight(oSpan) * scale;
                                            oSpan.style.fontSize = spanFontSize + UNITS;
                                            oSpan.style.lineHeight = spanLineHeight + UNITS;
                                            smallestFontSize = Math.min( smallestFontSize, spanFontSize );
                                        }
                                    }
                                    oParagraphDiv.style.fontSize = paraFontSize + UNITS;
                                    oParagraphDiv.style.lineHeight = paraLineHeight + UNITS;
                                    smallestFontSize = Math.min( smallestFontSize, paraFontSize );
                                }
                            }
                        }
                        
                        offsetHeight = oTextBoxInnerDiv.offsetHeight;
                    }
                }
            }
        }
    }
}


function elementLineHeight(element)
{
    var lineHeight = MINIMUM_FONT; 
    
    if (document.defaultView)
    {
        var computedStyle = document.defaultView.getComputedStyle(element, null);
        if (computedStyle)
        {
            lineHeight = computedStyle.getPropertyValue("line-height");
        }
    }
    else if (element.currentStyle)
    {
        lineHeight = element.currentStyle.lineHeight;
    }
    
    if ((UNITS.length == 0) && (lineHeight != MINIMUM_FONT))
    {
        UNITS = lineHeight.substring(lineHeight.length - 2, lineHeight.length)
    }
    
    return parseFloat(lineHeight);
}

function adjustLineHeightIfTooBig(idOfElement)
{
    var oTextBoxOuterDiv;
    var oTextBoxMiddleDiv;
    var oTextBoxInnerDiv;
    var oTextBoxOuterDiv = document.getElementById(idOfElement);
    
    if (oTextBoxOuterDiv)
    {
        oTextBoxMiddleDiv = getChildOfType(oTextBoxOuterDiv, "DIV", 0);
        if (oTextBoxMiddleDiv)
        {
            oTextBoxInnerDiv = getChildOfType(oTextBoxMiddleDiv, "DIV", 0);
            if (oTextBoxInnerDiv)
            {
                var offsetHeight = oTextBoxInnerDiv.offsetHeight;
                var specifiedHeight = offsetHeight;
                if (oTextBoxMiddleDiv.style.height != "")
                {
                    specifiedHeight = parseFloat(oTextBoxMiddleDiv.style.height);
                }
                else if (oTextBoxOuterDiv.style.height != "")
                {
                    specifiedHeight = parseFloat(oTextBoxOuterDiv.style.height);
                }
                if (offsetHeight > specifiedHeight)
                {
                    var adjusted = true;
                    var count = 0;
                    while ((adjusted) && (offsetHeight > specifiedHeight) && (count < 10))
                    {
                        adjusted = false;
                        ++ count;
                        
                        var aParaChildren = getParaDescendants(oTextBoxInnerDiv);
                        for (i = 0; i < aParaChildren.length; i++)
                        {
                            var oParagraphDiv = aParaChildren[i];
                            if (oParagraphDiv.nodeName == "DIV")
                            {
                                var fontSize = elementFontSize(oParagraphDiv);
                                var lineHeight = elementLineHeight(oParagraphDiv) * 0.95;
                                if (lineHeight >= (fontSize * 1.1))
                                {
                                    oParagraphDiv.style.lineHeight = lineHeight + UNITS;
                                    adjusted = true;
                                }
                                
                                
                                
                                for (j = 0; j < oParagraphDiv.childNodes.length; j++)
                                {
                                    var oSpan = oParagraphDiv.childNodes[j];
                                    if ((oSpan.nodeName == "SPAN") || (oSpan.nodeName == "A"))
                                    {
                                        var fontSize = elementFontSize(oSpan);
                                        var lineHeight = elementLineHeight(oSpan) * 0.95;
                                        if (lineHeight >= (fontSize * 1.1))
                                        {
                                            oSpan.style.lineHeight = lineHeight + UNITS;
                                            var adjusted = true;
                                        }
                                    }
                                }
                            }
                        }
                        
                        offsetHeight = oTextBoxInnerDiv.offsetHeight;
                    }
                }
            }
        }
    }
}

var smallTransparentGif = "";
function fixupIEPNG(strImageID, transparentGif) 
{
    smallTransparentGif = transparentGif;
    if (windowsInternetExplorer && (browserVersion < 7))
    {
        var img = document.getElementById(strImageID);
        if (img)
        {
            var src = img.src;
            img.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "', sizingMethod='scale')";
            img.src = transparentGif;
            img.attachEvent("onpropertychange", imgPropertyChanged);
        }
    }
}

function fixupIEPNGBG(oBlock) 
{
    if (oBlock)
    {
        var currentBGImage = oBlock.currentStyle.backgroundImage;
        var currentBGRepeat = oBlock.currentStyle.backgroundRepeat;
        var urlStart = currentBGImage.indexOf('url(');
        var urlEnd = currentBGImage.indexOf(')', urlStart);
        var imageURL = currentBGImage.substring(urlStart + 4, urlEnd);

        if (imageURL.charAt(0) == '"')
        {
            imageURL = imageURL.substring(1);
        }
        
        if (imageURL.charAt(imageURL.length - 1) == '"')
        {
            imageURL = imageURL.substring(0, imageURL.length - 1);
        }

        var overrideRepeat = false;

        var filterStyle =
            "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" +
            imageURL +
            "', sizingMethod='crop');";

        if (RegExp("/C[0-9A-F]{8}.png$").exec(imageURL) != null)
        {
            filterStyle =
                "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" +
                imageURL +
                "', sizingMethod='scale');";

            overrideRepeat = true;
        }

        var backgroundImage = new Image();
        backgroundImage.src = imageURL;
        var tileWidth = backgroundImage.width;
        var tileHeight = backgroundImage.height; 
        
        var blockWidth = 0;
        var blockHeight = 0;
        if (oBlock.style.width)
        {
            blockWidth = parseInt(oBlock.style.width);
        }
        else
        {
            blockWidth = oBlock.offsetWidth;
        }
        if (oBlock.style.height)
        {
            blockHeight = parseInt(oBlock.style.height);
        }
        else
        {
            blockHeight = oBlock.offsetHeight;
        }

        if ((blockWidth == 0) || (blockHeight == 0))
        {
            return;
        }
        
        var wholeRows = 1;
        var wholeCols = 1;
        var extraHeight = 0;
        var extraWidth = 0;
        
        if ((currentBGRepeat.indexOf("no-repeat") != -1) ||
              ((tileWidth == 0) && (tileHeight == 0)) ||
              overrideRepeat)
        {
            tileWidth = blockWidth;
            tileHeight = blockHeight;

        }
        else if ((currentBGRepeat.indexOf("repeat-x") != -1) ||
              (tileHeight == 0))
        {
            wholeCols = Math.floor(blockWidth / tileWidth);
            extraWidth = blockWidth - (tileWidth * wholeCols);
            tileHeight = blockHeight;

        }
        else if (currentBGRepeat.indexOf("repeat-y") != -1)
        {
            wholeRows = Math.floor(blockHeight / tileHeight);
            extraHeight = blockHeight - (tileHeight * wholeRows);
            tileWidth = blockWidth;

        }
        else
        {
            wholeCols = Math.floor(blockWidth / tileWidth);
            wholeRows = Math.floor(blockHeight / tileHeight);
            extraWidth = blockWidth - (tileWidth * wholeCols);
            extraHeight = blockHeight - (tileHeight * wholeRows);
        }
        
        var wrappedContent = document.createElement("div");
        wrappedContent.style.position = "relative";
        wrappedContent.style.zIndex = "1";
        wrappedContent.style.left = "0px";
        wrappedContent.style.top = "0px";
        if (!isNaN(parseInt(oBlock.style.width)))
        {
            wrappedContent.style.width = "" + blockWidth + "px";
        }
        if (!isNaN(parseInt(oBlock.style.height)))
        {
            wrappedContent.style.height = "" + blockHeight + "px";
        }
        var pngBGFixIsWrappedContentEmpty = true;
        while (oBlock.hasChildNodes())
        {
            if (oBlock.firstChild.nodeType == 3)
            {
                if (RegExp("^ *$").exec(oBlock.firstChild.data) == null)
                {
                    pngBGFixIsWrappedContentEmpty = false;
                }
            }
            else
            {
                pngBGFixIsWrappedContentEmpty = false;
            }
            wrappedContent.appendChild(oBlock.firstChild);
        }
        if (pngBGFixIsWrappedContentEmpty)
        {
            wrappedContent.style.lineHeight = "0px";
        }
        
        var newMarkup = "";
        for (var currentRow = 0; 
             currentRow < wholeRows; 
             currentRow++)
        {
            for (currentCol = 0; 
                 currentCol < wholeCols; 
                 currentCol++)
            {
                newMarkup += "<div style=" +
                        "\"position: absolute; line-height: 0px; " +
                        "width: " + tileWidth + "px; " +
                        "height: " + tileHeight + "px; " +
                        "left:" + currentCol *  tileWidth + "px; " +
                        "top:" + currentRow *  tileHeight + "px; " +
                        "filter:" + filterStyle + 
                        "\" > </div>";
            }
            
            if (extraWidth != 0)
            {
                newMarkup += "<div style=" +
                        "\"position: absolute; line-height: 0px; " +
                        "width: " + extraWidth + "px; " +
                        "height: " + tileHeight + "px; " +
                        "left:" + currentCol *  tileWidth + "px; " +
                        "top:" + currentRow *  tileHeight + "px; " +
                        "filter:" + filterStyle + 
                        "\" > </div>";
            }
        }
        
        if (extraHeight != 0)
        {
            for (currentCol = 0; 
                 currentCol < wholeCols; 
                 currentCol++)
            {
                newMarkup += "<div style=" +
                        "\"position: absolute; line-height: 0px; " +
                        "width: " + tileWidth + "px; " +
                        "height: " + extraHeight + "px; " +
                        "left:" + currentCol *  tileWidth + "px; " +
                        "top:" + currentRow *  tileHeight + "px; " +
                        "filter:" + filterStyle + 
                        "\" > </div>";
            }
            
            if (extraWidth != 0)
            {
                newMarkup += "<div style=" +
                        "\"position: absolute; line-height: 0px; " +
                        "width: " + extraWidth + "px; " +
                        "height: " + extraHeight + "px; " +
                        "left:" + currentCol *  tileWidth + "px; " +
                        "top:" + currentRow *  tileHeight + "px; " +
                        "filter:" + filterStyle + 
                        "\" > </div>";
            }
        }
        oBlock.innerHTML = newMarkup;

        oBlock.appendChild(wrappedContent);
        oBlock.style.background= "";
    }
}

function fixupAllIEPNGBGs()
{
    if (windowsInternetExplorer && (browserVersion < 7))
    {
        try
        {
            var oDivNodes = document.getElementsByTagName('DIV');
            for (var iIndex=0; iIndex<oDivNodes.length; iIndex++)
            {
                var oNode = oDivNodes.item(iIndex);
                if (oNode.currentStyle &&
                    oNode.currentStyle.backgroundImage &&
                    (oNode.currentStyle.backgroundImage.indexOf('url(') != -1) &&
                    (oNode.currentStyle.backgroundImage.indexOf('.png")') != -1))
                {
                    fixupIEPNGBG(oNode);
                }
            }
        }
        catch (e)
        {
        }
    }
}

function fixupIECSS3Opacity(strElementID)
{
    if (windowsInternetExplorer)
    {
        var oNode = document.getElementById(strElementID);
        if (oNode)
        {
            oNode.style.height = '' + oNode.offsetHeight + 'px';
            oNode.style.filter =
                'progid:DXImageTransform.Microsoft.Alpha(opacity=' +
                 Math.round(100.0 - parseFloat(oNode.style.getAttribute('opacity')) * 100) +
                 ');'
        }
    }
}

function getChildOfType(oParent, sNodeName, requestedIndex)
{
    var childrenOfType = oParent.getElementsByTagName(sNodeName);
    return (requestedIndex < childrenOfType.length) ?
           childrenOfType.item(requestedIndex) : null;
}

function getParaDescendants(oAncestor)
{
    var oParaDescendants = new Array();
    var oPotentialParagraphs = oAncestor.getElementsByTagName('DIV');
    for (var iIndex=0; iIndex<oPotentialParagraphs.length; iIndex++)
    {
        var oNode = oPotentialParagraphs.item(iIndex);
        if (oNode.className.lastIndexOf('paragraph') != -1)
        {
            oParaDescendants.push(oNode);
        }
    }
    return oParaDescendants;
}

function onPageLoad()
{
    detectBrowser();
    adjustLineHeightIfTooBig("id1");
    adjustFontSizeIfTooBig("id1");
    fixupAllIEPNGBGs();
    fixupIECSS3Opacity('id2');
    fixupIECSS3Opacity('id3');
    fixupIECSS3Opacity('id4');
    fixupIEPNG("id5", "Picture of the Week_files/transparent.gif");
    fixupIEPNG("id6", "Picture of the Week_files/transparent.gif");
    fixupIEPNG("id7", "Picture of the Week_files/transparent.gif");
    fixupIEPNG("id8", "Picture of the Week_files/transparent.gif");
    fixupIEPNG("id9", "Picture of the Week_files/transparent.gif");
    fixupIEPNG("id10", "Picture of the Week_files/transparent.gif");
    fixupIEPNG("id11", "Picture of the Week_files/transparent.gif");
    fixupIEPNG("id12", "Picture of the Week_files/transparent.gif");
    fixupIEPNG("id13", "Picture of the Week_files/transparent.gif");
    fixupIEPNG("id14", "Picture of the Week_files/transparent.gif");
    return true;
}

var windowsInternetExplorer = false;
var browserVersion = 0;
function detectBrowser()
{
    windowsInternetExplorer = false;
    var appVersion = navigator.appVersion;
    if ((appVersion.indexOf("MSIE") != -1) &&
        (appVersion.indexOf("Macintosh") == -1))
    {
        var temp = appVersion.split("MSIE");
        browserVersion = parseFloat(temp[1]);
        windowsInternetExplorer = true;
    }
}

var inImgPropertyChanged = false;
function imgPropertyChanged()
{
    if ((window.event.propertyName == "src") && (! inImgPropertyChanged))
    {
        inImgPropertyChanged = true;
        var el = window.event.srcElement;
        if (el.src != smallTransparentGif)
        {
            el.filters.item(0).src = el.src;
            el.src = smallTransparentGif;
        }
        inImgPropertyChanged = false;
    }
}

