
$(document).ready(function() {

$.fx.speeds._default = 1000;
InOut($('.slides_container li:first'));



function InOut( elem ){
   // elem.delay(2000).slideDown('slow').delay(5000).slideUp(function() {
    elem.delay(2000).animate({width: 'toggle'}).delay(8000).animate({width: 'toggle'}, function() {
		if(elem.next().length > 0) // if there is a next element
			{InOut( elem.next() );} // use it
		else
			{InOut( elem.siblings(':first'));} // if not, then use go back to the first sibling
	});
}

});
