// JavaScript Document

//HORA EN WEB/////////////////////////////////////////////////////////////////////////////
var puntos = " ";

function fechaHora() {
var fecha = new Date();
var hora = fecha.getHours();
var minuto = fecha.getMinutes();
var segundos = fecha.getSeconds();

if (hora < 10) {hora = "0" + hora}
if (minuto < 10) {minuto = "0" + minuto}
if (segundos < 10) {segundos = "0" + segundos}

puntos == ":" ? puntos = " " : puntos = ":";

var ahoraHora = hora +":"+ minuto +""+  puntos  +""+ segundos;

document.getElementById('hora').firstChild.nodeValue =" ";
document.getElementById('hora').firstChild.nodeValue =" "+ahoraHora;
setTimeout('fechaHora()',1000);
} 
/////////////////////////////////////////////////////////////////////////////////////////



//FORMATO MENU///////////////////////////////////////////////////////////////////////////
messages=new Array()
messages[0]="<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td height='2' valign='top' bgcolor='#F4F4F4' class='txtMenu'><img src='../img/comunes/spacer.gif' width='1' height='2'></td></tr><tr><td style='cursor:hand;' bgcolor='#F4F4F4' class='txtMenu' onMouseOver='this.style.background=\"#E8E8E8\"' onMouseOut='this.style.background=\"#F4F4F4\"' onClick='window.location.href=\"junta-directiva-serv.php\"'><img src='../img/comunes/spacer.gif' width='25' height='1'><span id='JD'><a href='junta-directiva-serv.php' class='subMenu'>01.1 JUNTA DIRECTIVA</a></span></td></tr><tr><td height='1' valign='top' bgcolor='#F4F4F4' class='txtMenu'><img src='../img/comunes/spacer.gif' width='1' height='1'></td></tr><tr><td style='cursor:hand;' bgcolor='#F4F4F4' class='txtMenu' onMouseOver='this.style.background=\"#E8E8E8\"' onMouseOut='this.style.background=\"#F4F4F4\"' onClick='window.location.href=\"estatutosI-serv.php\"'><img src='../img/comunes/spacer.gif' width='25' height='1'><a href='estatutosI-serv.php' class='subMenu'>01.2 ESTATUTOS</a></td></tr><tr><td height='1' valign='top' bgcolor='#F4F4F4' class='txtMenu'><img src='../img/comunes/spacer.gif' width='1' height='1'></td></tr><tr><td style='cursor:hand;' bgcolor='#F4F4F4' class='txtMenu' onMouseOver='this.style.background=\"#E8E8E8\";' onMouseOut='this.style.background=\"#F4F4F4\";' onClick='window.location.href=\"directorio-socios-serv.php?letra=A\"'><img src='../img/comunes/spacer.gif' width='25' height='1'><a href='directorio-socios-serv.php?letra=A' class='subMenu'>01.3 DIRECTORIO de SOCIOS</a></td></tr><tr><td height='1' valign='top' bgcolor='#F4F4F4' class='txtMenu'><img src='img/comunes/spacer.gif' width='1' height='1'></td></tr><tr><td style='cursor:hand;' bgcolor='#F4F4F4' class='txtMenu' onMouseOver='this.style.background=\"#E8E8E8\";' onMouseOut='this.style.background=\"#F4F4F4\";' onClick='window.location.href=\"hacerse-socioI-serv.php\"'><img src='../img/comunes/spacer.gif' width='25' height='1'><a href='hacerse-socioI-serv.php' class='subMenu'>01.4 ¿CÓMO HACERSE SOCIO de la SERV?</a></td></tr><tr><td height='6' valign='top' bgcolor='#F4F4F4' class='txtMenu'><img src='../img/comunes/spacer.gif' width='1' height='6'></td></tr><tr><td height='1' valign='top' bgcolor='#FFFFFF' class='txtMenu'><img src='../img/comunes/separadorMenu.gif' width='268' height='1'></td></tr><tr><td height='6' valign='top' bgcolor='#E8E8E8' class='txtMenu'><img src='../img/comunes/spacer.gif' width='1' height='6'></td></tr></table>";

//messages[2]="<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td height='2' valign='top' bgcolor='#F4F4F4' class='txtMenu'><img src='../img/comunes/spacer.gif' width='1' height='2'></td></tr><tr><td style='cursor:hand;' bgcolor='#F4F4F4' class='txtMenu' onMouseOver='this.style.background=\"#E8E8E8\"' onMouseOut='this.style.background=\"#F4F4F4\"' onClick='window.location.href=\"congreso-presentacion-serv.php\"'><img src='../img/comunes/spacer.gif' width='25' height='1'><span id='JD'><a href='congreso-presentacion-serv.php' class='subMenu'>02.1 PRESENTACIÓN</a></span></td></tr><tr><td height='1' valign='top' bgcolor='#F4F4F4' class='txtMenu'><img src='../img/comunes/spacer.gif' width='1' height='1'></td></tr><tr><td style='cursor:hand;' bgcolor='#F4F4F4' class='txtMenu' onMouseOver='this.style.background=\"#E8E8E8\"' onMouseOut='this.style.background=\"#F4F4F4\"' onClick='window.location.href=\"congreso-programa-serv.php\"'><img src='../img/comunes/spacer.gif' width='25' height='1'><a href='congreso-programa-serv.php' class='subMenu'>02.2 PROGRAMA</a></td></tr><tr><td height='1' valign='top' bgcolor='#F4F4F4' class='txtMenu'><img src='../img/comunes/spacer.gif' width='1' height='1'></td></tr><tr><td style='cursor:hand;' bgcolor='#F4F4F4' class='txtMenu' onMouseOver='this.style.background=\"#E8E8E8\";' onMouseOut='this.style.background=\"#F4F4F4\";' onClick='window.location.href=\"congreso-premios-serv.php\"'><img src='../img/comunes/spacer.gif' width='25' height='1'><a href='congreso-premios-serv.php' class='subMenu'>02.3 PREMIOS</a></td></tr><tr><td height='1' valign='top' bgcolor='#F4F4F4' class='txtMenu'><img src='../img/comunes/spacer.gif' width='1' height='1'></td></tr><tr><td style='cursor:hand;' bgcolor='#F4F4F4' class='txtMenu' onMouseOver='this.style.background=\"#E8E8E8\";' onMouseOut='this.style.background=\"#F4F4F4\";' onClick='window.location.href=\"congreso-expositores-serv.php\"'><img src='../img/comunes/spacer.gif' width='25' height='1'><a href='congreso-expositores-serv.php' class='subMenu'>02.4 EXPOSITORES</a></td></tr><tr><td height='1' valign='top' bgcolor='#F4F4F4' class='txtMenu'><img src='../img/comunes/spacer.gif' width='1' height='1'></td></tr><tr><td style='cursor:hand;' bgcolor='#F4F4F4' class='txtMenu' onMouseOver='this.style.background=\"#E8E8E8\";' onMouseOut='this.style.background=\"#F4F4F4\";' onClick='window.location.href=\"congreso-inscripcion-serv.php\"'><img src='../img/comunes/spacer.gif' width='25' height='1'><a href='congreso-inscripcion-serv.php' class='subMenu'>02.5 INSCRIPCIÓN</a></td></tr><tr><td height='1' valign='top' bgcolor='#F4F4F4' class='txtMenu'><img src='../img/comunes/spacer.gif' width='1' height='1'></td></tr><tr><td style='cursor:hand;' bgcolor='#F4F4F4' class='txtMenu' onMouseOver='this.style.background=\"#E8E8E8\";' onMouseOut='this.style.background=\"#F4F4F4\";' onClick='window.location.href=\"congreso-transporteAlojamiento-serv.php\"'><img src='../img/comunes/spacer.gif' width='25' height='1'><a href='congreso-transporteAlojamiento-serv.php' class='subMenu'>02.6 TRANSPORTE y ALOJAMIENTO</a></td></tr><tr><td height='6' valign='top' bgcolor='#F4F4F4' class='txtMenu'><img src='../img/comunes/spacer.gif' width='1' height='6'></td></tr><tr><td height='1' valign='top' bgcolor='#FFFFFF' class='txtMenu'><img src='../img/comunes/separadorMenu.gif' width='268' height='1'></td></tr><tr><td height='6' valign='top' bgcolor='#E8E8E8' class='txtMenu'><img src='../img/comunes/spacer.gif' width='1' height='6'></td></tr></table>";

messages[2]="<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td height='2' valign='top' bgcolor='#F4F4F4' class='txtMenu'><img src='../img/comunes/spacer.gif' width='1' height='2'></td></tr><tr><td style='cursor:hand;' bgcolor='#F4F4F4' class='txtMenu' onMouseOver='this.style.background=\"#E8E8E8\"' onMouseOut='this.style.background=\"#F4F4F4\"' onClick='window.location.href=\"congreso-presentacion-serv.php\"'><img src='../img/comunes/spacer.gif' width='25' height='1'><span id='JD'><a href='congreso-presentacion-serv.php' class='subMenu'>02.1 PRESENTACIÓN</a></span></td></tr><tr><td height='1' valign='top' bgcolor='#F4F4F4' class='txtMenu'><img src='../img/comunes/spacer.gif' width='1' height='1'></td></tr><tr><td style='cursor:hand;' bgcolor='#F4F4F4' class='txtMenu' onMouseOver='this.style.background=\"#E8E8E8\"' onMouseOut='this.style.background=\"#F4F4F4\"' onClick='window.location.href=\"congreso-programa-serv.php\"'><img src='../img/comunes/spacer.gif' width='25' height='1'><a href='congreso-programa-serv.php' class='subMenu'>02.2 PROGRAMA</a></td></tr><tr><td height='1' valign='top' bgcolor='#F4F4F4' class='txtMenu'><img src='../img/comunes/spacer.gif' width='1' height='1'></td></tr><tr><td style='cursor:hand;' bgcolor='#F4F4F4' class='txtMenu' onMouseOver='this.style.background=\"#E8E8E8\"' onMouseOut='this.style.background=\"#F4F4F4\"' onClick='window.location.href=\"congreso-premios-serv.php\"'><img src='../img/comunes/spacer.gif' width='25' height='1'><a href='congreso-premios-serv.php' class='subMenu'>02.3 PREMIOS</a></td></tr><tr><td height='1' valign='top' bgcolor='#F4F4F4' class='txtMenu'><img src='../img/comunes/spacer.gif' width='1' height='1'></td></tr><tr><td style='cursor:hand;' bgcolor='#F4F4F4' class='txtMenu' onMouseOver='this.style.background=\"#E8E8E8\";' onMouseOut='this.style.background=\"#F4F4F4\";' onClick='window.location.href=\"congreso-expositores-serv.php\"'><img src='../img/comunes/spacer.gif' width='25' height='1'><a href='congreso-expositores-serv.php' class='subMenu'>02.4 EXPOSITORES</a></td></tr><tr><td height='1' valign='top' bgcolor='#F4F4F4' class='txtMenu'><img src='../img/comunes/spacer.gif' width='1' height='1'></td></tr><tr><td style='cursor:hand;' bgcolor='#F4F4F4' class='txtMenu' onMouseOver='this.style.background=\"#E8E8E8\";' onMouseOut='this.style.background=\"#F4F4F4\";' onClick='window.location.href=\"congreso-inscripcion-serv.php\"'><img src='../img/comunes/spacer.gif' width='25' height='1'><a href='congreso-inscripcion-serv.php' class='subMenu'>02.5 INSCRIPCIÓN</a></td></tr><tr><td height='1' valign='top' bgcolor='#F4F4F4' class='txtMenu'><img src='../img/comunes/spacer.gif' width='1' height='1'></td></tr><tr><td style='cursor:hand;' bgcolor='#F4F4F4' class='txtMenu' onMouseOver='this.style.background=\"#E8E8E8\";' onMouseOut='this.style.background=\"#F4F4F4\";' onClick='window.location.href=\"congreso-transporteAlojamiento-serv.php\"'><img src='../img/comunes/spacer.gif' width='25' height='1'><a href='congreso-transporteAlojamiento-serv.php' class='subMenu'>02.6 TRANSPORTE y ALOJAMIENTO</a></td></tr><tr><td height='6' valign='top' bgcolor='#F4F4F4' class='txtMenu'><img src='../img/comunes/spacer.gif' width='1' height='6'></td></tr><tr><td height='1' valign='top' bgcolor='#FFFFFF' class='txtMenu'><img src='../img/comunes/separadorMenu.gif' width='268' height='1'></td></tr><tr><td height='6' valign='top' bgcolor='#E8E8E8' class='txtMenu'><img src='../img/comunes/spacer.gif' width='1' height='6'></td></tr></table>";
messages[3]="<img src='../img/comunes/spacer.gif' width='1'>";


var Menu1 = 0; var Menu2 = 0; var Menu3 = 0; var Menu4 = 0; var Menu5 = 0; var Menu6 = 0; var Menu7 = 0; var Menu8 = 0; 

function abrir(subMenu){	
	if (subMenu == 1){
		if (Menu1 != 1){
		document.getElementById('Menu_1').style.background='#959595';
		document.getElementById('txt1').className = 'txtMenu_over';
		document.getElementById('txt1-2').innerHTML=messages[0];
		Menu1 = 1;
		}
		else{
		document.getElementById('txt1').className = 'txtMenu';
		document.getElementById('Menu_1').style.background="";
		document.getElementById('txt1-2').innerHTML=messages[3];
		Menu1 = 0;
		}
	}
	if (subMenu == 2){
		if (Menu2 != 1){
		document.getElementById('Menu_2').style.background='#959595';
		document.getElementById('txt2').className = 'txtMenu_over';
		document.getElementById('txt2-2').innerHTML=messages[2];
		Menu2 = 1;
		}
		else{
		document.getElementById('txt2').className = 'txtMenu';
		document.getElementById('Menu_2').style.background="";
		document.getElementById('txt2-2').innerHTML=messages[3];
		Menu2 = 0;
		}
	}
}

function formato(celda1,texto,evento){
var submenu; var img;

if (celda1=="Menu_1"){submenu=Menu1;} if (celda1=="Menu_2"){submenu=Menu2;}if (celda1=="Menu_3"){submenu=Menu3;}if (celda1=="Menu_4"){submenu=Menu4;} if (celda1=="Menu_5"){submenu=Menu5;} if (celda1=="Menu_6"){submenu=Menu6;} if (celda1=="Menu_7"){submenu=Menu7;} 

		//si es over
		if (evento!="out"){			
		document.getElementById(celda1).style.background='#959595';
		document.getElementById(texto).className = 'txtMenu_over';
		}
		//si es out
		else{
			if (submenu != 1){ 
			document.getElementById(celda1).style.background="";
			document.getElementById(texto).className = 'txtMenu';
			}
			else{
			document.getElementById(celda1).style.background='#959595';
			document.getElementById(texto).className = 'txtMenu_over';
			}			
		}
}
/////////////////////////////////////////////////////////////////////////////////////////


//posicion Capa Política de Privacidad///////////////////////////////////////////////////
function posicionPoliticaPortada(){
var altura = document.body.offsetHeight;
document.getElementById('politicaPrivacidad').style.top=altura-292+'px';
}

function posicionPolitica(){
var altura = document.body.offsetHeight;
document.getElementById('politicaPrivacidad').style.top=altura-292+'px';
document.getElementById('politicaPrivacidad').innerHTML='<table width="632" border="0" align="center" cellpadding="0" cellspacing="0"><tr><td width="13" height="13"><img src="../img/comunes/esqSupIzqda.gif" width="13" height="13"></td><td width="606" height="13" colspan="3" bgcolor="#E5E5E5"><img src="../img/comunes/spacer.gif" width="606" height="13"></td><td width="13" height="13"><img src="../img/comunes/esqSupDcha.gif" width="13" height="13"></td></tr><tr><td rowspan="2" bgcolor="#E5E5E5"><img src="../img/comunes/spacer.gif" width="13" height="1"></td><td width="20" height="20" bgcolor="#FFFFFF"><img src="../img/comunes/esqSupIzqdaB.gif" width="20" height="20"></td><td width="566" height="20" align="right" valign="middle" bgcolor="#FFFFFF"><a href="javascript:ApagaCapa(\'politicaPrivacidad\');" class="normal">cerrar</a></td><td width="20" height="20" bgcolor="#FFFFFF"><img src="../img/comunes/esqSupDchaB_cerrar.gif" width="20" height="20"></td><td rowspan="2" bgcolor="#E5E5E5"><img src="../img/comunes/spacer.gif" width="13" height="1"></td></tr><tr><td bgcolor="#FFFFFF">&nbsp;</td><td width="566" valign="top" bgcolor="#FFFFFF"><table width="566" border="0" cellspacing="0" cellpadding="0"><tr><td width="7" height="1" colspan="2" bgcolor="#D6D6D6"><img src="../img/comunes/esqSupIzqdaG.gif" width="7" height="1"></td><td width="552" height="1" bgcolor="#D6D6D6"><img src="../img/comunes/spacer.gif" width="552" height="1"></td><td width="7" height="1" colspan="2" bgcolor="#D6D6D6"><img src="../img/comunes/esqSupDchaG.gif" width="7" height="1"></td></tr><tr><td height="5" colspan="2"><img src="../img/comunes/esqSupIzqdaG2.gif" width="7" height="5"></td><td height="5"><img src="../img/comunes/spacer.gif" width="552" height="5"></td><td height="5" colspan="2"><img src="../img/comunes/esqSupDchaG2_sinsombra.gif" width="7" height="5"></td></tr><tr><td width="1" bgcolor="#D6D6D6"><img src="../img/comunes/spacer.gif" width="1" height="1"></td><td width="6"><img src="../img/comunes/spacer.gif" width="6" height="1"></td><td valign="top"><table width="94%"  border="0" align="center" cellpadding="0" cellspacing="0"><tr><td>&nbsp;</td></tr><tr><td class="txtJustificado txt10">La informaci&oacute;n que nos facilitar&aacute; quedar&aacute; incorporada en un fichero automatizado de datos del que es responsable la <span class="txtAzul">Sociedad Espa&ntilde;ola de Retina y V&iacute;treo</span>. Dicho fichero se usar&aacute; para poder enviarle informaci&oacute;n sobre las actividades desarrollas por nuestra Sociedad y compa&ntilde;&iacute;as comerciales que colaboren con la Sociedad.<br><br>De conformidad con lo establecido en la Ley Org&aacute;nica 15/1999, de 13 de diciembre, con el suministro de sus datos, entendemos que Usted nos da su consentimiento para el tratamiento de los datos personales suministrados exclusivamente para los fines mencionados.<br><br>Usted podr&aacute; acceder, rectificar, cancelar los datos aportados y ejercer su derecho de oposici&oacute;n enviando una carta por correo certificado a Sociedad Espa&ntilde;ola de Retina y V&iacute;treo - Secretar&iacute;a  C/ Osa Mayor, nº 152 B - 28023 Aravaca - Madrid, Espa&ntilde;a.<br><br>La Sociedad Espa&ntilde;ola de Retina y V&iacute;treo le agradece el inter&eacute;s mostrado en nuestra Sociedad.</td></tr><tr><td class="txtJustificado">&nbsp;</td></tr></table></td><td width="6"><img src="../img/comunes/spacer.gif" width="6" height="1"></td><td width="1" bgcolor="#D6D6D6"><img src="../img/comunes/spacer.gif" width="1" height="1"></td></tr></table></td><td width="20" bgcolor="#FFFFFF">&nbsp;</td></tr></table><table width="632"  border="0" align="center" cellpadding="0" cellspacing="0"><tr><td width="13" rowspan="4" bgcolor="#E5E5E5"><img src="../img/comunes/spacer.gif" width="13" height="1"></td><td width="20" rowspan="3" bgcolor="#FFFFFF"><img src="../img/comunes/spacer.gif" width="20" height="1"></td><td width="1" bgcolor="#D6D6D6"><img src="../img/comunes/spacer.gif" width="1" height="1"></td><td width="6" bgcolor="#FFFFFF"><img src="../img/comunes/spacer.gif" width="6" height="1"></td><td width="852" bgcolor="#FFFFFF"><img src="../img/comunes/spacer.gif" width="1" height="1"></td><td width="6" bgcolor="#FFFFFF"><img src="../img/comunes/spacer.gif" width="6" height="1"></td><td width="1" bgcolor="#D6D6D6"><img src="../img/comunes/spacer.gif" width="1" height="1"></td><td width="20" rowspan="3" bgcolor="#FFFFFF"><img src="../img/comunes/spacer.gif" width="20" height="1"></td><td width="13" rowspan="4" bgcolor="#E5E5E5"><img src="../img/comunes/spacer.gif" width="13" height="1"></td></tr><tr><td width="7" height="5" colspan="2" bgcolor="#D6D6D6"><img src="../img/comunes/esqInfIzqdaG2.gif" width="7" height="5"></td><td height="5" bgcolor="#FFFFFF"><img src="../img/comunes/spacer.gif" width="553" height="5"></td><td height="5" colspan="2" bgcolor="#D6D6D6" width="7"><img src="../img/comunes/esqInfDchaG2.gif" width="7" height="5"></td></tr><tr><td height="1" colspan="2" bgcolor="#D6D6D6" width="7"><img src="../img/comunes/esqInfIzqdaG.gif" width="7" height="1"></td><td width="852" height="1" bgcolor="#D6D6D6"><img src="../img/comunes/spacer.gif" width="1" height="1"></td><td height="1" colspan="2" bgcolor="#D6D6D6" width="7"><img src="../img/comunes/esqInfDchaG.gif" width="7" height="1"></td></tr><tr><td width="20" bgcolor="#FFFFFF"><img src="../img/comunes/esqInfIzqdaB.gif" width="20" height="20"></td><td width="866" colspan="5" align="right" valign="top" bgcolor="#FFFFFF"><table width="234"  border="0" cellspacing="0" cellpadding="0"><tr><td width="133" height="15" align="right" valign="bottom" id="copy">&nbsp;</td><td width="1" valign="top"><img src="../img/comunes/spacer.gif" width="1" height="1"><img src="../img/comunes/rayaSup.gif" width="1" height="15"></td><td width="150" align="center" valign="bottom" id="copy">Pol&iacute;tica de Privacidad</td></tr></table></td><td width="20" bgcolor="#FFFFFF"><img src="../img/comunes/esqInfDchaB.gif" width="20" height="20"></td></tr><tr><td width="13" height="13"><img src="../img/comunes/esqInfIzqda.gif" width="13" height="13"></td><td width="906" height="13" colspan="7" bgcolor="#E5E5E5"><img src="../img/comunes/spacer.gif" width="1" height="13"></td><td width="13" height="13"><img src="../img/comunes/esqInfDcha.gif" width="13" height="13"></td></tr></table>';
}
/////////////////////////////////////////////////////////////////////////////////////////

//Visibilidad de Capas ///////////////////////////////////////////////////////////////////
var nc = (document.layers) ? true:false
var ie = (document.all) ? true:false
var n6 = (document.getElementById) ? true:false
  
function ApareceCapa(capa){
	if(ie)
		document.all[capa].style.visibility="visible";
	else if(nc)
		document.layers[capa].visibility="show";
	else if(n6)
		document.getElementById(capa).style.visibility="visible";
}

function ApagaCapa(capa){
	if(ie)
		document.all[capa].style.visibility="hidden";
	else if(nc)
		document.layers[capa].visibility="hide";
	else if(n6)
		document.getElementById(capa).style.visibility="hidden";
}
//////////////////////////////////////////////////////////////////////////////////////////

//Macromedia/////////////////////////////////////////////////////////////////////////////
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//////////////////////////////////////////////////////////////////////////////////////////


//para ventana de RECORDATORIO de CONTRASEÑA//////////////////////////////////////////////
var alto; var ancho;

function resizeCapaFondo(){
var alturaPagina=document.body.scrollHeight+29;
var anchoPagina=document.body.scrollWidth+20;
document.getElementById('fade').style.height=alturaPagina+ "px";
document.getElementById('fade').style.width=anchoPagina+ "px";
document.getElementById('fade').style.display='block';

alto=276;
ancho=464;

document.getElementById('apertura').style.display='block';
document.getElementById('espera').style.display='block';
cambioAlto();
cambioAncho();
//ocultamos para la página "hacerse-socioII-serv.php", las listas para que no queden sobre la capa
listasHacerseSocio("cerrar");
}

function cambioAlto(){
	if (alto>=176){
	alto-=5;
	document.getElementById('apertura').style.height=alto+ "px";
	document.getElementById('apertura').style.top="50%";
	/*Restamos la mitad de alto para centrarlo verticalmente*/
	var mitad=alto/2;
	document.getElementById('apertura').style.marginTop= "-"+mitad+"px";
	setTimeout("cambioAlto()",1);
	}
	else{
	document.getElementById('light').style.display='block';
	}
}
function cambioAncho(){
	if (ancho>=364){
	ancho-=10;
	document.getElementById('apertura').style.width=ancho+ "px";
	document.getElementById('apertura').style.left="50%";
	/*Restamos la mitad de ancho para centrarlo horizontalmente*/
	var mitad2=ancho/2;
	document.getElementById('apertura').style.marginLeft= "-"+mitad2+"px";
	setTimeout("cambioAncho()",1);
	}
}

function listasHacerseSocio(accion){
//obtenemos los directorios que hay después del dominio
var url =window.location.pathname;
//partimos la cadena en los fragmentos separados por "/"
var cadenasArray= url.split("/");
//obtenemos el nombre de la pagina donde nos encontramos (el último fragmento del array)
var urlActual=cadenasArray[cadenasArray.length-1];
	//si estamos en "hacerse-socioII-serv.php" ocultamos las listas
	if (urlActual=="hacerse-socioII-serv.php"){
		if (accion=="cerrar"){
		document.mailtoForm.tratamiento.style.visibility='hidden';
		document.mailtoForm.dia.style.visibility='hidden';
		document.mailtoForm.mes.style.visibility='hidden';
		document.mailtoForm.anio.style.visibility='hidden';
		document.mailtoForm.pais.style.visibility='hidden';
		//document.mailtoForm.centro.style.visibility='hidden';
		}
		else{
		document.mailtoForm.tratamiento.style.visibility='visible';
		document.mailtoForm.dia.style.visibility='visible';
		document.mailtoForm.mes.style.visibility='visible';
		document.mailtoForm.anio.style.visibility='visible';
		document.mailtoForm.pais.style.visibility='visible';
		//document.mailtoForm.centro.style.visibility='visible';
		}
	}
	//si estamos en "directorio-socios-serv_localidad.php" ocultamos las listas
	if (urlActual=="directorio-socios-serv_localidad.php"){
		if (accion=="cerrar"){
		document.directorioForm.provincias.style.visibility='hidden';
		document.directorioForm.paises.style.visibility='hidden';
		}
		else{
		document.directorioForm.provincias.style.visibility='visible';
		document.directorioForm.paises.style.visibility='visible';
		}
	}
}


function cerrarRecordatorio(){
//mostramos para la página "hacerse-socioII-serv.php", las listas que habíamos ocultado al abrir recordatorio
listasHacerseSocio("abrir");

//ponemos la capa con movimiento a la posición y al tamaño inicial
//para que si se vuelve a abrir tenga el mismo efecto de movimiento
var altura=276;
document.getElementById('apertura').style.height=altura+ "px";
var x=altura/2;
document.getElementById('apertura').style.marginTop= "-"+x+ "px";
var anchura=464;
document.getElementById('apertura').style.width=anchura+ "px";
var y =anchura/2;
document.getElementById('apertura').style.marginLeft= "-"+y+"px";

//ocultamos todas las capas de recordatorio
document.getElementById('light').style.display='none';
document.getElementById('fade').style.display='none'; 
document.getElementById('apertura').style.display='none';
document.getElementById('espera').style.display='none';
document.getElementById('errorRecordatorio').innerHTML='';
}
/////////////////////////////////////////////////////////////////////////////////////////



//para ROTACIÓN de BANNERS  ////////////////////////////////////////////////////////////
function rotacionInt(){
setInterval("rotacionBannersInt();",4000);
}

var numeroBannersInt=9;
//var b1Int=6; var b2Int=1; var b3Int=2; var b4Int=3; var b5Int=4; var b6Int=5;
var b1Int=9; var b2Int=1; var b3Int=2; var b4Int=3; var b5Int=4; var b6Int=5; b7Int=6; b8Int=7; b9Int=8;

function rotacionBannersInt(){
bannersRotInt=new Array()
bannersRotInt[1]='<a href="http://www.alcon.es/" target="_blank"><img src="../img/banners/alconG.jpg" alt="Acceso a web de ALCON" width="122" height="112" border="0"></a>';
bannersRotInt[2]='<a href="http://www.allergan.com/" target="_blank"><img src="../img/banners/allerganG.jpg" alt="Acceso a web de ALLERGAN" width="122" height="112" border="0"></a>';
bannersRotInt[3]='<a href="http://www.angelinifarmaceutica.es/" target="_blank"><img src="../img/banners/angeliniG.jpg" alt="Acceso a web de ANGELINI" width="122" height="112" border="0"></a>';
bannersRotInt[4]='<a href="http://www.bauschsurgical.com" target="_blank"><img src="../img/banners/Bausch_LombG.jpg" alt="Acceso a web de BAUSCH & LOMB" width="122" height="112" border="0"></a>';
bannersRotInt[5]='<a href="http://www.medicalmix.com" target="_blank"><img src="../img/banners/medicalMixG.jpg" alt="Acceso a web de Medical Mix" width="122" height="112" border="0"></a>';
bannersRotInt[6]='<a href="http://www.oftasalud.com" target="_blank"><img src="../img/banners/novartisG.jpg" alt="Acceso a www.oftasalud.com" width="122" height="112" border="0"></a>';
bannersRotInt[7]='<a href="http://www.pfizer.es/" target="_blank"><img src="../img/banners/pfizerG.jpg" alt="Acceso a web de PFIZER" width="122" height="112" border="0"></a>';
bannersRotInt[8]='<a href="http://www.topcon.eu/" target="_blank"><img src="../img/banners/topconG.jpg" alt="Acceso a web de TOPCON" width="122" height="112" border="0"></a>';
bannersRotInt[9]='<a href="http://www.zeiss.es/" target="_blank"><img src="../img/banners/zeissG.jpg" alt="Acceso a web de ZEISS" width="122" height="112" border="0"></a>';

document.getElementById("banner1Int").innerHTML=bannersRotInt[b1Int];
document.getElementById("banner2Int").innerHTML=bannersRotInt[b2Int];
document.getElementById("banner3Int").innerHTML=bannersRotInt[b3Int];
document.getElementById("banner4Int").innerHTML=bannersRotInt[b4Int];
document.getElementById("banner5Int").innerHTML=bannersRotInt[b5Int];
document.getElementById("banner6Int").innerHTML=bannersRotInt[b6Int];		
document.getElementById("banner7Int").innerHTML=bannersRotInt[b7Int];		
document.getElementById("banner8Int").innerHTML=bannersRotInt[b8Int];	
document.getElementById("banner9Int").innerHTML=bannersRotInt[b9Int];		


	if ((b1Int==1)? b1Int=numeroBannersInt : b1Int=b1Int-1);
	if ((b2Int==1)? b2Int=numeroBannersInt : b2Int=b2Int-1);
	if ((b3Int==1)? b3Int=numeroBannersInt : b3Int=b3Int-1);
	if ((b4Int==1)? b4Int=numeroBannersInt : b4Int=b4Int-1);
	if ((b5Int==1)? b5Int=numeroBannersInt : b5Int=b5Int-1);
	if ((b6Int==1)? b6Int=numeroBannersInt : b6Int=b6Int-1);
	if ((b7Int==1)? b7Int=numeroBannersInt : b7Int=b7Int-1);
	if ((b8Int==1)? b8Int=numeroBannersInt : b8Int=b8Int-1);
	if ((b9Int==1)? b9Int=numeroBannersInt : b9Int=b9Int-1);
}
//////////////////////////////////////////////////////////////////////////////////////////
