(function($){
// adapted by jenobre@gmail.com
// plugin by Joel Birch
$.fn.switchContent = function(spd,rpt,path){
	var $$=this;
	var factTimer = setTimeout(function(){
		$$.animate({"opacity":"hide"},spd,function(){
			var noCache= new Date().getTime();
			$$.load(path+"?version="+noCache,function(){
				$$.slideDown(spd,function(){
					$$.switchContent(spd,rpt,path);
				});
			});
		});
	},rpt*1000);
	return this;
};

$(function(){
	//fact swapping - uses switchContent plugin
	$("#aspas-in").hide().slideDown(700).switchContent(700,40,'facts.php');
});

$(function(){
	$('div.togl').hide();
	$('a.mais').click(function() {
	$(this).next().slideToggle('slow');
	return false;
        });
});

})(jQuery);
