jQuery.noConflict();

var testorSlideSpeed = 4000;
var testorSlideFadeSpeed = 700;

(function($) { // Compliant with jquery.noConflict()

	$.fn.extend({
		
		testorSlide: function(){
		
		var jthis = $(this);
		jthis.find(".slideshow_inside").hide();
		var first = $(jthis.find(".slideshow_inside").get(0)).show();
		
		// next
		setTimeout( function() { first.nextSlide() }, testorSlideSpeed);
	
		},
		nextSlide: function(){
			
			var jthis = $(this);
			
			var next = jthis.next().get(0);
			if(typeof next == 'undefined')
				var next = jthis.siblings().get(0);
							
			jthis.fadeTo(testorSlideFadeSpeed,0, function(){
				jthis.hide();
				$(next).css("opacity", "0");
				$(next).show();
				$(next).fadeTo(testorSlideFadeSpeed,1);
			});
			
			
			// next
			setTimeout( function() { $(next).nextSlide() }, testorSlideSpeed);
		}
	});


})(jQuery); // Compliant with jquery.noConflict()

