﻿
        var time = 5; //Time delay between rotating images (in seconds)
        time *=1000;
        var Image = new Array();
        Image[0] = "Rotating_Images/Daycare_slide.jpg";
        Image[1] = "Rotating_Images/Daycare_kiss.jpg";
        Image[2] = "Rotating_Images/Daycare_pool.jpg";
        var Attribute = new Array();
        Attribute[0] = "Daycare Slide";
        Attribute[1] = "Daycare Kiss";
        Attribute[2] = "Daycare Pool";
        
        var x = Image.length;
        document.write("&nbsp;");
        x = x-1

        function show_image()
        {
        document.getElementById("rimage").setAttribute("src", ""+Image[x])
        document.getElementById("rimage").setAttribute("alt", ""+Attribute[x])
        x=(x<Image.length-1)? x+1 : 0
        }
        
        function rotate(){
        setInterval("show_image()",time)
        }
            
