
var Speed  = 8;
var IncX   = 0;
var IncY   = 0;
var IndexY = 0;
var IndexX = 0;
var Num    = 0;
var Wid    = 380;
var Hei    = 30;
var Delay  = 5000;

var ImgList = new Array();

ImgList[0] = "images/Banner2.gif";
ImgList[1] = "images/Banner3.gif";
ImgList[2] = "images/Banner1.gif";

/* var Style = "style=\"opacity:0.8; filter:alpha(opacity=85)\""; */
var Style = "";

var PreLoad = new Array();

for (var Index = 0; Index < ImgList.length; Index++)
  {
    PreLoad [Index] = new Image();

    PreLoad [Index].src = ImgList [Index];
  }


IncX = (Wid / 48);

IncY = (Hei / Wid) * IncX;













function StretchBanner()
  {
    var Str, Timer;

    Num++;

    if (Num >= ImgList.length)
      {
        Num = 0;
      }

    if (document.layers)
      {
        Str = "<img src='" + ImgList [Num] + "' " + Style + "border='0'>";

        document.Banner.document.write (Str);

        document.Banner.document.close();
      }

    Stretch();
  }
















function Stretch()
  {
    var Str, Timer;

    if (IndexX <= Wid)
      {
        Str = "<img width='" + IndexX + "' height='" + IndexY + "' src='" + ImgList [Num] + "' border='0'>";

        if (document.all) Banner.innerHTML = Str;

        else document.getElementById ('Banner').innerHTML = Str;

        IndexX = IndexX + IncX;

        IndexY = IndexY + IncY;

        if (IndexY >= Hei) IndexY = Hei;

        Timer = setTimeout ("Stretch()", Speed)
      }

    else
      {
        IndexX = Wid;

        IndexY = Hei;

        clearTimeout (Timer);

        Str = "<img src='" + ImgList [Num] + "' " + Style + "border='0'>";

        if (document.all) Banner.innerHTML = Str;

        else document.getElementById ('Banner').innerHTML= Str;

        Timer = setTimeout ("Shrink()", Delay);
      }
  }












function Shrink()
  {
    var Str, Timer;

    if (IndexX >= 0)
      {
        Str = "<img width='" + IndexX + "' height='" + IndexY + "' src='" + ImgList [Num] + "' " + Style + "border='0'>";

        if (document.all) Banner.innerHTML = Str;

        else document.getElementById ('Banner').innerHTML= Str;

        IndexX = IndexX - IncX;

        IndexY = IndexY - IncY;

        if (IndexY < 0) IndexY = 0;

        Timer = setTimeout ("Shrink()",Speed);
      }

    else
      {
        IndexX = 0;

        IndexY = 0;

        clearTimeout (Timer);

        StretchBanner();
      }
  }








