//set image paths
src = ["../images/RotatorPics/salsapic1.jpg", "../images/RotatorPics/salsapic2.jpg", "../images/RotatorPics/salsapic3.jpg", "../images/RotatorPics/salsapic4.jpg", "../images/RotatorPics/salsapic5.jpg", "../images/RotatorPics/salsapic6.jpg","../images/RotatorPics/salsapic7.jpg","../images/RotatorPics/salsapic8.jpg"]
//set corresponding urls
url = ["index.php?p=AboutUs", "index.php?p=Classes", "index.php?p=CorporateSalsa", "index.php?p=AboutUs", "index.php?p=AboutUs", "aboutus.php", "index.php?p=AboutUs", "index.php?p=AboutUs"]
//set duration for each image
duration = 6;
//Please do not edit below
ads=[]; ct=0;
function switchAd() {
var n=(ct+1)%src.length;
if (ads[n] && (ads[n].complete || ads[n].complete==null)) {
document["Ad_Image"].src = ads[ct=n].src;
}
ads[n=(ct+1)%src.length] = new Image;
ads[n].src = src[n];
setTimeout("switchAd()",duration*1000);
}

function doLink(){
location.href = url[ct];
} 

function imagechange(){
if (document.images)
switchAd();
}
//-->



