var messages = {
	train : [
	  { message: "Good grief! Engineering works? Surely not. I'd put money on enemy agents being behind this. They're probably moving some suspicious cargo further up the line. They should be gone in <Delay> hours.",
	    pass: "I reckon that the driver will skip that red light for you if you show him your pass, saving you a lot of time. Would you like to use it?"
	  },
	  
	  { message: "The train you're currently on is about to be hijacked by the enemy and taken to a different destination station.",
	    delay: "I don't think they're aware of your presence, so stay where you are and face the delay. It's going to take you an extra <Delay> hours to get back to your destination.",
	    pass: "I don't think they're aware of your presence, so you could stay where you are and face a delay of <Delay> hours, or try and persuade them that you're one of them with your pass. You should be able to convince them to keep the trian on track. Would you like to use your pass?"
	  }
	],
	
	motor_car: [
	  { message: "There's a road block up ahead, and enemy spies are swarming around everywhere. It's going to take another <Delay> hours to sneak your way around them.",
	    pass: "Would you like to use your one and only diplomatic pass?"
	  },
	  
	  { message: "Oh drat! Your motorcar has broken down. It's going to take another <Delay> hours to fix.",
	    pass: "Would you like to use your diplomatic pass to commandeer another vehicle?"
	  }
	],
	
	hot_air_balloon: [
	  { message: "Enemy agents have sabotaged the hot air balloon! You'll need to find another one to continue. It'll probably add another <Delay> hours to your journey time.",
	    pass: "Unless of course, you'd like to use your diplomatic pass to get someone to repair it and head off sharpish?"
	  },
	  
	  { message: "Enemy agents are shooting up at you from below! Even though you're too high up for them to do much damage, the pilot wants to go around them though, which will add an extra <Delay> time onto your journey.",
	    pass: "You might be able to persuade him with a pass. Would you like to go the quick way by using your pass?"
	  }
	],  
	  
	orient_express: [
	  { message: "Things are about to get messy here, agent <Codename>. It appears some enemy agents have found their way aboard your carriage while it was in motion - probably from the roof.",
	    delay:   "You've got no option other than confronting them. Expect a delay of <Delay> hours.",
	    pass: "You've got two options, stay and try to escape them, or use your diplomatic pass to fool them into thinking you're someone else. Expect a delay of <Delay> hours if you don't use your pass."
	  },
	  
	  { message: "We've got intelligence that suggests enemy agents are waiting for you at the next station. You might be able to avoid them if you're lucky, but it'll cost you some time. <Delay> hours, in fact.",
	    pass: "Would you like to escape this tricky sitation using your diplomatic pass?"
	  }
	],  

  plane: [
    { message: "Oh dear. We've heard from Signals that enemy agents are hiding in the airport you're headed to. You're going to have to wait until they leave before boarding a plane. That'll take another <Delay> hours though, agent.",
      pass: "Would you like to use your diplomatic pass to sneak through airport security instead?"
    },
    
    { message: "Sssh! Don't turn around now, but there's an enemy agent on that flight you just boarded. I knew it'd be too risky to come this way. You'll have to find a way out of this sticky situation.",
      delay: "You've no choice but to stay and outsmart them. Expect a delay of <Delay> hours though.",
      pass: "Would you like to use your pass instead of clocking up an extra <Delay> hours?"
    }
  ],
  
  ferry: [
    { message: "There's a frightful storm on the English Channel, so your ferry has been delayed. Even worse, enemy agents have caught up and are searching the port for you. You'll need to escape in another boat pretty quickly, but my colleagues are working on getting a boat ready for you in <Delay> hours.",
      pass: "You can either wait for us to fetch you a boat, or you could use your pass to commandeer a fishing vessel and get you back on track."
    },
    
    { message : "Enemy agents are controlling traffic at your destination port and you're stuck in a jam. In the current situation, you won't make it there for another <Delay> hours.",
      pass: "We could get the captain to ignore orders from port, but it'll cost you a pass. Would you like to use a pass?"
    }
  ],
  
  success: "Excellent! You've found your way to the castle on time, and we've discovered who it was that you've been following. Take the debrief...",
  
  failure: [
    "Drat. What a disappointment; you've run out of time. Looks like we were wrong to rely on such a fresh agent. Would you like to start this mission from scratch?",

    "You've run out of time, Agent <Codename>. The King will be deeply disappointed. This failure could put the future of the entire British Empire in doubt. Maybe you should try again?"
  ]
}
