
i=1;

slideShowAction='stop';
picTextX1="Presented as 'The Best Spoof Movie Ever', our pedicabs were used as mobile billboards to get the word out about the blockbuster movie premier.";
picHdrX1="Meet The Spartans Movie Premier";
picTextX2="Here's our LA pedicab team preparing for their first day of promoting. As you can see, they are getting their 'game face' going, as well as their costumes!";
picHdrX2="Our LA Team Gearing Up";
picTextX3="Our guys got ready and rode all over San Diego State University, as well as the surrounding campus areas, where they met a lot of great college students.";
picHdrX3="Warming Up in San Diego";
picTextX4="The last night of our promotion, the movie premier night, it rained the hardest for over 12 hours. As in true Hollywood spirit, the show still went on.";
picHdrX4="Rain or Shine, We're Out There";
picTextX5="This is our LA team again, over at the University of Southern California campus. We spent a whole day there promoting and giving complimentary rides.";
picHdrX5="Complimentary Rides for Students";
picTextX6="Here's some students from UCLA enjoying a free ride to class. We gave rides to students and staff, letting them rest their feet and relax.";
picHdrX6="Free Ride, Anyone?";
picTextX7="Our guys really got into the spirit of things, from 'taking like a Spartan' to taking pictures with students. The added realism was enjoyed by all.";
picHdrX7="Standing Post, Playing the Part";
picTextX8="Here's a couple of guys from the San Diego crew, acting out a part from the movie. Attracting attention to themselves was a great way to promote the movie";
picHdrX8="\"This is Sparta!\"";
picTextX9="We were able to interact with thousands of students over the 3-day period, handing out promotional materials and movie tickets.";
picHdrX9="Interaction is Key";
picTextX10="As part of the promotional material, our guys handed out branded comdoms to students - which were a big hit, both for novelty and purpose!";
picHdrX10="Condoms, Anyone?";
picTextX11="Here you see our San Diego crew riding the areas around SDSU. The campaign's greatest success was the fact we could cover such a large area.";
picHdrX11="Keep It Moving!";
picTextX12="Here's our San Diego crew again, giving a student a ride from the her sorority house to the library. Free rides were a big hit with the college crowd.";
picHdrX12="The Only Way to Travel";
picTextX13="The night of the premier in Los Angeles, our crew rode the actors to the event in style. For some of our guys, it was the closest to Hollywood they've ever been.";
picHdrX13="The Red Carpet Treatment";
picTextX14="We used high quality vinyls for the signs on our pedicabs. No matter what was thrown at them, the continued to present a clean, clear message all night.";
picHdrX14="It's All About Promotion";
picTextX15="Here's our guy in LA bringing an actor to the red carpet premier. Although an unconventional way to travel, the actors loved it and wanted to ride again!";
picHdrX15="Lights, Camera, Action!";
picTextX16="Here's our rider, Ed Whiteside, taking a quick photo with actor Ken Davitian, who plays the part of Xerxes in the movie. We thought that they might be related!";
picHdrX16="Long Lost Brothers?";
picTextX17="Kevin Sorbo, who plays the part of Captain in the movie, took a minute to meet our pedicab rider, Gustavo. After a couple quick jokes, he walked down the red carpet, too!";
picHdrX17="Hercules, Hercules, Hercules!";
picTextX18="";
picHdrX18="";

function picchange(x) {
i=x;
x2='pic'+x;
document.getElementById('picText').innerHTML=eval("picTextX"+x);
document.getElementById('picHdr').innerHTML="Photo #"+x+" - "+eval("picHdrX"+x);
document.getElementById('pic').src='img/'+x2+'.gif';

}

function playShow() {
x2='pic'+i;
 if (slideShowAction=='play') {
 document.getElementById('picText').innerHTML=eval("picTextX"+i);
 document.getElementById('picHdr').innerHTML="Photo #"+i+" - "+eval("picHdrX"+i);
 document.getElementById('pic').src='img/'+x2+'.gif';
 slideShow('play');
 }
 else {
 document.getElementById('playBtn').disabled=false;
 document.getElementById('playBtn').title='Start slideshow';
 }
}

function setDescription() {
document.getElementById('stopBtn').disabled=true;
document.getElementById('stopBtn').title='Press start';
document.getElementById('picHdr').innerHTML="Photo #"+i+" - "+picHdrX1;
document.getElementById('picText').innerHTML=picTextX1;
}

function setShow(x) {slideShowAction=x;}

function playNow() {
document.getElementById('playBtn').disabled=true;
document.getElementById('playBtn').title='Slideshow is running';
document.getElementById('prevBtn').disabled=true;
document.getElementById('prevBtn').title='Button disabled';
document.getElementById('nextBtn').disabled=true;
document.getElementById('nextBtn').title='Button disabled';
document.getElementById('stopBtn').disabled=false;
document.getElementById('stopBtn').title='Stop slideshow';
setTimeout("playShow()",8000);
}

function showAction(x) {
 if (x=='stop') {
 document.getElementById('stopBtn').src='img/stopOn.bmp';
 i--;
 slideShowAction='stop';
 document.getElementById('playBtn').src='img/play.bmp';
 document.getElementById('playBtn').title='Slideshow is shutting down';
 document.getElementById('stopBtn').disabled=true;
 document.getElementById('stopBtn').title='Press start';
 document.getElementById('prevBtn').disabled=false;
 document.getElementById('prevBtn').title='See previous photo';
 document.getElementById('nextBtn').disabled=false;
 document.getElementById('nextBtn').title='See next photo';
 document.getElementById('stopBtn').src='img/stop.bmp';
 }
 if (x=='prev') {
 document.getElementById('prevBtn').src='img/prevOn.bmp';
 i--;
  if (i<1) {i=17;}
 document.getElementById('picText').innerHTML=eval("picTextX"+i);
 document.getElementById('picHdr').innerHTML="Photo #"+i+" - "+eval("picHdrX"+i);
 document.getElementById('pic').src='img/pic'+i+'.gif';
 document.getElementById('prevBtn').src='img/prev2.bmp';
 }
 if (x=='next') {
 document.getElementById('nextBtn').src='img/nextOn.bmp';
 i++;
  if (i>17) {i=1;}
 document.getElementById('picText').innerHTML=eval("picTextX"+i);
 document.getElementById('picHdr').innerHTML="Photo #"+i+" - "+eval("picHdrX"+i);
 document.getElementById('pic').src='img/pic'+i+'.gif';
 document.getElementById('nextBtn').src='img/next2.bmp';
 }
}

function slideShow(x) {
document.getElementById('playBtn').src='img/playOn.bmp';
 if (x=='play') {
 i++;
  if (i>17) {i=1;}
 playNow();
 }
}
