﻿function SetFade()
{
    setInterval("FadeStairs()", 9000);
    setInterval("FadeGaz()", 7000);
}
var aImgSrc = new Array();
aImgSrc[0]="images/Fades/S0.gif";
aImgSrc[1]="images/Fades/S1.gif";  
aImgSrc[2]="images/Fades/S2.gif"; 
aImgSrc[3]="images/Fades/S3.gif";
aImgSrc[4] = "images/Fades/S4.gif";
aImgSrc[5] = "images/Fades/S5.gif";
aImgSrc[6]="images/Fades/G0.gif";
aImgSrc[7]="images/Fades/G1.gif";  
aImgSrc[8]="images/Fades/G2.gif"; 
aImgSrc[9]="images/Fades/G3.gif";
aImgSrc[19]="images/Fades/G4.gif";
var aPreImage = new Array();
for(var i=0; i<=aImgSrc.length; i++)
{
   aPreImage[i] = new Image();
   aPreImage[i].src = aImgSrc[i];
}
var sp = 0;
function FadeStairs()
{			
    if (document.all)
    {
        document.images.imgStairs.style.filter='blendTrans(duration=0.5)';
        document.images.imgStairs.filters.blendTrans.Apply();
    }
    sp++;
    document.images.imgStairs.src = "images/Fades/S"+ (sp%6) +".gif";
    if (document.all)
        document.images.imgStairs.filters.blendTrans.Play();
}
var gp = 0;
function FadeGaz()
{			
    if (document.all)
    {
        document.images.imgGaz.style.filter='blendTrans(duration=0.5)';
        document.images.imgGaz.filters.blendTrans.Apply();
    }
    gp++;
    document.images.imgGaz.src = "images/Fades/G"+ (gp%5) +".gif";
    if (document.all)
        document.images.imgGaz.filters.blendTrans.Play();
}

