function ImageRoller(containerId,rollerType) {
        this.ItemName = "img";
        $("#" + containerId + " " + this.ItemName + "").hide();
        $("#" + containerId + " " + this.ItemName + ":eq(0)").show();
        
        switch (rollerType) {
            default:
                $("#" + containerId + " " + this.ItemName + "").css("position", "absolute");
                this.Type = "innerFade";
                break;
        }
        
        this.Type = rollerType;
        this.ToggleItem = function(object1, object2) {
            switch (this.Type) {
                case "fade":
                    object1.fadeOut("fast", function() { object2.fadeIn("slow"); });
                    break;
                case "slide":
                    object1.slideUp("fast");
                    object2.slideDown("fast");
                    break;
                default:
                    object1.fadeOut(500);
                    object2.fadeIn(500);
                    break;
            }
        }
        this.Next = function() {
            if ($("#" + containerId + " " + this.ItemName + "").length < 2) return;
            if ($("#" + containerId + " " + this.ItemName + ":animated").get(0) != null) return;
            $current = $("#" + containerId + " " + this.ItemName + ":visible");
            $next = $current.next();

            if ($next.get(0) == null) {
                $next = $("#" + containerId + " " + this.ItemName + ":first");
            }
            this.ToggleItem($current, $next);

        }
        this.Previous = function() {
            if ($("#" + containerId + " " + this.ItemName + "").length < 2) return;
            if ($("#" + containerId + " " + this.ItemName + ":animated").get(0) != null) return;
            $current = $("#" + containerId + " " + this.ItemName + ":visible");
            $previous = $current.prev();

            if ($previous.get(0) == null) {
                $previous = $("#" + containerId + " " + this.ItemName + ":last")
            }
            this.ToggleItem($current, $previous);
        }
    }
