I've been using the following script on my web site to rotate several images, which each link to other pages or sites:

<script language="JavaScript">
var imgs1 = new Array("image1.jpg","image2.jpg","image3.jpg")
var lnks1 = new Array("page1.html", "page2.html","page3.html")
var alt1 = new Array("Title One", "Title Two", "Title Three")
var currentAd1 = 0
var imgCt1 = 3
function cycle1() {
if (currentAd1 == imgCt1) {
currentAd1 = 0
var banner1 = document.getElementById('adBanner1');
var link1 = document.getElementById('adLink1');

I've also used this simple script to pop up a page with a specific size and no scrollbar:

<a href="javascript:void(0);" onclick="window.open('page.html','','scrollbars=no,resizable=no,width=770,height=580,left=10,top=10');">

Now I need for my rotating image to link to a popup page instead of simply linking to a new page in the same window. Plopping the popup javascript links into the lnks1 array doesn't work, and I can't find a script that accommodates both rotation and popup.

Suggestions, anyone? A solution would be greatly appreciated.