<div class="slideshow-container">
<div class="mySlides fade">
<img src="1.jpg" width="670" height="355">
</div>
<div class="mySlides fade">
<img src="img/2.JPG" width="670" height="355">
</div>
<div class="mySlides fade">
<img src="img/3.JPG" width="670" height="355">
</div>
</div>
function showSlides(n) {
var i;
var slides = document.getElementsByClassName("mySlides");
if (n > slides.length) {slideIndex = 1}
if (n < 1) {slideIndex = slides.length}
for (i = 0; i < slides.length; i++) {
slides[i].style.display = "none";
}
slides[slideIndex-1].style.display = "block";
}
var slideIndex = 0;
showSlides();
function showSlides() {
var i;
var slides = document.getElementsByClassName("mySlides");
for (i = 0; i < slides.length; i++) {
slides[i].style.display = "none";
}
slideIndex++;
if (slideIndex > slides.length) {slideIndex = 1}
slides[slideIndex-1].style.display = "block";
setTimeout(showSlides, 3000);
}