﻿
        function cursorChange(obj) {
            $(obj).hover(function (e) {
                $(this).css('cursor', 'pointer');
                $(this).css('color', 'blue');
            }, function (e) {
                $(this).css('cursor', '');
                $(this).css('color', 'black');
            });
        }
        function swapImages() {
            var $active = $('#myGallery .active');
            var $next = ($('#myGallery .active').next().length > 0) ? $('#myGallery .active').next() : $('#myGallery img:first');
            $active.fadeOut("slow", function () {
                $active.removeClass('active');
                $next.fadeIn().addClass('active');
            });
        }

        function backToProducts() {
            history.go(-1);
        }

        $(document).ready(function () {
            // Run our swapImages() function every 5secs
            setInterval('swapImages()', 5000);
        });

        function ImageOver(obj) {
            
            obj.src = "Images/" + obj.id + "_Over.png";
        }

        function ImageOriginal(obj) {

            obj.src = "Images/" + obj.id + ".png";
        }
    
