
/* This script is set to rotate every 10 seconds.
   (5000=5 seconds, so 30000 would equal 30, etc)
   You should change the number in the setTimeout()
   call below for the number of seconds you wish. */

var sctr=0;
var halt=0;
var isn=new Array();
var durl=new Array();
var ChangeRate=10000;
var TimeOutId=0;
   
function rotateIt()
    {
    if (halt!=1)
        {
        if (TimeOutId==0)
            {
            sctr++;
            if (sctr>number_of_sponsors-1)
                {
                sctr=0;
                }
            document.sponsor.src=isn[sctr].src;
            TimeOutId=setTimeout("rotateIt()",ChangeRate);
            }
        }
    }
 
function StopRotate()
    {
    if (halt!=0)
        {
        window.clearTimeout(TimeOutId);
        TimeOutId=0;
        }
    }

function rotateForward()
    {
    if (halt!=1)
        {
        sctr=sctr+1;
        if (sctr>number_of_sponsors-1)
            {
            sctr=0;
            }  
        if (sctr<1)
            {
            sctr=0;
            }
        document.sponsor.src=isn[sctr].src;
        }
    }
function rotateBack()
    {
    if (halt!=1)
        {
        sctr=sctr-1;
        if (sctr>number_of_sponsors-1)
            {
            sctr=0;
            }  
        if (sctr<1)
            {
            sctr=0;
            }
        document.sponsor.src=isn[sctr].src;
        }
    }
 
/* This code will work just fine with or without
frames.  However, if you are in frames and wish
to replicate the TARGET="_top" call to remove
frames, change the location.href call to:
parent.location.href=durl[sctr];
below. */
function doIt()
    {
    halt=1;
    location.href=durl[sctr];
    }

function dispIt()
    {
    parent.window.status=durl[sctr];
    }












