var name = ""
var capt1 = "Hello";
var capt2 = "Goodbye";
var pic = "Picture";
var head = "Name";
function teambiog(name)
{

   if(name == "phil") 

      {
      capt1 = "Phil's first memories as a baby were of bus journeys into Bristol, his home city.  That explains a lot!  He has since worked for bus companies the length and breadth of Southern England and Wales.  He's also a keen football fan, despite supporting Luton Town!<br \/>";
      capt2 = "Phil's the boss.";
      pic = "Phil";
      head = "Phil";
      }

   else if(name == "taz") 

      {
      capt1 = "Cars, mobile phones, computer games - Taz is gadget crazy!  If he could run the bus company on his PS3 he'd be in heaven!  His motto is \"smile and the world smiles with you\" and if you ever catch this guy in a bad mood, we'll buy you a drink! <br \/>";
      capt2 = "Taz is one of our drivers.";
      pic = "Taz";
      head = "Taz";
      }

   else if(name == "stevej") 

      {
      capt1 = "We told Steve we wanted a picture that would really show off his cheerful, happy-go-lucky personality.  This is the best he could find!  It's taken from a 'Legoland' Driving Licence.  He assures us he's got a real one...<br \/>";
      capt2 = "Steve is one of our drivers.  He's actually quite friendly!  Honest!!!";
      pic = "Steve J";
      head = "Steve J";
      }

   else if(name == "steveh") 

      {
      capt1 = "We had to take Steve's picture indoors because he's scared of daylight!  His natural habitat is the C1 and E8 services in the evening.  He is our railway expert, a fount of knowledge on all things on steel rails.  Which would be handy if we ran trains....<br \/>";
      capt2 = "Steve is one of our drivers.";
      pic = "Steve H";
      head = "Steve H";
      }

   else if(name == "ant") 

      {
      capt1 = "Picture the scene.  You're riding on one of our buses, minding your own business, when suddenly the driver leaps out and runs off after another bus with his camera!  Your driver is Ant.  Hardcore bus spotter, we reckon he has a picture of every bus ever invented.<br \/>";
      capt2 = "Ant is the Controller.";
      pic = "Ant";
      head = "Ant";
      }

   else if(name == "karl") 

      {
      capt1 = "Karl is so chilled and laid back we've had to have the drivers' seats specially modified to go horizontal!  He's our youngest driver and a big hit with the ladies.  You'd never guess, would you?!?  In fact, if you wouldn't mind just sending your phone number to...<br \/>";
      capt2 = "Karl is one of our drivers.";
      pic = "Karl";
      head = "Karl";
      }

   else if(name == "mikey") 

      {
      capt1 = "Mikey can usually be found in Eastleigh Bus Station flashing his cheeky smile at the nice old ladies (and most of the younger ones) who all want to adopt him and take him home.  We so wish someone actually would...  <br \/>";
      capt2 = "Mikey is our Customer Service Assistant.";
      pic = "Mikey";
      head = "Mikey";
      }

   else if(name == "matt") 

      {
      capt1 = "Matt himself may be 'larger than life' but just wait til you see his rucksack!  This guy comes to work prepared for every possible scenario.  If your bus ever gets stranded on a desert island, you'd better hope it's Matt behind the wheel!<br \/>";
      capt2 = "Matt is one of our drivers.";
      pic = "Matt";
      head = "Matt";
      }

   else if(name == "pault")
      {
      capt1 = "Paul likes nothing better on his day off than to relax in the garden with a pint of Guiness then head out for a nice meal.  Too bad for him we don't give him any days off!!!  He's also a Leeds United fan, but we didn't know that until we'd taken him on.  We do apologise, we'll be more careful next time!<br \/>";
      capt2 = "Paul is one of our drivers.";
      pic = "Paul T";
      head = "Paul T";
      }

   else if(name == "paulc")
      {
      capt1 = "Ask Paul which famous person he most resembles and he says John Travolta.  He insists this is because of his silky dance moves and film star looks.  We think it's actually because he's 20 years past his best!<br \/>";
      capt2 = "Paul is one of our drivers.";
      pic = "Paul C";
      head = "Paul C";
      }

   else if(name == "sharon")
      {
      capt1 = "";
      capt2 = "Sharon is one of our drivers.  We'll tell you more about her soon.";
      pic = "Sharon";
      head = "Sharon";
      }

   else if(name == "malcolm")
      {
      capt1 = "Malcolm will be joining our team in January.  If the corny jokes he told at the interview are anything to go by, it's gonna be a scream.  Scream for mercy, that is!<br \/>";
      capt2 = "Malcolm will be one of our drivers.";
      pic = "Malcolm";
      head = "Malcolm";
      }

   else if(name == "simon")
      {
      capt1 = "";
      capt2 = "Simon is one of our drivers.  We'll tell you more about him soon.";
      pic = "Simon";
      head = "Simon";
      }

   else if(name == "dave")
      {
      capt1 = "";
      capt2 = "Dave is one of our drivers.  We'll tell you more about him soon.  He's a bit shy so we haven't managed to take his picture yet, but this portrait is fairly true-to-life.";
      pic = "Dave";
      head = "Dave";
      }

   else if(name == "nick")
      {
      capt1 = "";
      capt2 = "Nick is one of our drivers.  We'll tell you more about him soon.";
      pic = "Nick";
      head = "Nick";
      }

   else if(name == "tony")
      {
      capt1 = "";
      capt2 = "Tony is one of our drivers.  We'll tell you more about him soon.";
      pic = "Tony";
      head = "Tony";
      }

   else if(name == "lorant")
      {
      capt1 = "";
      capt2 = "Lorant is one of our drivers.  We'll tell you more about him soon.";
      pic = "Lorant";
      head = "Lorant";
      }

   else if(name == "dan")
      {
      capt1 = "Dan is the Velvet Valet.  His job is to clean the buses out every night so that you can eat your breakfast off the floor!  Not that we recommend you do that of course - someone might tread on it<br \/>";
      capt2 = "Dan is our cleaner.";
      pic = "Dan";
      head = "Dan";
      }

   else if(name == "nathan")
      {
      capt1 = "";
      capt2 = "Nathan looks after the buses.  We'll tell you more about him soon.";
      pic = "Nathan";
      head = "Nathan";
      }

   else if(name == "default")

      {
      capt1 = "Hi!  We really want you to enjoy travelling with us, and we believe we can give you a better service if we get to know you and you get to know us.<br \/>";
      capt2 = "Roll the mouse over our pictures to find out more about us";
      pic = "";
      head = "Hi!";
      }

   else

      {
      capt1 = "The rest of the team is still a bit shy!<br \/>"
      capt2 = "We'll be introducing them to you over the next few days."
      pic = "";
      head = "Sorry!";
      }

document.getElementById('thead').innerHTML = '<h2>' + head + '<\/h2>';
document.getElementById('tbiog').innerHTML = capt1 + '<span class="name">' + capt2 + '<\/span>';
document.getElementById('tpic').innerHTML = '<img src="teampics\/' + pic + 'teampicsmall.jpg" alt="' + pic + '" \/>';
document.getElementById('tname').innerHTML = '<h4>' + pic + '<\/h4>';

}
