function cycleAds( adNumber, adInstance ) { var thisNumAds = eval( 'num' + adInstance + 'Ads' ); var thisAdArray = eval( 'ad' + adInstance + 'Array' ); var thisLastAd = eval( 'last' + adInstance + 'Ad' ); var thisAdCycleDelay = 1000; if ( adInstance > 1 ) { thisAdCycleDelay = '1' + adInstance + '00'; } if( adNumber == thisNumAds ) { adNumber = 0; } //set all ads to invisible for( var i=0; i 1 ) { thisAdCycleDelay = '9' + adInstance + '00'; } var theAd = document.getElementById( adID ); theAd.style.display="inline"; var adNumber; //if it has reached full opacity, hide all the other ads for( i=0; i