// JavaScript Document

function showVideo(videoIN) {
  //Remove the 'no javascript' warning message:
  document.getElementById('videoJavascriptWarning').style.display = 'none';

  switch (videoIN)
    {
      //Case 0 does not autoplay:
      case 0: {
        document.getElementById('videoDisplayArea').innerHTML = "<div id='videoBox'><object width='425' height='344'><param name='movie' value='http://www.youtube.com/v/zoiZbfCwKKU&hl=en&fs=1&rel=0'></param><param name='allowFullScreen' value='true'></param><param name='allowscriptaccess' value='always'></param><embed src='http://www.youtube.com/v/zoiZbfCwKKU&hl=en&fs=1&rel=0' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='425' height='344'></embed></object></div>";
        document.getElementById('menuDesc').innerHTML = "Harry Hastings makes his TV debut in July 2005, telling the nation that Hastings Direct have been named Cheapest Car Insurance Provider 2004 by independent researcher Consumer Intelligence.";
        break;
      }
      case 1: {
        document.getElementById('videoDisplayArea').innerHTML = "<div id='videoBox'><object width='425' height='344'><param name='movie' value='http://www.youtube.com/v/zoiZbfCwKKU&hl=en&fs=1&autoplay=1&rel=0'></param><param name='allowFullScreen' value='true'></param><param name='allowscriptaccess' value='always'></param><embed src='http://www.youtube.com/v/zoiZbfCwKKU&hl=en&rel=0&fs=1&autoplay=1' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='425' height='344'></embed></object></div>";
        document.getElementById('menuDesc').innerHTML = "Harry Hastings makes his TV debut in July 2005, telling the nation that Hastings Direct have been named Cheapest Car Insurance Provider 2004 by independent researcher Consumer Intelligence.";
        break;
      }
      case 2: {
        document.getElementById('videoDisplayArea').innerHTML = "<div id='videoBox'><object width='425' height='344'><param name='movie' value='www.youtube.com/v/2nCSPKZr9B4&hl=en&fs=1&autoplay=1&rel=0'></param><param name='allowFullScreen' value='true'></param><param name='allowscriptaccess' value='always'></param><param name='play' value='true'></param><embed src='http://www.youtube.com/v/2nCSPKZr9B4&hl=en&fs=1&rel=0&autoplay=1' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='425' height='344'></embed></object></div>";
        document.getElementById('menuDesc').innerHTML = "Harry returns to the small screen in 2006 to let people know that Hastings Direct have been named Cheapest Car Insurance Provider by independent researcher Consumer Intelligence for the second year running. He's so happy about this he breaks into dance!";
        break;
      }      
      case 3: {
        document.getElementById('videoDisplayArea').innerHTML = "<div id='videoBox'><object width='425' height='344'><param name='movie' value='http://www.youtube.com/v/Bw9wxuO90e8&hl=en&fs=1&rel=0&autoplay=1'></param><param name='allowFullScreen' value='true'></param><param name='allowscriptaccess' value='always'></param><embed src='http://www.youtube.com/v/Bw9wxuO90e8&hl=en&rel=0&fs=1&autoplay=1' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='425' height='344'></embed></object></div>";
        document.getElementById('menuDesc').innerHTML = "Harry is seen out on his motorcycle, reminding customers that it's not just car insurance that Hastings Direct provide. Riders can also make great savings on their bike insurance.";
        break;
      }
      case 4: {
        document.getElementById('videoDisplayArea').innerHTML = "<div id='videoBox'><object width='425' height='344'><param name='movie' value='http://www.youtube.com/v/MBpQVMmQHg4&hl=en&fs=1&rel=0&autoplay=1'></param><param name='allowFullScreen' value='true'></param><param name='allowscriptaccess' value='always'></param><embed src='http://www.youtube.com/v/MBpQVMmQHg4&hl=en&rel=0&fs=1&autoplay=1' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='425' height='344'></embed></object></div>";
        document.getElementById('menuDesc').innerHTML = "Harry Junior is introduced in the 4th advert from Hastings Direct in 2007. He let people know that Hastings Direct had been named as Cheapest Car Insurance Provider by independent researcher Consumer Intelligence for the third year running.";
        break;
      }
      case 5: {
        document.getElementById('videoDisplayArea').innerHTML = "<div id='videoBox'><object width='425' height='344'><param name='movie' value='http://www.youtube.com/v/bC0MQQY2mqA&hl=en&fs=1&rel=0&autoplay=1'></param><param name='allowFullScreen' value='true'></param><param name='allowscriptaccess' value='always'></param><embed src='http://www.youtube.com/v/bC0MQQY2mqA&hl=en&rel=0&fs=1&autoplay=1' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='425' height='344'></embed></object></div>";
        document.getElementById('menuDesc').innerHTML = "The Hastings Direct rebrand in February 2008 showed Harry Hastings in a new light. Updated and modernised, Harry became consumer champion, advising the nation that when it comes to car insurance Hastings Direct do your thing.";
        break;
      }
      case 6: {
        document.getElementById('videoDisplayArea').innerHTML = "<div id='videoBox'><object width='480' height='295'><param name='movie' value='http://www.youtube.com/v/njnW6a73GK0&hl=en&fs=1&rel=0&autoplay=1'></param><param name='allowFullScreen' value='true'></param><param name='allowscriptaccess' value='always'></param><embed src='http://www.youtube.com/v/njnW6a73GK0&hl=en&rel=0&fs=1&autoplay=1' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='425' height='295'></embed></object></div>";
        document.getElementById('menuDesc').innerHTML = "During August and September 2008 Hastings Direct covered the cost of customers' Insurance Premium Tax, 5% of the premium, in an effort to wrestle back the tax, cementing Harry's reputation as consumer champion.";
        break;
      }
      default: { 
        document.getElementById('videoDisplayArea').innerHTML = "<div id='videoBox'><object width='425' height='344'><param name='movie' value='http://www.youtube.com/v/zoiZbfCwKKU&hl=en&fs=1&rel=0&autoplay=1'></param><param name='allowFullScreen' value='true'></param><param name='allowscriptaccess' value='always'></param><embed src='http://www.youtube.com/v/zoiZbfCwKKU&hl=en&rel=0&fs=1&autoplay=1' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='425' height='344'></embed></object></div>";
        document.getElementById('menuDesc').innerHTML = "Harry Hastings makes his TV debut in July 2005, telling the nation that Hastings Direct have been named Cheapest Car Insurance Provider 2004 by independent researcher Consumer Intelligence.";
        break;
      }
  }
  return 0;
}
