
var aMetaphorImages = new Array();
var aMetaphorLinks = new Array();
var aMetaphorAlt = new Array();

aMetaphorImages[0] = "images/metaphor1.jpg";
aMetaphorImages[1] = "images/metaphor2.jpg";
aMetaphorImages[2] = "images/metaphor3.jpg";
aMetaphorImages[3] = "images/metaphor4.jpg";
aMetaphorImages[4] = "images/metaphor5.jpg";

aMetaphorLinks[0] = "http://www.microsoft.com/forefront";
aMetaphorLinks[1] = "http://www.microsoft.com/online/exchange-hosted-services.mspx";
aMetaphorLinks[2] = "http://www.microsoft.com/forefront/serversecurity/exchange/en/us/default.aspx";
aMetaphorLinks[3] = "http://www.microsoft.com/forefront/serversecurity/exchange/en/us/default.aspx";
aMetaphorLinks[4] = "http://www.microsoft.com/online/exchange-hosted-services.mspx";

aMetaphorAlt[0] = "Maintaining a Tight Defense";
aMetaphorAlt[1] = "Protect Your Network from Deluge";
aMetaphorAlt[2] = "Help Keep Your System Clean";
aMetaphorAlt[3] = "Secure Your Digital Borders";
aMetaphorAlt[4] = "Hold Back the Tide";

var newImage = -1;
var totalImages = aMetaphorImages.length;

//rotates the images.
function cycleImage() {
  newImage++;
  if (newImage == totalImages) {
    newImage = 0;
  }
  //var img = document.getElementById('metImg');
  //var link = document.getElementById('metaphorLink');
  document.metImg.src = aMetaphorImages[newImage];
  document.metImg.alt = aMetaphorAlt[newImage];
  document.getElementById('metaphorLink').href=aMetaphorLinks[newImage];
  // set the time below for length of image display
  setTimeout ("cycleImage()", 12 * 1000);
}

function init () {
	cycleImage();
	//function(){ if(oSearchBox.value!=jsSEARCH_INSTRUCTION_TEXT) {oSearchBox.style.color='#000000'; oSearchBox.style.fontStyle='normal'; }
}
window.onload = init;

