            var SlideShowSpeed = 3000;
            var CrossFadeDuration = 3;
            var image_current = 1
            var image_count = 0

            function runSlideShow()
                {
                if (running)
                    {
                    if (document.all)
                        {
                        document.images.PictureBox.style.filter = "blendTrans(duration=2)";
                        document.images.PictureBox.style.filter = "blendTrans(duration=CrossFadeDuration)";
                        document.images.PictureBox.filters.blendTrans.Apply();
                        }

                    document.images.PictureBox.src = preLoad[jss].src;

                    if (document.all)
                        document.images.PictureBox.filters.blendTrans.Play();

                    cleartdthm();

                    if (image_count > 1)
                        {
                        eval("document.all.tdthm" + jss + ".style.backgroundColor='#d2d9e3';");
                        }

                    jss = jss + 1;

                    if (jss > (pss))
                        jss = 1;

                    tss = setTimeout('runSlideShow()', SlideShowSpeed);
                    }
                }

            function slideshow()
                {
                if (running == true)
                    {
                    running = false;
                    }

                else
                    {
                    running = true;
                    runSlideShow();
                    }
                }

            function gotoImage2(x)
                {
                if (x == "1")
                    {
                    if (image_current < image_count)
                        {
                        gotoImage(image_current + 1);
                        }

                    else
                        {
                        gotoImage(1);
                        }
                    }

                if (x == "2")
                    {
                    if (image_current == 1)
                        {
                        gotoImage(image_count);
                        }

                    else
                        {
                        gotoImage(image_current - 1);
                        }
                    }
                }

            function gotoImage(x)
                {
                if (document.all)
                    {
                    cleartdthm();

                    if (image_count > 1)
                        {
                        eval("document.all.tdthm" + x + ".style.backgroundColor='#d2d9e3';");
                        }

                    image_current = x;
                    document.images.PictureBox.style.filter = "blendTrans(duration=2)";
                    document.images.PictureBox.style.filter = "blendTrans(duration=CrossFadeDuration)";
                    document.images.PictureBox.filters.blendTrans.Apply();
                    }

                document.images.PictureBox.src = preLoad[x].src;

                if (document.all)
                    document.images.PictureBox.filters.blendTrans.Play();

                tss = 0;
                }
            function cleartdthm()
                {
                if (image_count > 1)
                    {
                    for (i = 1; i <= image_count; i++)
                        eval("document.all.tdthm" + i + ".style.backgroundColor='#f2f4f7';");
                    }
                }
