// Rotate Graphic Banners - SysperTec 

//****Program Variables******

//**Banner Graphics

    var syspertecBanners = new Array(
           '/images/syspertecFrame_1_VWS.gif',
           '/images/syspertecFrame_2_VWA.gif',
           '/images/syspertecFrame_3_VWM.gif',
           '/images/syspertecFrame_4_VWI.gif');

//**Banner URL / Landing Pages

    var syspertecURLS = new Array(
          '/cgi/cobug/advertise/countlink.cgi?www.syspertec.us/2000-VIRTEL-Web-Suite-For-Mainframe.html',
          '/cgi/cobug/advertise/countlink.cgi?www.syspertec.us/2200-VIRTEL-Web-Access.html',
          '/cgi/cobug/advertise/countlink.cgi?www.syspertec.us/2300-VIRTEL-Web-Modernization.html',
          '/cgi/cobug/advertise/countlink.cgi?www.syspertec.us/2400-VIRTEL-Web-Integration.html');


    var oldSyspertec      =  0;
    var currentSyspertec  =  0;


//**************Initialize Function***********

function RotateSyspertecBanner()
{
        if (!document.images) return

        while (currentSyspertec == oldSyspertec)
        {
                currentSyspertec = Math.floor(Math.random()*syspertecBanners.length);
        }

        oldSyspertec = currentSyspertec;
        document.images['syspertecBanner'].src = syspertecBanners[currentSyspertec];
        setTimeout(' RotateSyspertecBanner()',5000);    // 5000 = 5 seconds 
}


//******Rotate Banner, Send Page*********

function SyspertecRotateBanners()
{

     window.location.href=syspertecURLS[currentSyspertec]; 

}



