var count_news =0;
var news_array = Array();
var news_arrayid = Array();
var news_arraytitulos = Array();
 



function showNews(){
	$("#texto_news").fadeOut("slow",function(){
		$("#texto_news").html('<a href="es/newsroom/?id='+news_arrayid[count_news]+'">'+news_arraytitulos[count_news]+'<br>'+news_array[count_news]+'</a>');
		$("#texto_news").fadeIn("slow",function(){
			setTimeout("showNews()",5000);
		});
	})
	if(count_news<2){count_news++;}else{count_news=0;}
}

/****************************************************/
$(document).ready(function(){
	$("#m1").mouseover(function(){$("#m1").attr({src: "img_es/menu_en_12.jpg"});}).mouseout(function(){	$("#m1").attr({src: "img_es/menu_en_1.jpg"});});
	$("#m2").mouseover(function(){$("#m2").attr({src: "img_es/menu_en_22.jpg"});}).mouseout(function(){	$("#m2").attr({src: "img_es/menu_en_2.jpg"});});
	$("#m3").mouseover(function(){$("#m3").attr({src: "img_es/menu_en_32.jpg"});}).mouseout(function(){	$("#m3").attr({src: "img_es/menu_en_3.jpg"});});
	$("#m4").mouseover(function(){$("#m4").attr({src: "img_es/menu_en_42.jpg"});}).mouseout(function(){	$("#m4").attr({src: "img_es/menu_en_4.jpg"});});
	$("#m5").mouseover(function(){$("#m5").attr({src: "img_es/menu_en_52.jpg"});}).mouseout(function(){	$("#m5").attr({src: "img_es/menu_en_5.jpg"});});
	showNews();
});

function search_1(txt){
	$("#search1").val(txt);
	document.from_people.submit();
}
function LoadNews(id){
    $(".txt").html("Buscando datos...");
    $.get("en/search_news.php", {id: id},
      function(data){
		$("#textos").html('<div id="content-slider"></div><div id="content-scroll"><div class="txt_news">'+data+'</div></div>');
		$("#textos").fadeIn("slow");
		ScrollText();
      });
}