/* Script modified from original by FPMC at http://jsarchive.8m.com
Submitted to JavaScript Kit (http://javascriptkit.com)*/

//set image paths
src = [
"images/image01.jpg", 
"images/image02.jpg", 
"images/image03.jpg", 
"images/image04.jpg", 
"images/image05.jpg", 
"images/image06.jpg", 
"images/image07.jpg",
"images/image08.jpg", 
"images/image09.jpg", 
"images/image10.jpg",
"images/image11.jpg", 
"images/image12.jpg", 
"images/image13.jpg", 
"images/image14.jpg", 
"images/image15.jpg"]

url = [
"http://www.stormdude.com/slideshows/gallery-tn/index.html", 
"http://www.stormdude.com/slideshows/gallery-tn/index.html", 
"http://www.stormdude.com/slideshows/gallery-tn/index.html", 
"http://www.stormdude.com/slideshows/gallery-tn/index.html", 
"http://www.stormdude.com/slideshows/gallery-tn/index.html", 
"http://www.stormdude.com/slideshows/gallery-tn/index.html", 
"http://www.stormdude.com/slideshows/gallery-tn/index.html", 
"http://www.stormdude.com/slideshows/gallery-tn/index.html", 
"http://www.stormdude.com/slideshows/gallery-tn/index.html", 
"http://www.stormdude.com/slideshows/gallery-tn/index.html",
"http://www.stormdude.com/slideshows/gallery-tn/index.html", 
"http://www.stormdude.com/slideshows/gallery-tn/index.html", 
"http://www.stormdude.com/slideshows/gallery-tn/index.html", 
"http://www.stormdude.com/slideshows/gallery-tn/index.html", 
"http://www.stormdude.com/slideshows/gallery-tn/index.html"]

//set duration for each image
duration = 2;

//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];
} onload = function(){
if (document.images)
switchAd();
}
