﻿/*function scroll() 
{
  if(parseInt(document.all.roller.style.top) > -95) 
  {
    document.all.roller.style.top = parseInt(document.all.roller.style.top) - 1
  } 
  else 
  {
    document.all.roller.style.top = parseInt(document.all.roller.style.top) + 102
  }
}
function rulla() {
  setInterval("scroll()", 100)
}*/

var dimages=new Array();
  //var numImages=2;
  var numImages=1;
  dimages[0]=new Image();
  dimages[0].src="http://www.powelinc.com/images/webinar.gif";
  dimages[1]=new Image();
  //dimages[1].src="http://www.powelinc.com/images/info-req.gif";
  //dimages[1].src="http://www.powelinc.com/images/TechAdvantage.gif";
  var curImage=-1;

function open_url(image) {
	var1 = image;
	var2 = var1.split("images/");
	var3 = var2[1].split(".");

	window.open ('http://www.powelinc.com/'+var3[0]);

}

function swapPicture()
{
  if (document.images)
  {
    var nextImage=curImage+1;
    if (nextImage>=numImages)
      nextImage=0;
    if (dimages[nextImage] && dimages[nextImage].complete)
    {
      var target=0;
      if (document.images.myImage)
        target=document.images.myImage;
      if (document.all && document.getElementById("myImage"))
        target=document.getElementById("myImage");

      // make sure target is valid.  It might not be valid
      //   if the page has not finished loading
      if (target)
      {
        target.src=dimages[nextImage].src;
        curImage=nextImage;
      }

      setTimeout("swapPicture()", 3000);

    }
    else
    {
      setTimeout("swapPicture()", 500);
    }
  }
}

setTimeout("swapPicture()", 3000);