        ZONTIK.Class.create("ZONTIK.Controls.ProductSliceGallery", ZONTIK.Controls.SliceGallery, 
                function(config) { 
                    if (config.items.length > 1) {
                        config.items = this.editItemsArray(config.items);
                    }
                    ZONTIK.Controls.SliceGallery.call(this, config);
                }, 
                {
                    animSpeed: 800,
                    slideshowInterval: 0,
                    
                    editItemsArray: function(items) {
                        var popped = new Array(items.pop());
                        popped = popped.concat(items);
                        return popped;
                    },

                    getSliceHtml: function(i) {
                        var html =  "<div id='GallerySlice" + i + "' class='GallerySlice'>";
                        html +=     "<img src='" + this.items[i].src + "' onClick='magnify.open(\"" + this.items[i].link + "\")'>";
                        html +=     "</div>";
                        return html;
                    },
                
                    getSliceWidth: function() {
                       return 540;
                    },
                    
                    setFlippers: function() {
                        if (this.items.length > this.config.maxlength) {
                            $("#" + this.target).prepend("<a onClick='" + ZONTIK.Delegate.createAsString(this, this.nextPage) + "'><img src='/images/product.next.gif' id='GalleryNext'></a>");
                            $("#" + this.target).prepend("<a onClick='" + ZONTIK.Delegate.createAsString(this, this.prevPage) + "'><img src='/images/product.prev.gif' id='GalleryPrevious'></a>");
                        }
                    }                    
                }
            );