//--- OBJECT WRITE BEGIN ---
new GuiControl(endingCredits) {
   profile = "GuiDefaultProfile";
   horizSizing = "right";
   vertSizing = "bottom";
   position = "0 0";
   extent = "640 480";
   minExtent = "8 2";
   visible = "1";

   new GuiBitmapCtrl() {
      profile = "GuiDefaultProfile";
      horizSizing = "relative";
      vertSizing = "relative";
      position = "-5 0";
      extent = "650 485";
      minExtent = "8 2";
      visible = "1";
      bitmap = "./images/credits.jpg";
      wrap = "0";
   };
   new GuiTextCtrl(peopleListLine8) {
      profile = "GuiTextProfile";
      horizSizing = "relative";
      vertSizing = "relative";
      position = "480 230";
      extent = "101 18";
      minExtent = "8 2";
      visible = "1";
      text = "People Pople";
      maxLength = "255";
   };
   new GuiTextCtrl(peopleListLine7) {
      profile = "GuiTextProfile";
      horizSizing = "relative";
      vertSizing = "relative";
      position = "480 210";
      extent = "8 18";
      minExtent = "8 2";
      visible = "1";
      text = "People Pople";
      maxLength = "255";
   };
   new GuiTextCtrl(peopleListLine1) {
      profile = "GuiTextProfile";
      horizSizing = "relative";
      vertSizing = "relative";
      position = "480 95";
      extent = "8 18";
      minExtent = "8 2";
      visible = "1";
      text = "People Pople";
      maxLength = "255";
   };
   new GuiTextCtrl(sectionTitle) {
      profile = "GuiBigTextProfile";
      horizSizing = "relative";
      vertSizing = "relative";
      position = "405 40";
      extent = "180 40";
      minExtent = "8 2";
      visible = "1";
      text = "EMPTY5";
      maxLength = "255";
   };
   new GuiTextCtrl(peopleListLine2) {
      profile = "GuiTextProfile";
      horizSizing = "relative";
      vertSizing = "relative";
      position = "480 115";
      extent = "107 18";
      minExtent = "8 2";
      visible = "1";
      text = "People Pople";
      maxLength = "255";
   };
   new GuiTextCtrl(peopleListLine3) {
      profile = "GuiTextProfile";
      horizSizing = "relative";
      vertSizing = "relative";
      position = "480 135";
      extent = "99 18";
      minExtent = "8 2";
      visible = "1";
      text = "People Pople";
      maxLength = "255";
   };
   new GuiTextCtrl(peopleListLine6) {
      profile = "GuiTextProfile";
      horizSizing = "relative";
      vertSizing = "relative";
      position = "480 190";
      extent = "142 18";
      minExtent = "8 2";
      visible = "1";
      text = "People Pople";
      maxLength = "255";
   };
   new GuiTextCtrl(peopleListLine5) {
      profile = "GuiTextProfile";
      horizSizing = "relative";
      vertSizing = "relative";
      position = "480 170";
      extent = "131 18";
      minExtent = "8 2";
      visible = "1";
      text = "People Pople";
      maxLength = "255";
   };
   new GuiTextCtrl(peopleListLine4) {
      profile = "GuiTextProfile";
      horizSizing = "relative";
      vertSizing = "relative";
      position = "480 155";
      extent = "8 18";
      minExtent = "8 2";
      visible = "1";
      text = "People Pople";
      maxLength = "255";
   };
   new GuiTextCtrl(peopleListLine12) {
      profile = "GuiTextProfile";
      horizSizing = "relative";
      vertSizing = "relative";
      position = "480 305";
      extent = "93 18";
      minExtent = "8 2";
      visible = "1";
      text = "People Pople";
      maxLength = "255";
   };
   new GuiTextCtrl(peopleListLine11) {
      profile = "GuiTextProfile";
      horizSizing = "relative";
      vertSizing = "relative";
      position = "480 285";
      extent = "8 18";
      minExtent = "8 2";
      visible = "1";
      text = "People Pople";
      maxLength = "255";
   };
   new GuiTextCtrl(peopleListLine10) {
      profile = "GuiTextProfile";
      horizSizing = "relative";
      vertSizing = "relative";
      position = "480 265";
      extent = "185 18";
      minExtent = "8 2";
      visible = "1";
      text = "People Pople";
      maxLength = "255";
   };
   new GuiTextCtrl(peopleListLine9) {
      profile = "GuiTextProfile";
      horizSizing = "relative";
      vertSizing = "relative";
      position = "480 245";
      extent = "8 18";
      minExtent = "8 2";
      visible = "1";
      text = "People Pople";
      maxLength = "255";
   };
   new GuiBitmapCtrl(mainExitControl) {
      profile = "GuiDefaultProfile";
      horizSizing = "relative";
      vertSizing = "relative";
      position = "0 0";
      extent = "650 495";
      minExtent = "8 2";
      visible = "1";
      command = "canvas.setContentWithFade(TimeTravel);";
      wrap = "0";
   };
};
//--- OBJECT WRITE END ---


function endingCredits::onWake()
{
  sectionTitle.setText("Executive Producers");
  peopleListLine1.setText("Keith Johnston");
  peopleListLine2.setText("Justin Mette");
  peopleListLine3.setText("");
  peopleListLine4.setText("");
  peopleListLine5.setText("");
  peopleListLine6.setText("");
  peopleListLine7.setText("");
  peopleListLine8.setText("");
  peopleListLine9.setText("");
  peopleListLine10.setText("");
  peopleListLine11.setText("");
  peopleListLine12.setText("");
  endingCredits.schedule(5000,page2);
}

function endingCredits::page2()
{
  sectionTitle.setText("Game Design");
  peopleListLine1.setText("Keith Johnston");
  peopleListLine2.setText("Mike Panico");
  peopleListLine3.setText("");
  peopleListLine4.setText("");
  peopleListLine5.setText("");
  peopleListLine6.setText("");
  peopleListLine7.setText("");
  peopleListLine8.setText("");
  peopleListLine9.setText("");
  peopleListLine10.setText("");
  peopleListLine11.setText("");
  peopleListLine12.setText("");
  endingCredits.schedule(5000,page3);
}

function endingCredits::page3()
{
  sectionTitle.setText("Programming");
  peopleListLine1.setText("Keith Johnston");
  peopleListLine2.setText("");
  peopleListLine3.setText("");
  peopleListLine4.setText("");
  peopleListLine5.setText("");
  peopleListLine6.setText("");
  peopleListLine7.setText("");
  peopleListLine8.setText("");
  peopleListLine9.setText("");
  peopleListLine10.setText("");
  peopleListLine11.setText("");
  peopleListLine12.setText("");
  endingCredits.schedule(5000,page4);
}

function endingCredits::page4()
{
  sectionTitle.setText("3D Models");
  peopleListLine1.setText("Dave Calabrese");
  peopleListLine2.setText("");
  peopleListLine3.setText("");
  peopleListLine4.setText("");
  peopleListLine5.setText("");
  peopleListLine6.setText("");
  peopleListLine7.setText("");
  peopleListLine8.setText("");
  peopleListLine9.setText("");
  peopleListLine10.setText("");
  peopleListLine11.setText("");
  peopleListLine12.setText("");
  endingCredits.schedule(5000,page5);
}

function endingCredits::page5()
{
  sectionTitle.setText("Environments");
  peopleListLine1.setText("Mike Panico");
  peopleListLine2.setText("");
  peopleListLine3.setText("");
  peopleListLine4.setText("");
  peopleListLine5.setText("");
  peopleListLine6.setText("");
  peopleListLine7.setText("");
  peopleListLine8.setText("");
  peopleListLine9.setText("");
  peopleListLine10.setText("");
  peopleListLine11.setText("");
  peopleListLine12.setText("");
  endingCredits.schedule(5000,page6);
}

function endingCredits::page6()
{
  sectionTitle.setText("Puzzles");
  peopleListLine1.setText("Keith Johnston");
  peopleListLine2.setText("Dave Calabrese");
  peopleListLine3.setText("");
  peopleListLine4.setText("");
  peopleListLine5.setText("");
  peopleListLine6.setText("");
  peopleListLine7.setText("");
  peopleListLine8.setText("");
  peopleListLine9.setText("");
  peopleListLine10.setText("");
  peopleListLine11.setText("");
  peopleListLine12.setText("");
  endingCredits.schedule(5000,page7);
}

function endingCredits::page7()
{
  sectionTitle.setText("User Interface");
  peopleListLine1.setText("Buck Wall");
  peopleListLine2.setText("Dave Calabrese");
  peopleListLine3.setText("");
  peopleListLine4.setText("");
  peopleListLine5.setText("");
  peopleListLine6.setText("");
  peopleListLine7.setText("");
  peopleListLine8.setText("");
  peopleListLine9.setText("");
  peopleListLine10.setText("");
  peopleListLine11.setText("");
  peopleListLine12.setText("");
  endingCredits.schedule(5000,page8);
}

function endingCredits::page8()
{
  sectionTitle.setText("Music and Sound FX");
  peopleListLine1.setText("Matt Sayre");
  peopleListLine2.setText("");
  peopleListLine3.setText("");
  peopleListLine4.setText("");
  peopleListLine5.setText("");
  peopleListLine6.setText("");
  peopleListLine7.setText("");
  peopleListLine8.setText("");
  peopleListLine9.setText("");
  peopleListLine10.setText("");
  peopleListLine11.setText("");
  peopleListLine12.setText("");
  endingCredits.schedule(5000,page9);
}

function endingCredits::page9()
{
  sectionTitle.setText("Testing");
  peopleListLine1.setText("Mike Panico");
  peopleListLine2.setText("Maria Garcia");
  peopleListLine3.setText("Virgil Itliong");
  peopleListLine4.setText("Andy Johnston");
  peopleListLine5.setText("Justin Mette");
  peopleListLine6.setText("Ryan Mette");
  peopleListLine7.setText("Brian Nelson");
  peopleListLine8.setText("Alex Cooke");
  peopleListLine9.setText("");
  peopleListLine10.setText("");
  peopleListLine11.setText("");
  peopleListLine12.setText("");
  endingCredits.schedule(5000,page10);
}

function endingCredits::page10()
{
  sectionTitle.setText("Testing (Cont.)");
  peopleListLine1.setText("Dave Posh");
  peopleListLine2.setText("Jay Rogers");
  peopleListLine3.setText("Diehl Sillers");
  peopleListLine4.setText("Rick Vestal");
  peopleListLine5.setText("Barb Wang");
  peopleListLine6.setText("Cassie Wang");
  peopleListLine7.setText("Dave Calabrese");
  peopleListLine8.setText("");
  peopleListLine9.setText("");
  peopleListLine10.setText("");
  peopleListLine11.setText("");
  peopleListLine12.setText("");
  endingCredits.schedule(5000,page11);
}

function endingCredits::page11()
{
  sectionTitle.setText("Public Beta Testing Team");
  peopleListLine1.setText("");
  peopleListLine2.setText("");
  peopleListLine3.setText("");
  peopleListLine4.setText("");
  peopleListLine5.setText("");
  peopleListLine6.setText("");
  peopleListLine7.setText("");
  peopleListLine8.setText("");
  peopleListLine9.setText("");
  peopleListLine10.setText("");
  peopleListLine11.setText("");
  peopleListLine12.setText("");
  endingCredits.schedule(5000,page12);
}

function endingCredits::page12()
{
  sectionTitle.setText("Special Thanks");
  peopleListLine1.setText("Jeff Tunne and the GarageGames Team");
  peopleListLine2.setText("The GarageGames Community");
  peopleListLine3.setText("");
  peopleListLine4.setText("Russell Smith and the ODE Community");
  peopleListLine5.setText("Erwin de Vries for the ODE tri-collider");
  peopleListLine6.setText("");
  peopleListLine7.setText("Pierre Terdiman for OPCODE");
  peopleListLine8.setText("");
  peopleListLine9.setText("GuiButtonControl: Mark Harmon and Tim Newell");
  peopleListLine10.setText("");
  peopleListLine11.setText("Andy Johnston for Prototype Models");
  peopleListLine12.setText("Jay Rogers for Prototype UI");
  endingCredits.schedule(5000,page13);
}

function endingCredits::page13()
{
  sectionTitle.setText("TubeTwist Copyright");
  peopleListLine1.setText("21-6 has the exclusive license to the");
  peopleListLine2.setText("    TubeTwist name and concept.");
  peopleListLine3.setText("");
  peopleListLine4.setText("Copyright (c) 2004-2005 Pinoli Software, LLC");
  peopleListLine5.setText("");
  peopleListLine6.setText("");
  peopleListLine7.setText("     Open Dynamics Engine Copyright");
  peopleListLine8.setText("Copyright (c) 2001 - 2004, Russel L. Smith");
  peopleListLine9.setText("");
  peopleListLine10.setText("");
  peopleListLine11.setText("           All Rights Reserved");
  peopleListLine12.setText("");
  endingCredits.schedule(5000,page14);
}

function endingCredits::page14()
{
  sectionTitle.setText("Thanks for Playing!");
  peopleListLine1.setText("");
  peopleListLine2.setText("");
  peopleListLine3.setText("");
  peopleListLine4.setText("");
  peopleListLine5.setText("");
  peopleListLine6.setText("");
  peopleListLine7.setText("");
  peopleListLine8.setText("");
  peopleListLine9.setText("");
  peopleListLine10.setText("");
  peopleListLine11.setText("");
  peopleListLine12.setText("");
  endingCredits.schedule(20000,page15);
}

function endingCredits::page15()
{
  sectionTitle.setText("??????????");
  peopleListLine1.setText("");
  peopleListLine2.setText("What Began as a Test");
  peopleListLine3.setText(" Ended in a Tragedy.");
  peopleListLine4.setText("");
  peopleListLine5.setText("What Started as a Manhunt");
  peopleListLine6.setText("Ended with a Dissepearence.");
  peopleListLine7.setText("");
  peopleListLine8.setText("     Where am I Now?");
  peopleListLine9.setText("");
  peopleListLine10.setText("   This is not where the professor is....");
  peopleListLine11.setText("");
  peopleListLine12.setText("           TubeTwist 2");
}
