function MenSel(obj){obj.className=obj.className+'_seleccionado';}
function MenDesel(obj){obj.className=obj.className.replace('_seleccionado','');}
function winNoScroll(url,ancho,alto,nombre){var posx=(screen.width-ancho)/2;var posy=(screen.height-alto)/2;if(url.search(/www.eugin.net/)<0){url="http://www.eugin.net/"+url;}
window.open(url,nombre,'toolbar=0, resizable=0, location=0,status=0,directories=0,menubar=0,scrollbars=0,width='+ancho+',height='+alto+',left='+posx+',top='+posy);}
function winScroll(url,ancho,alto,nombre){var posx=(screen.width-ancho)/2;var posy=(screen.height-alto)/2;if(url.search(/www.eugin.net/)<0){url="http://www.eugin.net/"+url;}
window.open(url,nombre,'toolbar=0, resizable=0, location=0,status=0,directories=0,menubar=0,scrollbars=1,width='+ancho+',height='+alto+',left='+posx+',top='+posy);}
function ocultarDiv(nombre,sn)
{obj=document.getElementById(nombre);if(obj==null)return;if(sn>0){obj.style.visibility="visible";obj.style.display="inline";}else{obj.style.visibility="hidden";obj.style.display="none";}}
function cambiarTabEqMed(nombre,sn){obj=document.getElementById(nombre);if(obj==null)return;if(sn>0){obj.className="home_mainmenu_tabs_over_eqMed";}else{obj.className="home_mainmenu_tabs_out_eqMed";}}
function cambiarTabEqMedNew(nombre,sn){obj=document.getElementById(nombre);if(obj==null)return;if(sn>0){obj.className="home_mainmenu_tabs_over_eqMedNew";}else{obj.className="home_mainmenu_tabs_out_eqMedNew";}}
function cambiarTabLarge(nombre,sn)
{obj=document.getElementById(nombre);if(obj==null)return;if(sn>0){obj.className="home_mainmenu_tabs_over_large";}else{obj.className="home_mainmenu_tabs_out_large";}}
function cambiarTab(nombre,sn)
{obj=document.getElementById(nombre);if(obj==null)return;if(sn>0){obj.className="home_mainmenu_tabs_over";}else{obj.className="home_mainmenu_tabs_out";}}
function cambiarTabLila(nombre,sn)
{obj=document.getElementById(nombre);if(obj==null)return;if(sn>0){obj.className="home_mainmenu_tabs_lila_over";}else{obj.className="home_mainmenu_tabs_lila_out";}}
function cambiarColorTexto(nombre,sn)
{obj=document.getElementById(nombre);if(obj==null)return;if(sn>0){obj.className="home_mainmenu_tabstext_over";}else{obj.className="home_mainmenu_tabstext_out";}}
function Init_Index(){var insideMenu=0;if(document.images){preload_image_object=new Image();image_url=new Array();image_url[0]="/images/home/barra_redondeada_menu_arriba.jpg";image_url[1]="/images/home/boton_donacion_mouseout.jpg";image_url[2]="/images/home/boton_donacion_mouseover.jpg";image_url[3]="/images/home/boton_menu_mouseout.jpg";image_url[4]="/images/home/boton_menu_mouseover.jpg";image_url[5]="/images/home/boton_presupuesto_mouseout.jpg";image_url[6]="/images/home/boton_presupuesto_mouseout.jpg";image_url[7]="/images/home/web_eugin_home_background.jpg";var i=0;for(i=0;i<=7;i++)
preload_image_object.src=image_url[i];}}
function change_flag(over,img_name){var img;if(over==true){img=document.getElementById(img_name);img.src='Images/generales/'+img_name+'_hover.gif';}else{img=document.getElementById(img_name);img.src='Images/generales/'+img_name+'.gif';}}
function crearAjax(){var xmlhttp=false;try{xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");}catch(e){try{xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}catch(E){xmlhttp=false;}}
if(!xmlhttp&&typeof XMLHttpRequest!='undefined'){xmlhttp=new XMLHttpRequest();}
return xmlhttp;}
function executeAjax(url,idbuzon,status,contenedor1,contenedor2){var objAjax=crearAjax();var lyr_1=document.getElementById(contenedor1);var lyr_2=document.getElementById(contenedor2);objAjax.open("GET",url);objAjax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');objAjax.onreadystatechange=function(){if(objAjax.readyState==4){try{if(status=="1"){lyr_1.className="APA_lyr_read_msg";lyr_2.className="APA_buzon_read_img";lyr_2.onclick=function(){change_email_status(idbuzon,0,contenedor1,contenedor2);};}else{lyr_1.className="APA_lyr_unread_msg";lyr_2.className="APA_buzon_unread_img";lyr_2.onclick=function(){change_email_status(idbuzon,1,contenedor1,contenedor2);};}}catch(e){}}}
objAjax.send(null);}
function change_email_status(itemindex,idbuzon,status,lyr_main,lyr_sub){var url='APA_Buzon.aspx?itemindex='+itemindex+'&action='+idbuzon+'&status='+status;window.location=url;}
function change_email_status_APRO(itemindex,idbuzon,status,lyr_main,lyr_sub){var url='APRO_Buzon.aspx?itemindex='+itemindex+'&action='+idbuzon+'&status='+status;window.location=url;}
function show_layer(layerid){var lyr=document.getElementById(layerid);if(lyr.style.display=='none')
lyr.style.display='block';else
lyr.style.display='none';}