/* Louis W. Adams, Jr.; March 28, 2009 */

window.onload = initAll;

/* Allocate variable names for global scope album data. */
var currImg = 0;
var fileName= "";
var titleText= "";
var captionText = new Array("")

/* All album photos are sequenced using lower case letters at the end of their names.  Add to array to have more photos, but extend the alphabetical sequence shown here. */
var LCLetter = new Array(
    "a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","aa","ab","ac","ad"
)

/* Initialize album data. */
function initAll() {
    if (document.getElementById) {
    
        var x = document.getElementsByTagName('a');

        /* Find out which album is first on the list of links, and display it. */
        for (var i=0;i<x.length;i++) {
            if (x[i].className != 'album') continue;
            loadAlbum(x[i].id);
            break;
        }
        
        /* Display an album after the user clicks on an album link on the web page. */
        for (var i=0;i<x.length;i++) {
            if (x[i].className != 'album') continue;
            x[i].onclick = function() {
                loadAlbum(this.id);
                return false;
            }
        }
        
        /* Display the previous photo in album when the "Back" button is clicked. */
    	document.getElementById("AlbumBack").onclick = function() {
    		newSlide(-1); 
    	}
    	
    	/* Display the next photo in album when the "Next" button is clicked. */
    	document.getElementById("AlbumNext").onclick = function() {
    		newSlide(1); 
    	}
        
    }
    else {
        alert("Sorry.  Either the browser is using an old version of JavaScript that won't work here, or security software is blocking it.");
	}
}

/* Display next or previous photo and caption on web page. */
function newSlide(direction) {
	var imgCt = captionText.length;

	currImg = currImg + direction;
	if (currImg < 0) {
		currImg = imgCt-1;
	}
	if (currImg == imgCt) {
		currImg = 0;
	}
    loadPhotoAndCaption();
}

/* Load photo image and caption onto web page. */
function loadPhotoAndCaption() {
	document.getElementById("AlbumPhoto").src = "Shared/Image/Albums_SpartanburgCC/" + fileName + LCLetter[currImg] + ".jpg";
	document.getElementById("AlbumText").innerHTML = (currImg+1) + "/" + captionText.length + ":  " + captionText[currImg];        
}

function loadAlbum(selectAlbum) {
    currImg = 0;            // Reset to first image number for album.
    captionText = [];       // Reset caption array to empty.    
    fileName= selectAlbum;  // Prefix for image file names.

    /* Load new album data.  This is the only place in this script to specify album information. Case order is unimportant. */
    switch(selectAlbum) {
        case "SpartanburgCC_10-05-14":
            titleText= "Moving Nursery (May 2010)";        

            captionText[0]= "Contractor David Settle finishes installing the irrigation timer for the overhead watering system for nursery plants. The nursery plants could not be moved from Hatcher Garden to Spartanburg Community College until the new site had an irrigation system in place.";
            captionText[1]= "Jack Turner, Don Crowder, Bob Reynolds, Phillip Jeter, Ron Romine, Jeff Hayes, Terrie Rourke, Lou Adams, Gail McCullough, and Linda McHam worked most of a day late in May to move 90% of the container plants from Hatcher Garden to SCC. There was a cloud cover and some drizzle, which helped a lot by keeping them cool!";
            captionText[2]= "One of several caravans of plants begins its journey from Hatcher Garden to SCC.";
            captionText[3]= "Volunteers place plants on the new site. The gravel under the trucks was delivered and spread by Bird Paving while we were working. Rain falls at the distant horizon.";
            captionText[4]= "Hungry volunteers devour hotdogs, baked beans, chips, cookies, tea, and water after a long morning of moving plants. They were so rejuvenated that they went back for a second load of plants! Lyn Murajda and her husband Douglas grilled hotdogs, and provided other foods and drinks.";
            captionText[5]= "Don and Bob Reynolds (right) check the throw of the overhead irrigation to make certain that all plants are getting water.";
            captionText[6]= "Club president Ed Wilde surveys the empty lot at Hatcher Garden. Don Crowder's and Linda McHam's trucks carry the last plastic pots and trash from the site. Farewell to Hatcher Garden; hello, Spartanburg Community College! Photos by Linda McHam.";
            
            break;
        case "SpartanburgCC_10-05-07":
            titleText= "Propagation Beds (May 2010)";        

            captionText[0]= "The move begins in earnest in early May: volunteers begin potting-up rooted cuttings from the previous year.  Plants, planting frames, and potting media must be moved from Hatcher Garden to Spartanburg Community College. See the <a href=Albums_PlantPropagation.html>Propagation Project</a> page for more information about the SMGC propagation project.";
            captionText[1]= "All of the cuttings were transferred from their winter beds to one-gallon pots. We had about a 50% success rate on average. Not bad for our first attempt!  A plugged spray nozzle caused some plants to die due to lack of water.";
            captionText[2]= "Hydrangea and buddleia cuttings grew really good roots, and are ready to start their new lives in pots.";
            captionText[3]= "We are reusing potting media from the propagation boxes. This is too valuable to simply discard.";
            captionText[4]= "Contractor David Settle (left) discusses the pressure reducer with Don Crowder. It reduces the water pressure so the mister heads in the propagation boxes are not blown out.";
            captionText[5]= "Moving the propagation frames from Hatcher Garden to SCC was one of the last steps of the move to SCC, and took place late in May. The last of three propagation frames is in the bed of the truck, and the trailer holds nursery pots.  Jeff Hayes and Don check Charlie Gray's trailer before leaving Hatcher Garden.";
            captionText[6]= "Don and Linda McHam assembled the propagation frames at SCC.";
            captionText[7]= "The propagation timer and the mister heads are tested after bed reassembly.  Note the water spray from emitters along the top beam.  The complete process of potting rooted cuttings and moving the frames requires most of May. Photos by Linda McHam.";
            
            break;
        case "SpartanburgCC_10-05-13":
            titleText= "New Shed (May 2010)";        

            captionText[0]= "During the second week of May, Don Crowder begins assembling the wood platform for a new metal shed to store tables and chairs. Linda McHam helped by handing tools and parts to Don.  The old shed stands in the background.";
            captionText[1]= "The platform in place, Don reads through the assembly instructions.";
            captionText[2]= "Don Crowder nears completion of the metal shed. Working inside a metal building in late spring is HOT WORK!";
            captionText[3]= "Here is the completed new shed, in place next to the old shed!<br /><br />Photos by Linda McHam.";
            
            break;
        case "SpartanburgCC_10-04-28":
            titleText= "Old Shed (April &amp; May 2010)";        

            captionText[0]= "In late April, Eric Holmes (left) from Upstate Buildings in Cowpens loads our old storage shed at Hatcher Garden after Don Crowder (right) made a tie-bar so that the building can be pulled onto the truck rollback. A little ingenuity goes a long way!";
            captionText[1]= "The shed makes the turn into the back entrance of Spartanburg Community College.";
            captionText[2]= "Joe Maple, Jess Taylor, and Allene Taylor vist the new site and are impressed by what they see.";
            captionText[3]= "Although the shed did not make it to the top of the hill (far right) when it arrived because of muddy ground, Charles Deming and his electrical crew (Deming Electric, LLC) installed a meter so that Duke Energy could connect electrical power once the shed was properly sited. Don Crowder stands at right.";
            captionText[4]= "Duke Energy representative Ryan Gromlovits marks the shed pad for underground power.";
            captionText[5]= "Mike and Daniel Ramsey, who own Upstate Buildings, prepare to unload the shed at its final location.";
            captionText[6]= "The old shed at its new SCC home. This is just the start of good things to come!";
            captionText[7]= "We passed Spartanburg County inspection on May 6! Now the power can be connected and turned on!";
            captionText[8]= "Even the big guys have problems. The day that Duke Energy was to hook up our power, their truck broke an axel. We (and they) lost a day.";
            captionText[9]= "The new power meter shows &quot;00000&quot; the second week of May. We are ready for business!<br /><br />Photos by Linda McHam.";
            
            break;
        case "SpartanburgCC_10-04-21":
            titleText= "Kudzu (April &amp; May 2010)";        

            captionText[0]= "Late in April Lou Adams, two paid helpers in orange vests from the Kudzu Coalition (left to right, Andre Anderson and Jimmy Kelly), Ben Waddell, and Ed Wilde (left to right) help rake away stones and remove kudzu crowns.  Cutting the crown off the top of roots kills each plant.  This prepares the ground for a landscape fabric cover for the container plant nursery.  Note the vertical PVC pipes for raised irrigation spray heads.";
            captionText[1]= "Lou Adams and Bob Reynolds (in background) continue the clearing work, while Ben Waddell and Don Crowder install fabric.";
            captionText[2]= "Don Oldham, Paul Savko, Newt Hardie, Chuck Hembree, and Buddy Walters (left to right) remove kudzu from Buddy's tiller.  These members of the Kudzu Coalition tilled ground outside the irrigated area (to avoid water pipes).  This tilling pulls kudzu plants out of the ground, which mostly end up wrapped around the tiller rotor prongs.  Note the pile of kudzu vines, crowns, and roots on the ground beneath the rotor.";
            captionText[3]= "Paul Savko, New Hardie, Howard Miller, Don Oldham, Chuck Hembree, and Lou Adams (left to right) attacking kudzu inside the irrigated area.  A method named &quot;surgical crown removal&quot; is used where powered machines cannot be used; this technique was discovered, and is taught by, the Kudzu Coalition. For more details see <a href=http://www.kokudzu.com/SurgicalRemoval.html>their website</a>.";
            captionText[4]= "However, nothing stands still, least of all kudzu: rain in early May stimulates new growth that reveals  kudzu in ground that is not yet worked to remove plants. Kudzu grows at a rate of one foot per day!";
            captionText[5]= "Paul David Blakely, who owns &quot;Kudzilla&quot;, donates his time and equipment to removing kudzu from our site. Kudzilla is a skid-steer loader (&quot;Bobcat&quot;) that was modified by the Kudzu Coalition specifically for removing kudzu.";
            captionText[6]= "Some of SMGC's nursery plants are visible through the trees at left after Paul David Blakely and the Kudzu Coalition clear some of the kudzu from beneath the trees.  Thanks to everyone at the Kudzu Coalition!  But much work remains in the future to manage the invasive pest.<br /><br />Photos by Linda McHam.";
            
            break;
        case "SpartanburgCC_10-03-19":
            titleText= "Site Preparation (March 2010)";        

            captionText[0]= "David Settle of David Settle Landscape Company begins our site preparation at SCC with his bobcat.";
            captionText[1]= "The utilities location company marked the site (orange paint) so that David would know where it was safe to dig. Anytime you have trenching or digging done on your property, you should call and ask for this free service.";
            captionText[2]= "Our site was cleared of kudzu vines. But adjoining fields of kudzu (gray area at left) will be continual invaders.";
            captionText[3]= "David widens the access road to the site so two vehicles can pass. This will be useful when we hold our plant sales.";
            captionText[4]= "The pad for our shed is being created by means of a &quot;cut and fill&quot; method.";
            captionText[5]= "Here the pad has been enlarged; more work is necessary. The area must be large enough for a roll back truck to drop the shed onto the correct location.";
            captionText[6]= "David and his helper, Wesley, dig trenches and position the 2&quot; pipe for the main trunk line, and risers that are placed at 90&deg; to the trunk line.";
            captionText[7]= "David and Wesley assemble and glue pipe as they go. Wesley covers the trenches with dirt as quickly as possible because there was a chance of rain. Once pipe segments are glued together and the trench is filled, David will use his tractor to compact the ground so it can be covered with black landscape fabric.";
            captionText[8]= "David uses white wire for the ground line and orange for the power; guess where he went to college! And Don Crowder approved of his choice of colors.<br /><br />Photos by Linda McHam.";
            
            break;
        case "SpartanburgCC_10-03-09":
            titleText= "Sharing Bounty (March 2010)";        

            captionText[0]= "A visit to our site at the college showed that it has been mostly cleared by SCC so that David Settle of David Settle Landscape Company can begin installing the irrigation system.";
            captionText[1]= "Jason Bagwell (left) and Kevin Parris (top of the hill in blue shirt and blue jeans) watch a horticultural class install some of the plants given to SCC by outstanding nurseryman Bob Head of Seneca, South Carolina. Bob donated his wholesale inventory to SCC. SCC, in turn, is donating part of this inventory to SMGC and Hatcher Garden.";
            captionText[2]= "One of the SCC horticultural students tackles kudzu vines from the cleared site. They may want to call in the Kudzu Coalition for this job!";
            captionText[3]= "SCC's Kevin Parris (center with shovel) shows his class how to set and finish off the plants when they are placed on a hillside.";
            captionText[4]= "This shows a sample of plants donated to SCC by Bob Head. SCC, in turn, donated about 40% of these plants to SMGC for our plant sales!";
            captionText[5]= "Kevin Parris, Director of the Arboretum, shows Dr. Bob Reynolds, SMGC's vice president and container nursery chairman, some of the merits of the new magnolia cultivars that we are receiving.";
            captionText[6]= "Linda McHam, Don Crowder, Ed Wilde, Bob Reynolds, and Lyn Murajda (left to right) turned out on a rainy day to move plants from SCC to Hatcher Garden for our spring plant sale. Photo by Martha Foster.";
            captionText[7]= "Martha Tiller Foster, Linda McHam's sister, helped with the plant move by bringing her horse trailer to SCC. Bob Reynolds kept us on track with the plant inventory.";
            captionText[8]= "The <i>Cryptomeria radicans</i> rode in style! Thanks, Martha!";
            captionText[9]= "Linda McHam and Don Crowder transfer plants from the trays to the trailer for their short ride to Hatcher Garden.<br /><br />Photo by Martha Foster.";
            captionText[10]= "A total of four pick-up trucks and two trailers were necessary to move donated plants to our container nursery at Hatcher Garden. This is about the time the skies opened up and the rain came down in buckets!";
            captionText[11]= "Lyn Murajda, Don Crowder, Dr. Bob Reynolds, and Dr. Ed Wilde (left to right) pause momentarily for a photo.";
            captionText[12]= "Lyn Murajda, Don Crowder, and Ed Wilde (left to right) wrap tape around groups of plants to keep them from blowing over until we can put them into larger pots.";
            captionText[13]= "Don Crowder walks away from a good morning's work. All the plants are safely tucked into their new (temporary) home, waiting to be purchased and taken to their final homes and new beds. Over 600 plants were transferred from SCC!";
            captionText[14]= "Imitation is the sincerest form of flattery: Jeff Hall's new propagation beds at Hatcher Garden look <a href=Albums_PlantPropagation.html>strangely familiar</a>. Lyn Murajda checks it out.";
            captionText[15]= "One compliment deserves another: SMGC may adjust its propagation beds to include small plastic pots set in trays, as shown in the photo. It would make sticking the cuttings easier, and subsequent potting-up would entail less root damage. We will have this down to a science shortly! See what you are missing? Join the club and get involved!<br /><br />Photos by Linda McHam, except where noted otherwise.";
            
            break;
        case "SpartanburgCC_10-02-15":
            titleText= "The Party (February 2010)";        

            captionText[0]= "At the first membership meeting at Spartanburg Community College, the Club held a party to celebrate our new &quot;digs&quot;. Over 90 people attended the event. In addition to heavy hors d'oeuvres, a special cake was ordered and consumed along with coffee and punch. What a way to start off!";
            captionText[1]= "The Publicity Committee who organized the event consisted of (left to right) Peggy Romine, Linda McHam, Nancy Williamson, Lyn Murajda, Beth Waddell, and Joyce Crescenzi.";
            captionText[2]= "A welcome table was provided at the entrance to the Community Room. Flowers were donated by Linda Cobb and arranged by Annette Price. Four lucky attendees took them home. Joyce Crescenzi and Stephanie Heath staffed the table for most of the evening.";
            captionText[3]= "Lots of free food really brought out the attendees. There were people in attendance that we have missed for two years! Perhaps we should do this more often! The quantity and selection was excellent.";
            captionText[4]= "Pledge cards were available at the first membership meeting at SCC. The move to our new location will cost quite a bit, and we encourage everyone to pitch in and help support the move with money and volunteer hours! We need your help!";
            captionText[5]= "Nancy Williamson chats with Gisela Otto and her husband Wolfgang, while Wendell Tiller (left) and Henry Pittman receive a cup of punch from Lyn Murajda. Tasso Ghionis (in brown jacket) visits with other members.";
            captionText[6]= "Bill Wilson and Peggy Wilson (raincoats) enjoy food and punch with Henry Pittman. Steve Patton (standing left) and Jeff Hayes discuss the party, while other members process through the food line in the background.";
            captionText[7]= "Jay Moore (left), instructor of Horticulture at SCC and owner of Carolina Garden World on S. Pine Street, describes his work to Steve Patton and other Club members at the membership meeting. Jay will assist the Club, along with Jason Bagwell and Kevin Parris (see later photos), as we get our programs up and running.";
            captionText[8]= "Henry Pittman (standing left) chats with Lou Adams at the membership meeting. Other members in the photo include: Martha and Wendell Tiller, Nancy Williamson, Gail McCullough, Caroline Maple, Jim Bean, Bob McCullough and Robin Vollmer of Hatcher Garden. Harold Wolfe heads to the food line one more time!";
            captionText[9]= "Linda McHam, Immediate Past President of SMGC, was moderator for the evening's events.";
            captionText[10]= "Dr. Para Jones, President of SCC, warmly welcomed the Spartanburg Men's Garden Club to the campus and announced that the draft Memo of Understanding between the two had been approved at the Commissioners meeting that afternoon. Installation of our new facilities at SCC begins shortly!";
            captionText[11]= "Dr. Joe Sidlowski, Dean of Instruction at SCC, welcomes SMGC to campus. His support paved the way for the Club to make SCC its home.";
            captionText[12]= "Dr. Ed Wilde, President of SMGC, thanks SCC for working with the Club to help us establish our new home on their campus. The timing could not have been better, nor the reception from SCC warmer!";
            captionText[13]= "Jason Bagwell, Department Chair of Horticulture, expressed his enthusiasm for the new partnership and stated that it was a dream fulfilled to work with community organizations such as ours.";
            captionText[14]= "Kevin Parris, Director of the Arboretum at SCC, described his pleasure with the alliance with SMGC on the campus of SCC. Kevin was enthusiastic from the initial meeting and is looking forward to working together on future projects.";
            captionText[15]= "Speeches done, it's time for Lyn Murajda (right) to cut and serve the cake.  Peggy Romine serves coffee.<br /><br />Photos by Jeff Hayes and Linda McHam.";
            
            break;
        case "SpartanburgCC_09-10-19":
            titleText= "The Plan (October 2009 - January 2010)";        

            captionText[0]= "Spartanburg Community College is the new home of the Spartanburg Men's Garden Club. We are proud to be affiliated with the college and their horticulture program.  October 2009.";
            captionText[1]= "The first organizational meeting in the Horticultural gardens of Spartanburg Community College included (left to right): Ed Wilde, President of SMGC; Dr. Joe Sidlowski, Dean of Instruction; Jason Bagwell, Department Chair of Horticulture at SCC; Don Crowder, a past president of SMGC; Kevin Parris, Director of the Arboretum at SCC; and, Linda McHam, a past president of SMGC, who took this photograph.  October 2009.";
            captionText[2]= "The foyer outside the Community Room in the Health Sciences Building. The Community Room will be the location for the board and membership meetings for the Spartanburg Men’s Garden Club. January 2010.";
            captionText[3]= "This view of the Community Room shows the podium, screen and writing board. SMGC membership and board meetings will be held here.  January 2010.";
            captionText[4]= "The Gaines Auditorium in the Tracy J. Gaines Learning Resource Center (central campus) is where SMGC holds its Annual Membership Meeting in November. This room holds approximately 150 people. January 2010.";
            captionText[5]= "Across from the Health Sciences Building is the Pavilion in the Horticulture gardens. SMGC will hold its picnic and other outdoor activities in this space.  December 2009.";
            captionText[6]= "The Pavilion has two restrooms and a service room for food staging. This building is located at the far end of the Horticulture garden across from the West Building.  January 2010.";
            captionText[7]= "From within the Pavilion you can see the Health Sciences Building in the distance. There are ceiling fans, facilities for projectors, and screens for blocking the sun. There are also outdoor grills available in this area. Our picnic will be able to proceed, rain or shine!  October 2009.";
            captionText[8]= "Another interior view of the Pavilion showing the two restrooms and the pass-through window to the food staging area. Note the projection screen.  October 2009.";
            captionText[9]= "The entrance sign to the Horticulture Gardens at Spartanburg Community College. There is a security gate, and security is available at all times.  October 2009.";
            captionText[10]= "Two of the over-wintering greenhouses that the Horticulture Department uses. SCC has its own propagation program for the students and sells many of its plants to wholesalers. This is valuable experience for students.  October 2009.";
            captionText[11]= "Trays of plants that the Horticulture Program is propagating.  October 2009.";
            captionText[12]= "Work benches and storage for propagation.  October 2009.";
            captionText[13]= "There are five greenhouses on site in the gardens. To the right is a space that may be home to a permanent heated classroom in the future.  October 2009.";
            captionText[14]= "One of several storage sheds in the Horticulture gardens.  October 2009.";
            captionText[15]= "The view across a small valley to the SMGC site. The propagation area will be set up to the left of the power poles. The right side will be kept clear for access by Duke Power and SCC. The SMGC shed will be located at the right where the four orange flags are staked.  December 2009.";
            captionText[16]= "Looking back toward the campus at the site for the container nursery for SMGC. The plants will be located to the right of the power poles. Note the large field of Kudzu to the right. We will be calling on the Kudzu Coalition for HELP!  November 2009.";
            captionText[17]= "Looking back toward the campus, this view shows where our sand and potting soil will be located (in the center of the photo), just beyond the wood pile to the left.  November 2009.";
            captionText[18]= "Men and their toys: Jason Bagwell takes a day during the winter break to mow down kudzu and medium shrubs and trees on space at the edge of the property line. This area was made available when the site was surveyed to make certain our container nursery was on the school's property.  December 2009.";
            captionText[19]= "Ben Waddell, SMGC treasurer, and Jason Bagwell, Department Chair of Horticulture at SCC, discuss the control set-up of the bush hog. Note that the kudzu has been mowed, but it is not gone — yet!  December 2009.";
            captionText[20]= "Don Crowder, a past president of SMGC, and Ben Waddell, current Treasurer, debate who is going to be first to take the bobcat for a spin.  December 2009.";
            captionText[21]= "A view over the expanse of parking area for our new container nursery. This will alleviate any problem on plant sale days concerning where people will park. This will also save the cost of police assistance on sale days.  January 2010.";
            captionText[22]= "Here we are on the site of the new container garden, looking away from campus. SMGC will occupy the left side of the power poles, keeping the right side free for access by Duke Power and SCC. These areas are hidden from the general public.  December 2009.";
            captionText[23]= "The Publicity Committee: Nancy Williamson, Peggy Romine, Joyce Crescenzi, Linda McHam, Lyn Murajda, and Beth Waddell (not shown). These women planned the announcement of the move to the membership through the mail, the SMGC Yahoo! Group, the media and friends of SMGC, and they coordinated the 'Room to Grow' event for our first membership meeting at Spartanburg Community College. Not shown is Lou Adams who made extensive changes to our website so the membership could follow the Club's progress during the move.  January 2010.";
            captionText[24]= "The relocation committee consisted of (left to right): Linda McHam, Immediate Past President; Ed Wilde, current President; Lyn Murajda, Secretary; Bob Reynolds, Vice President; Ben Waddel, Treasurer; Don Crowder, past President. Many hours of research and preparation went into the decision to make the move to Spartanburg Community College.  January 2010.<br /><br />Photos by Linda McHam.";
            
            break;
    }
    document.getElementById("AlbumTitle").innerHTML = titleText;    // Load album title onto web page.
    loadPhotoAndCaption();
}