function portada_defecto() {


				$('#contenido_noticia').fadeTo("slow", 0, function(){
					$('#cargando_noticia').html('<img src="images/ajax-loader2.gif" alt="loading"> Cargando noticia...');
					//$('#contenido_noticias').html('');
					//$('#cargando_noticias').css('visibility','visible');
					$.ajax({
						type: "POST",
						url: "libre.php",
						dataType: "html",
						success: function(msg){ 
							if(parseInt(msg)!=0){
								$('#cargando_noticia').html('');
								$('#contenido_noticia').html(msg);
								$('#contenido_noticia').fadeTo("slow", 1);
								
								}
							}
						});
				});
}


function ver_noticia(noticia_id) {
				
				
				$('#contenido_noticia').fadeTo("slow", 0, function(){
					$('#cargando_noticia').html('<img src="images/ajax-loader2.gif" alt="loading"> Cargando noticia...');
					//$('#contenido_noticias').html('');
					//$('#cargando_noticias').css('visibility','visible');
					$.ajax({
						type: "POST",
						url: "news.php",
						data:  'q=ampliar'+'&nid='+noticia_id,
						dataType: "html",
						success: function(msg){ 
							if(parseInt(msg)!=0){
								$('#cargando_noticia').html('');
								$('#contenido_noticia').html(msg);
								$('#contenido_noticia').fadeTo("slow", 1);
								
								}
							}
						});
				});
}

function listar_noticias(inicio) {


			
				$('#contenido_noticias').fadeTo("slow", 0, function(){
					$('#cargando_noticias').html('<img src="images/ajax-loader2.gif" alt="loading"> Cargando noticias...');
					//$('#contenido_noticias').html('');
					//$('#cargando_noticias').css('visibility','visible');
					$.ajax({
						type: "POST",
						url: "news.php",
						data:  'q=mas'+'&inicio='+inicio,
						dataType: "html",
						success: function(msg){ 
							if(parseInt(msg)!=0){
								$('#cargando_noticias').html('');
								$('#contenido_noticias').html(msg);
								$('#contenido_noticias').fadeTo("slow", 1);
								
								}
							}
						});
				});
				
}


$(document).ready(function(){

		$.ajaxSetup({
					'beforeSend' : function(xhr) {
							try { xhr.overrideMimeType('text/html; charset=iso-8859-1'); }
							catch(e){ }
					}});
		//listar_noticias(0);
})
