        
        var DisplayInterval = 1500;
        var ImageFolder = "img/hotel_pictures"; //Folder name containing the images
        var ImageFileNames = new Array('image_showing_1.gif', 
                                       'image_showing_2.gif',
                                       'image_showing_3.gif',
                                       'image_showing_4.gif',
                                       'image_showing_5.gif',
                                       'image_showing_6.gif',
                                       'image_showing_7.gif',
                                       'image_showing_8.gif',
                                       'image_showing_9.gif',
                                       'image_showing_10.gif',
                                       'image_showing_11.gif',
                                       'image_showing_12.gif',
                                       'image_showing_13.gif',
                                       'image_showing_14.gif',
                                       'image_showing_15.gif',
                                       'image_showing_16.gif',
                                       'image_showing_17.gif',
                                       'image_showing_18.gif',
                                       'image_showing_19.gif',
                                       'image_showing_20.gif',
                                       'image_showing_21.gif',
                                       'image_showing_22.gif'
        );

        var current_banner = 1;
        var banner = new Array(NumberOfImages);
        var NumberOfImages = ImageFileNames.length;

        if (ImageFolder.substr(ImageFolder.length - 1, ImageFolder.length) != "/" && ImageFolder != "") { 
           ImageFolder += "/";
        }

        function ChangeImage()
        {
                        current_banner = current_banner + 1;
                        if (current_banner > NumberOfImages) {
                          current_banner = 1;
                        }

                       //document.write("<i>change to </i>", current_banner, banner[current_banner].src );

                       // current_banner = (current_banner + 1) % NumberOfImages;
                        window.document.bannerapps.src = banner[current_banner].src;

                        TimerObject = setTimeout("ChangeImage()", DisplayInterval);
        }

        function InitializeImages()
        {

          
          for (i = 1; i <= NumberOfImages; i++) {
            banner[i] = new Image();
            banner[i].src = ' ' + ImageFolder + ImageFileNames[i-1];
          }

//          document.write("<i>photo file, number of images </i>", current_banner, banner[current_banner].src, NumberOfImages  );

          TimerObject = setTimeout("ChangeImage()", DisplayInterval);

          
          window.document.bannerapps.src = banner[current_banner].src;
          
        }


        function StopImage()
        {
            clearTimeout(TimerObject);             
        }


        function ShowBackwardMsg_ES()
        {
                        window.document.backward.src ='img/backward_msg_ES.png';
                        window.document.backward.width ='120';
                        window.document.backward.height='75';
        }
        function ShowBackwardMsg_EN()
        {
                        window.document.backward.src ='img/backward_msg_EN.png';
                        window.document.backward.width ='120';
                        window.document.backward.height='75';
        }
        function NotBackwardMsg()
        {
                        window.document.backward.src ='img/blank.png';
                        window.document.backward.width ='0';
                        window.document.backward.height='0';
        }
        function ShowPlayMsg_ES()
        {
                        window.document.play.src ='img/play_msg_ES.png';
                        window.document.play.width ='120';
                        window.document.play.height='75';
        }
        function ShowPlayMsg_EN()
        {
                        window.document.play.src ='img/play_msg_EN.png';
                        window.document.play.width ='120';
                        window.document.play.height='75';
        }
        function NotPlayMsg()
        {
                        window.document.play.src ='img/blank.png';
                        window.document.play.width ='0';
                        window.document.play.height='0';
        }
        function ShowStopMsg_ES()
        {
                        window.document.stop.src ='img/stop_msg_ES.png';
                        window.document.stop.width ='120';
                        window.document.stop.height='75';
        }
        function ShowStopMsg_EN()
        {
                        window.document.stop.src ='img/stop_msg_EN.png';
                        window.document.stop.width ='120';
                        window.document.stop.height='75';
        }
        function NotStopMsg()
        {
                        window.document.stop.src ='img/blank.png';
                        window.document.stop.width ='0';
                        window.document.stop.height='0';
        }
        function ShowForwardMsg_ES()
        {
                        window.document.forward.src ='img/forward_msg_ES.png';
                        window.document.forward.width ='120';
                        window.document.forward.height='75';
        }
        function ShowForwardMsg_EN()
        {
                        window.document.forward.src ='img/forward_msg_EN.png';
                        window.document.forward.width ='120';
                        window.document.forward.height='75';
        }
        function NotForwardMsg()
        {
                        window.document.forward.src ='img/blank.png';
                        window.document.forward.width ='0';
                        window.document.forward.height='0';
        }
























