// Image Rotator with Links on default.asp page upper right corner.
function RotateImages(Start)
  {	  //IMAGES
      var a = new Array();
          a[0] = "../images/RotatingAd1/ActHIBweb250x250.gif";
          a[1] = "../images/RotatingAd1/HistofreezerWeb250x250.jpg";
          a[2] = "../images/RotatingAd1/FluzoneHighDoseWeb250x250.jpg";
          a[3] = "../images/RotatingAd1/KClavender250x250.jpg";
          a[4] = "../images/RotatingAd1/Pentacel250x250.jpg";
          a[5] = "../images/RotatingAd1/SeacoastWeb250x250.gif";
          a[6] = "../images/RotatingAd1/SeacoastWebFlu250x250.jpg";
          a[7] = "../images/RotatingAd1/AdacelMenactraWeb250x250.jpg";
      //LINKS TO IMAGES    
      var c = new Array();
          c[0] = "../Forms/ProductInfo/Acthib.pdf";
          c[1] = "http://www.seacoastmedical.com/";
          c[2] = "../Forms/ProductInfo/Fluzone High Dose.pdf";
          c[3] = "http://www.seacoastmedical.com/";
          c[4] = "../Forms/ProductInfo/Pentacel10.pdf";
          c[5] = "http://www.seacoastmedical.com/";
          c[6] = "http://www.seacoastmedical.com/flutoyou";
          c[7] = "http://www.seacoastmedical.com/";
      
      var b = document.getElementById('Rotating1');
      var d = document.getElementById('imageurl');
      if(Start>=a.length)
          Start=0;
      b.src = a[Start];
      d.href = c[Start];
      window.setTimeout("RotateImages(" + (Start+1) + ")",4000);
  }
  RotateImages(0);
  
  
// For use with another image rotator in the future.
function RotateImages2(Start)
  {
      var a = new Array();
          a[0] = "../images/RotatingAd2/image1.gif";
          a[1] = "../images/RotatingAd2/image2.gif";
          
      var c = new Array();
          c[0] = "../Forms/ProductInfo/Acthib.pdf";
          c[1] = "http://www.seacoastmedical.com/";

      
      var b = document.getElementById('Rotating1');
      var d = document.getElementById('imageurl');
      if(Start>=a.length)
          Start=0;
      b.src = a[Start];
      d.href = c[Start];
      window.setTimeout("RotateImages(" + (Start+1) + ")",4000);
  }
  RotateImages(0);