$(document).ready(function(){
	$('.ver_todos_lesgustaladisco').click(function(){
												   
		$('.lesgustaladisco').fadeOut(1000);
		$('.contenedor_gusta_discoteca').animate( { height:"22px" }, 1500,function(){ $('.contenedor_gusta_discoteca').html('<img src="/images/logo-cargando-grande.gif" />')  });
		setTimeout("cargar_gusta_disco()",1500);
	});

	$('a.button').click(function(){
								 	if(confirm('Agregar esta Discoteca a "Discotecas Favoritas"?')){
											   		discoteca_agregar=$(this).attr('id');
													$.post('/procesadores/agregar_discoteca.php',{discoteca_id:discoteca_agregar},function(datos){
																																					respuesta=datos;
																																				  });
											   }
								 });

});

function cargar_gusta_disco(){
		$.post('/procesadores/gusta_discoteca.php',{discoteca_id:id_discoteca_actual},function(datos){  $('.contenedor_gusta_discoteca').html(datos); nuevo_tamanio_gusta_discoteca=$('.contenedor_gusta_discoteca2').height();  $('.contenedor_gusta_discoteca').animate( { height:nuevo_tamanio_gusta_discoteca+'px' }, 1500);  cargar_flyout(); });
}

