<!-- Original:  Mike Canonigo (mike@canonigo.com) -->
<!-- Web Site:  http://www.munkeehead.com -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
NewImgNic = new Array (
"../images/nicaragua/1.jpg",
"../images/nicaragua/2.jpg",
"../images/nicaragua/3.jpg",
"../images/nicaragua/4.jpg",
"../images/nicaragua/5.jpg",
"../images/nicaragua/6.jpg",
"../images/nicaragua/7.jpg"
);

var ImgNum = 0;
var ImgLength = NewImgNic.length - 1;

//Time delay between Slides in milliseconds
var delay = 3000;

var lock = false;
var run;
function chgImgNic(direction) {
if (document.images) {
ImgNum = ImgNum + direction;
if (ImgNum > 6) {
ImgNum = 0;
}
if (ImgNum < 0) {
ImgNum = ImgLength;
}
document.slideshow12.src = NewImgNic[ImgNum];
   }
}
function auto() {
if (lock == true) {
lock = false;
window.clearInterval(run);
}
else if (lock == false) {
lock = true;
run = setInterval("chgImgNic(1)", delay);
   }
}
//  End -->