(function($) {

    $.fn.contentSlider = function(options) {
        
        var defaults = {
            speed: 1500,
            duration: 4000
        };
        
        var config = $.extend(defaults, options);

        this.each(function() {
            
            var $this = $(this);
            
            $(this)
                .bind('mouseover', function() {
                    var image = $(this);
                    var title = this.title;
                    var pic   = new Image();
                    
                    if (this.src.replace('-50x50', '') != $("div.wrapper > img").attr('src')) {
                        $(".thumbnail").each(function() {
                            $(this).css('border-color', '#000');
                        });

                        $(this).css('border-color', '#ff3366');
                    
                        $("div.wrapper > img").remove();
                    
                        $(pic).load(function() {
                            $(this).css('display', 'none').appendTo("div.wrapper").fadeIn('fast');
                        })
                        .attr({src: this.src.replace('-50x50', ''), title: title});
                    }
                })
                .bind('contextmenu', function() { 
                    return false; 
                }
            );
        });

        return this;
        
    };

})(jQuery);
