
function newImage2(arg) {
        if (document.images) {
                rslt2 = new Image();
                rslt2.src = arg;
                return rslt2;
        }
}

function preloadImages2() {
if (document.images) {
                newImage2("sponsors/commonwealth.jpg");
                newImage2("sponsors/akseafood.jpg");
                
                newImage2("sponsors/couer.jpg");
                newImage2("sponsors/akcruise2.jpg");
                preloadFlag = true;

        }
        }

/*
JavaScript Image slideshow:
By Website Abstraction (www.wsabstract.com)
Over 200+ free JavaScript here!
*/

var slideimages2=new Array()
var slidelinks2=new Array()
function slideshowimages2(){
for (i=0;i<slideshowimages2.arguments.length;i++){
slideimages2[i]=new Image()
slideimages2[i].src=slideshowimages2.arguments[i]
}
}

function slideshowlinks2(){
for (i=0;i<slideshowlinks2.arguments.length;i++)
slidelinks2[i]=slideshowlinks2.arguments[i]
}

function gotoshow2(){
if (!window.winslide||winslide.closed)
winslide=window.open(slidelinks2[whichlink])
else
winslide.location=slidelinks2[whichlink]
winslide.focus()
}

  
document.write("<a href=javascript:gotoshow2()><img src=sponsors/commonwealth.jpg name=slide2 border=0 WIDTH=177 HEIGHT=79></a>");


//configure the paths of the images, plus corresponding target links
slideshowimages2("sponsors/commonwealth.jpg","sponsors/akseafood.jpg","sponsors/couer.jpg","sponsors/akcruise2.jpg")
slideshowlinks2("#","#","#","#")

//configure the speed of the slideshow, in miliseconds
var slideshowspeed2=3000

var whichlink2=0
var whichimage2=0
function slideit2(){
if (!document.images)
return
document.images.slide2.src=slideimages2[whichimage2].src
whichlink2=whichimage2
if (whichimage2<slideimages2.length-1)
whichimage2++
else
whichimage2=0
setTimeout("slideit2()",slideshowspeed2)
}
slideit2()

