function cambia(){	
	
	var fadeEffect = new Fx.Tween($('div_gallery'), {duration:1000} );
	
	var changeImage = new Request.HTML(
			{url:'up_top.php',	
		 	//Clear the text currently inside the results div.Inject the new DOM elements into the results div.
		 	onSuccess: function(html) {	$('div_gallery').set('text', '');$('div_gallery').adopt(html);fadeEffect.start('opacity', 0, .99);},
		 	//Our request will most likely succeed, but just in case, we'll add an
		 	//onFailure method which will let the user know what happened.
		 	onFailure: function() {	$('div_gallery').set('text', '');}
			}
	);	

	
	
	fadeEffect.start('opacity', 1, .01).chain(
		function() {
					/*$('div_gallery').set('text', '');
					changeImage.send().chain(
						function(){
							fadeEffect.start('opacity', 0, .99);					
						}
					);*/
					$('div_gallery').set('text', '');
					changeImage.send();
		}
	);
	t = setTimeout('cambia()',5000);	
	
}

//window.addEvent('domready', function(){
	
//	
//});
