var step = 1;
//a variable that will keep track of the image currently being displayed.
var whichimage = 1;
function slideit()
{
  if (!document.images)
    return;
  document.images.slide.src = eval("image" + step + ".src")
  whichimage = step;
  if (step < 2)
    step++;
  else
    step = 1;
  setTimeout("slideit()", 6400)
}

slideit();

function slidelink()
{
  var url = "";
  if (whichimage == 1)
  {
    url = "http://206.173.92.20/westusa_com/offices_and_agents.html";
    window.location = url;
  }
  else if (whichimage == 2)
  {
    url = "http://www.westusagallerycollection.com/";
    win3 = window.open(url, 'win2', 'height=500,width=500,resizable=yes,toolbar=yes,location=yes');
	  if (window.focus) { win2.focus(); }
  }
}
