$(function(){
    $('#slideshow img:gt(0)').hide();
    setInterval(function(){
      $('#slideshow :first-child').fadeOut()
         .next('img').fadeIn()
         .end().appendTo('#slideshow');}, 
      3000);
});

(function($){
	$.fn.fade_in = function(callback,speed){
		$(this).fadeIn(speed,function(){
			if(jQuery.browser.msie){ $(this).get(0).style.removeAttribute('filter'); }
			if(callback != undefined){ callback(); }
		});
	};
	$.fn.fade_out = function(callback,speed){
		$(this).fadeOut(speed,function(){
			if(jQuery.browser.msie){ $(this).get(0).style.removeAttribute('filter'); }
			if(callback != undefined){ callback(); }
		});
	};
})(jQuery);
