function startSlideshow() { 

  window.myInterval = 5000;
  window.isPlaying = "TRUE";
  window.totalImages = 9; //imageArray.length;
  window.currentImg = 0; 
  window.timerID;
  
  var imageDir = "Support/images/index/Slideshow/Current/";
  var imageNum = 0;
  imageArray = new Array();
 
  imageArray[++imageNum] = new imageItem(imageDir + "EMC_Foundation_Donates_banner.jpg");
  imageArray[++imageNum] = new imageItem(imageDir + "100year_banner.jpg");
  imageArray[++imageNum] = new imageItem(imageDir + "business_index_banner.jpg");
  imageArray[++imageNum] = new imageItem(imageDir + "personal_index_banner.jpg");
  imageArray[++imageNum] = new imageItem(imageDir + "life_index_banner.jpg");
  imageArray[++imageNum] = new imageItem(imageDir + "loss_index_banner.jpg");
  imageArray[++imageNum] = new imageItem(imageDir + "local_index_banner.jpg");
  imageArray[++imageNum] = new imageItem(imageDir + "count-on-emc_index_banner.jpg");
  imageArray[++imageNum] = new imageItem(imageDir + "claim_index_banner.jpg");
//  imageArray[++imageNum] = new imageItem(imageDir + "slideshow001.jpg");

  var imageNum = 0;
  linkArray = new Array();
 
  linkArray[++imageNum] = "http://www.countonemc.com/give/index.asp";
  linkArray[++imageNum] = "AboutEMC/Celebrating_100_Years.aspx";
  linkArray[++imageNum] = "BusinessIns/index.aspx";
  linkArray[++imageNum] = "PersonalIns/index.aspx";
  linkArray[++imageNum] = "LifeIns/index.aspx";
  linkArray[++imageNum] = "LossControl/index.aspx";
  linkArray[++imageNum] = "AboutEMC/agentloc/alrecaptcha.aspx";
  linkArray[++imageNum] = "AboutEMC/index.aspx";
  linkArray[++imageNum] = "Misc/Report_Claim.aspx";
//  linkArray[++imageNum] = imageDir + "slideshow001.jpg";

  startShow("mainSlideImg"); 
  
  }
  
  function imageItem(image_location) {
	this.image_item = new Image();
	this.image_item.src = image_location;
  }
  
  function clearNumbers() {
    for (i=0; i < window.totalImages; i++)
      document.getElementById("link" + (i + 1)).style.color = '#1489d5';
  }

  function gtoImage(place, clickedNum) {
    stopShow();
  	clearNumbers();
	document[place].src = imageArray[clickedNum].image_item.src;
    document.getElementById("link" + clickedNum).style.color = 'white';
    window.currentImg = clickedNum;
  }
  
  function getNextImage(place) {
    stopShow();
	getNextImagePlaying(place);
  }
  
  function getNextImagePlaying(place) {
    clearNumbers();
    window.currentImg = (++window.currentImg) % window.totalImages;
    if (window.currentImg == 0)
      window.currentImg = window.totalImages;
	document[place].src = imageArray[window.currentImg].image_item.src;
    document.getElementById("link" + window.currentImg).style.color = 'white';
  }
  
  function getPrevImage(place) {
    stopShow();
    clearNumbers();
    window.currentImg--;
	if (window.currentImg < 1)
	  window.currentImg = window.totalImages;
	document[place].src = imageArray[window.currentImg].image_item.src;
    document.getElementById("link" + window.currentImg).style.color = 'white';
  }
  
  function startShow(place) {
    if (window.isPlaying == "TRUE")
      clearTimeout(window.timerID);
	window.timerID = setTimeout("startShow('"+place+"')", window.myInterval);
	window.isPlaying = "TRUE";
  	getNextImagePlaying(place);
    document.getElementById("playSlideShow").style.display = 'none';
    document.getElementById("pauseSlideShow").style.display = 'inline';
  }
  
  function stopShow() {
    if (window.isPlaying == "TRUE")
      clearTimeout(window.timerID);
    window.isPlaying = "FALSE";
    document.getElementById("pauseSlideShow").style.display = 'none';
    document.getElementById("playSlideShow").style.display = 'inline';
  }
  
  function doNothing() {
  	var x = '' /*Does nothing*/
	}
