
// Program: SlideShow.js
// By:      Duane M. Gran, ragnar@spinweb.net
// Fixed bug with Internet Explorer   By: Little Dog
// Purpose: The user can pan through a series of images with textual
//          descriptions for each image.
// Function: loadImages
// Purpose:  Reads in images (named 1.jpg through i.jpg) into an array.

         function loadImages()
             {
               images    = new Array();
               numImages = 18;
               for (i = 1; i < numImages+1; i++)
               {
                 images[i]     = new Image();
                 images[i].src = "PortfolioPics/" + i + ".jpg";
               }
             }

             // Function: loadText
             // Purpose:  Stores textual descriptions for images into an array.

             function loadText()
             {    
               text      = new Array();
               text[1] = "Well, you've seen for yourself what we're made of. Much like Soylent Green, PANGEA is made out of people. And we continually thank our people -- and they thank us, by bi-annually allowing themselves to be humiliated during PANGEA Nude Day. If you want to see more of our work, simply visit your local toy store and check out the shelves! We're wherever fun is sold.";
               text[2] = "It's true. The rumors, the suspicions. It's all true. PANGEA is the creative development group that worked on tons of Turtle product, including packaging, design, writing and story premises for Playmates Toys and SOB Productions/MWS and a host of other licensees. A lot has been said about this phenomenal property, created by Kevin Eastman and Peter Laird. We still like what our mentor's early high concept pitch was: it's green against brick.";
               text[3] = "PANGEA's touched many of today's popular icons: services range from conceptualization of new product to package design, from copywriting to strategic marketing. Toy makers we have worked with have come to us with projects large and small. At PANGEA, size does not matter.";
               text[4] = "PANGEA knows no boundaries. For this project, we crossed the Atlantic and worked with Gaumont Studios on the entertainment bible; then it was off to Milan, Italy to develop the toy line for licensee Giochi Preziosi. PANGEA composed and developed the toy line, from soup to nuts. This project was the first entree of the Italian giant, Giochi Preziosi, into markets outside of Europe. At the end of the project, we shipped the entire toy line off to the Vatican City to be blessed. It is, by our knowledge, still the only range of toys that was made from Papal plastic.";
               text[5] = "PANGEA conceived, developed and co-produced this reality-based, live action series with Lynda Goodfriend, accomplished actress (Happy Days) and kids talent manager. The show followed a teen beat troupe of heartthrobs who toured the country in a Winnebago, searching for young, undiscovered 'HotShots.' The first episode featured 11 year-old Smith Shapiro, who was quickly befriended by rocker David Lee Roth. Smith recorded several Axel Rose songs before he turned 12. PANGEA cast the show, wrote and co-produced this made-for-cable series, which featured Latino hunk, Diego Serrano, who recently jumped from 'HotShots' to 'Days of Our Lives' in a single bound.";
               text[6] = "The most powerful pullback motorcar system, Fun Runs was introduced by Tomy Toys. PANGEA provided a full service approach to this exceptional line of pre-school vehicles: from product naming, marketing, positioning, packaging to audio storybooks and showroom design. Fun Runs run and run, but they NEVER run out of fun.";
               text[7] = "The toy line that was there and gone faster than you could say Flash Gordon. But we had tons of fun working on the project because it was so incongruous with the times. While working on this toy line, PANGEA director John Besmehn insisted his staff call him Ming. Fortunately, his staff could not speak.";
               text[8] = "An original property developed by PANGEA for Dic Animation, the Dream Team is a heroic squad that rescues kids from their nightmares. From simple sketches to animation quality cel art, from concept to script, PANGEA is your pre-assembled, just add water Dream Team.";
               text[9] = "If you're looking for developing a character out of thin air, PANGEA's offices are filled to the brim with thin air. That's how we create dynamic personalities like Little T. Our fave phrase that Little T blurts out when you turn him upside-down: 'Hey, I can see up your nose!' Our fave phrase that was edited into oblivion: 'Good thing I'm not programmed for revenge.'";
               text[10] = "This military building system got a kick in the proverbial pants when PANGEA provided DSI Toys with a complete internet marketing strategy. From the award-winning web site to DSI's proactive participation in PANGEA's AOL ToyNetwork site, kids entered robust contests and simulated military maneuvers, all part of an integrated web marketing program. Of course, we learned that simply telling kids 'Atten hut' was the real magic formula.";
               text[11] = "Candy and toys, toys and candy. Truly music to the ears of children everywhere. Rix Products introduced a wide variety of collector tins, some licensed, some not. And on all occasions, PANGEA was there, delivering graphics. Some based on licensed properties like WWF, NASCAR, Power Rangers and Curious George. POP displays and other design work, along with license consulting kicked-off the relationship between Rix and PANGEA. As far as we know, the candy is good enough to eat.";
               text[12] = "From the creative team at Universal Cartoon Studios, Monster Force is a cult favorite found in collector shops and on eBay. PANGEA provided full design and development services for the entire line of toys. We are particularly proud of one of our last minute changes: the addition of one black dot inside the monster's pupils. Now that's scary.";
               text[13] = "Ah, yes. Who could forget Antz? For this crawly little project, PANGEA was brought in to compose stirring copy that would razzle and dazzle even the persnickety likes of Woody Allen, who insisted we use the Yiddish word 'bunhole' somewhere. ";
               text[14] = "From video spots to still photography, from interstitials to sizzle pieces, PANGEA provides in-house, hands-on production capabilities. For Cowgirl Belle, the images for this 30 second spot were edited to the tune of 'Skip to My Lou,' as in 'Cowgirl, Cowgirl Belle, you're my country darlin.'";
               text[15] = "PANGEA created an entire line of real cows, walking upright like cowboys, with straight shooters strapped 'cross their briskets. It was the first figure toy line with characters who had more than one stomach. Bendables, coin banks, nite lites, watches, cookie jars and a whole corral full of product hit the shelves at a time when cows were consumed without a care -- and only a few were mad.";
               text[16] = "Indeed, when the crunch is on and the characters are from France, our clients know who to call. PANGEA was contracted to create the overall look of the line, design the packaging, develop artwork and provide copywriting -- as a quick-to-market project for Playmates Toys Inc. When all was said and done, Beldar himself presented us with a golf trophy.";
				text[17] = "Toy doctoring is an art. PANGEA often gets projects that are in rather raw form; that's when we go to work, surgically extracting the essential guts out of a concept, then stuffing it into something that's gonna last longer than the original host. We then resurrect the concept, fully themed and skinned. Like the outrageously wacky and interactive Ooglies.";
               text[18] = "Okay, there's no getting around it. Toys often need instructions, joke books, schematics, cross sell sheets, you name it. Somebody has to produce all that stuff. Now you know who does it. Our favorite projects are Star Trek schematics, though Ninja Turtle jokes are good for a few yucks.";
               
             }

             // Function: displayImage
             // Purpose:  First sets the textual description and the image counter,
             //           then sets the source of the <IMG> tag with the name of
             //           slideshow.

             function displayImage()
             {
               document.textForm.ta.value = text[i];         // text description
               document.slideshow.src = images[i].src;       // display image 
             }

             // Function: next
             // Purpose:  Handles a request to view the next image.  If the next image
             //           doesn't exist, it wraps around to the beginning of the array.

             function next()
             {
               i++;                                          // increment
               if (i == numImages+1)
                 i = 1;                                      // restart at first image
               displayImage();                               // display the image
             }

             // Function: previous
             // Purpose:  Same as next() but it wraps backward.

             function previous()
             {
               i--;                                          // decrement
               if (i == 0)
                 i = images.length-1;                        // restart at last image
               displayImage();                               // display the image
             }     
             
