//IMPRIMIR

function getFront(mainStr,searchStr)
{
	foundOffset = mainStr.indexOf(searchStr)
	if (foundOffset == -1)
	{
		return null
	}
	return mainStr.substring(0,foundOffset)
}

function getEnd(mainStr,searchStr)
{
	foundOffset = mainStr.indexOf(searchStr);
	if (foundOffset == -1)
	{
		return null
	}
	return mainStr.substring(foundOffset+searchStr.length,mainStr.length)
}

function imprimir()
{
	var texto=document.getElementById("contenido").innerHTML;
	var aux=texto;
	//alert(texto.indexOf('<OBJECT'));
	if (texto.indexOf('<OBJECT') != -1)
	{
		aux=getFront(texto,'<OBJECT') + getEnd(texto,'</OBJECT>');
		//alert(aux);
	}
	ventana=window.open("imprimir.html","ventana","width=972px, height=350px, scrollbars=yes");
	ventana.document.open();
	ventana.document.write('<html><head><title>IRE Rayos X<\/title><\/head><body style=\"font-size: 10pt; color: #666666; font-family: arial; background-color=white; width: 972px; height: 270px; border-right: #DBDBDB 1px solid; border-left: #DBDBDB 1px solid; border-top: none; border-bottom: none; margin: 0px; padding: 15px;\">');
	ventana.document.write(aux);
	ventana.document.close();
	ventana.print();
}

//AGREGAR A FAVORITOS
//Función que Agrega nuestra página de inicio a los favoritos.
function agregar(){
   if ((navigator.appName=="Microsoft Internet Explorer") && (parseInt(navigator.appVersion)>=4)) {
      var url="http://www.irerayosx.com";
      var titulo="IRE Rayos X";
      window.external.AddFavorite(url,titulo);
   }
   else {
      if(navigator.appName == "Netscape")
         alert ("Presione Crtl+D para agregar este sitio en sus Bookmarks");
   }
}


//PAGINA DE INICIO
//Función que Muestra las Opciones del Menu en la Página Principal.
function ShowMenu(opcion)
{	
	switch(opcion)
	{
		case 'Op1':
			divMenuOp1.style.left=ControlReferenciaOp1.style.left;
			divMenuOp1.style.top=ControlReferenciaOp1.style.top;
			divMenuOp1.style.visibility="visible";
			divMenuOp2.style.visibility="hidden";
			divMenuOp3.style.visibility="hidden";
			divMenuOp4.style.visibility="hidden";
			divMenuOp5.style.visibility="hidden";
			imgFondo.src="Imagenes/fondoOp1.jpg";
			break;
		case 'Op2':
			divMenuOp2.style.left=ControlReferenciaOp2.style.left;
			divMenuOp2.style.top=ControlReferenciaOp2.style.top;
			divMenuOp2.style.visibility="visible";
			divMenuOp1.style.visibility="hidden";
			divMenuOp3.style.visibility="hidden";
			divMenuOp4.style.visibility="hidden";
			divMenuOp5.style.visibility="hidden";
			imgFondo.src="Imagenes/fondoOp2.jpg";
			break;
		case 'Op3':
			divMenuOp3.style.left=ControlReferenciaOp3.style.left;
			divMenuOp3.style.top=ControlReferenciaOp3.style.top;
			divMenuOp3.style.visibility="visible";
			divMenuOp1.style.visibility="hidden";
			divMenuOp2.style.visibility="hidden";
			divMenuOp4.style.visibility="hidden";
			divMenuOp5.style.visibility="hidden";
			imgFondo.src="Imagenes/fondoOp3.jpg";
			break;
		case 'Op4':
			divMenuOp4.style.left=ControlReferenciaOp4.style.left;
			divMenuOp4.style.top=ControlReferenciaOp4.style.top;
			divMenuOp4.style.visibility="visible";
			divMenuOp1.style.visibility="hidden";
			divMenuOp2.style.visibility="hidden";
			divMenuOp3.style.visibility="hidden";
			divMenuOp5.style.visibility="hidden";
			imgFondo.src="Imagenes/fondoOp4.jpg";
			break;
		case 'Op5':
			divMenuOp5.style.left=ControlReferenciaOp5.style.left;
			divMenuOp5.style.top=ControlReferenciaOp5.style.top;
			divMenuOp5.style.visibility="visible";
			divMenuOp1.style.visibility="hidden";
			divMenuOp2.style.visibility="hidden";
			divMenuOp3.style.visibility="hidden";
			divMenuOp4.style.visibility="hidden";
			imgFondo.src="Imagenes/fondoOp5.jpg";
			break;
	}
}

//PAGINAS DE CONTENIDO
//Función que marca las Opciones y los Apartados del Menu en las Páginas de Contenido.
function Show(opcion)
{	
	switch(opcion)
	{
		
		//OPCIONES

		case 'OpInicio':
			AOpInicio.style.fontWeight ="bold";
			LineaOpInicio.style.backgroundColor="white";
			
			break;
		case 'OpCompania':
			AOpCompania.style.fontWeight ="bold";
			LineaOpCompania.style.backgroundColor="white";
			
			break;
		case 'OpRX':
			AOpRX.style.fontWeight ="bold";
			LineaOpRX.style.backgroundColor="white";
			
			break;
		case 'OpHD':
			AOpHD.style.fontWeight ="bold";
			LineaOpHD.style.backgroundColor="white";
			
			break;
		case 'OpAT':
			AOpAT.style.fontWeight ="bold";
			LineaOpAT.style.backgroundColor="white";
			
			break;
		case 'OpOtros':
			AOpOtros.style.fontWeight ="bold";
			LineaOpOtros.style.backgroundColor="white";
			
			break;
		
		//APARTADOS DE LA COMPAÑIA

		case 'ApOrganizacion':
			AApOrganizacion.style.fontWeight ="bold";
			AApOrganizacion.style.color ="black";
			LineaApOrganizacion.style.backgroundColor="black";
			break;
		case 'ApConozcanos':
			AApConozcanos.style.fontWeight ="bold";
			AApConozcanos.style.color ="black";
			LineaApConozcanos.style.backgroundColor="black";
			break;
		case 'ApContacto':
			AApContacto.style.fontWeight ="bold";
			AApContacto.style.color ="black";
			LineaApContacto.style.backgroundColor="black";
			break;

		//APARTADOS DE RX

		case 'ApEquiposRX':
			AApEquiposRX.style.fontWeight ="bold";
			AApEquiposRX.style.color ="black";
			LineaApEquiposRX.style.backgroundColor="black";
			break;
		case 'ApFormRX':
			AApFormRX.style.fontWeight ="bold";
			AApFormRX.style.color ="black";
			LineaApFormRX.style.backgroundColor="black";
			break;

		//APARTADOS DE HOSPITAL DIGITAL

		case 'ApSolucionesHD':
			AApSolucionesHD.style.fontWeight ="bold";
			AApSolucionesHD.style.color ="black";
			LineaApSolucionesHD.style.backgroundColor="black";
			break;
		case 'ApFormHD':
			AApFormHD.style.fontWeight ="bold";
			AApFormHD.style.color ="black";
			LineaApFormHD.style.backgroundColor="black";
			break;

		//APARTADOS DE ALTA TECNOLOGIA

		case 'ApEquiposAT':
			AApEquiposAT.style.fontWeight ="bold";
			AApEquiposAT.style.color ="black";
			LineaApEquiposAT.style.backgroundColor="black";
			break;
		case 'ApFormAT':
			AApFormAT.style.fontWeight ="bold";
			AApFormAT.style.color ="black";
			LineaApFormAT.style.backgroundColor="black";
			break;

		//APARTADOS DE OTROS

		case 'ApEnlaces':
			AApEnlaces.style.fontWeight ="bold";
			AApEnlaces.style.color ="black";
			LineaApEnlaces.style.backgroundColor="black";
			break;
		case 'ApAgregar':
			AApAgregar.style.fontWeight ="bold";
			AApAgregar.style.color ="black";
			LineaApAgregar.style.backgroundColor="black";
			break;

	}
}

//Función que configura la imagen de la cabecera, las opciones y los apartados correspondientes
//en las Páginas de Contenido.
function IniMenu()
{
	LogoArriba();
	Opciones();
	Apartados();
}

//Función que muestra marcada la opción que corresponde en las Páginas de Contenido.
function Opciones()
{
	var rutaAbsoluta = self.location.href;
	var posicionUltimaBarra = rutaAbsoluta.lastIndexOf("/");
	var rutaRelativa = rutaAbsoluta.substring( posicionUltimaBarra + "/".length , rutaAbsoluta.length );
	switch(rutaRelativa)
	{
		//La compañia
		case 'conozcanos.html':
		case 'organizacion.html':
		case 'contacto.html':

			//Desmarcamos todas las Opciones
			AOpCompania.style.fontWeight ="normal";
			LineaOpCompania.style.backgroundColor="black";
			AOpRX.style.fontWeight ="normal";
			LineaOpRX.style.backgroundColor="black";
			AOpHD.style.fontWeight ="normal";
			LineaOpHD.style.backgroundColor="black";
			AOpAT.style.fontWeight ="normal";
			LineaOpAT.style.backgroundColor="black";
			AOpOtros.style.fontWeight ="normal";
			LineaOpOtros.style.backgroundColor="black";
			AOpInicio.style.fontWeight ="normal";
			LineaOpInicio.style.backgroundColor="black";

			//Marcamos la opción de "La compañia"
			AOpCompania.style.fontWeight ="bold";
			LineaOpCompania.style.backgroundColor="white";

			break;
		//RX
		case 'RX.html':
		case 'equiposportatilesrx.html':
		case 'arcosenc.html':
		case 'salarxgeneral.html':
		case 'salarxDR.html':
		case 'teleanalogica.html':
		case 'teledigital.html':
		case 'teledigitalintesif.html':
		case 'mamoanalogicos.html':
		case 'mamodigitales.html':
		case 'ortopantomografos.html':
		case 'tacdental.html':
		case 'eqmamotomo.html':
		case 'formRX.html':

			//Desmarcamos todas las Opciones
			AOpCompania.style.fontWeight ="normal";
			LineaOpCompania.style.backgroundColor="black";
			AOpRX.style.fontWeight ="normal";
			LineaOpRX.style.backgroundColor="black";
			AOpHD.style.fontWeight ="normal";
			LineaOpHD.style.backgroundColor="black";
			AOpAT.style.fontWeight ="normal";
			LineaOpAT.style.backgroundColor="black";
			AOpOtros.style.fontWeight ="normal";
			LineaOpOtros.style.backgroundColor="black";
			AOpInicio.style.fontWeight ="normal";
			LineaOpInicio.style.backgroundColor="black";

			//Marcamos la opción de "RX"
			AOpRX.style.fontWeight ="bold";
			LineaOpRX.style.backgroundColor="white";

			break;
		//HD
		case 'HD.html':
		case 'ris.html':
		case 'pacs.html':
		case 'mammo.html':
		case 'radvision.html':
		case 'web.html':
		case 'formHD.html':

			//Desmarcamos todas las Opciones
			AOpCompania.style.fontWeight ="normal";
			LineaOpCompania.style.backgroundColor="black";
			AOpRX.style.fontWeight ="normal";
			LineaOpRX.style.backgroundColor="black";
			AOpHD.style.fontWeight ="normal";
			LineaOpHD.style.backgroundColor="black";
			AOpAT.style.fontWeight ="normal";
			LineaOpAT.style.backgroundColor="black";
			AOpOtros.style.fontWeight ="normal";
			LineaOpOtros.style.backgroundColor="black";
			AOpInicio.style.fontWeight ="normal";
			LineaOpInicio.style.backgroundColor="black";

			//Marcamos la opción de "Hospital Digital"
			AOpHD.style.fontWeight ="bold";
			LineaOpHD.style.backgroundColor="white";

			break;
		//AT
		case 'AT.html':
		case 'neuviz.html':
		case 'superstar.html':
		case 'aurora.html':
		case 'formAT.html':

			//Desmarcamos todas las Opciones
			AOpCompania.style.fontWeight ="normal";
			LineaOpCompania.style.backgroundColor="black";
			AOpRX.style.fontWeight ="normal";
			LineaOpRX.style.backgroundColor="black";
			AOpHD.style.fontWeight ="normal";
			LineaOpHD.style.backgroundColor="black";
			AOpAT.style.fontWeight ="normal";
			LineaOpAT.style.backgroundColor="black";
			AOpOtros.style.fontWeight ="normal";
			LineaOpOtros.style.backgroundColor="black";
			AOpInicio.style.fontWeight ="normal";
			LineaOpInicio.style.backgroundColor="black";

			//Marcamos la opción de "AT"
			AOpAT.style.fontWeight ="bold";
			LineaOpAT.style.backgroundColor="white";

			break;
		//Otros
		case 'enlaces.html':

			//Desmarcamos todas las Opciones
			AOpCompania.style.fontWeight ="normal";
			LineaOpCompania.style.backgroundColor="black";
			AOpRX.style.fontWeight ="normal";
			LineaOpRX.style.backgroundColor="black";
			AOpHD.style.fontWeight ="normal";
			LineaOpHD.style.backgroundColor="black";
			AOpAT.style.fontWeight ="normal";
			LineaOpAT.style.backgroundColor="black";
			AOpOtros.style.fontWeight ="normal";
			LineaOpOtros.style.backgroundColor="black";
			AOpInicio.style.fontWeight ="normal";
			LineaOpInicio.style.backgroundColor="black";

			//Marcamos la opción de "Otros"
			AOpOtros.style.fontWeight ="bold";
			LineaOpOtros.style.backgroundColor="white";

			break;
	}
}

//Función que muestra marcado el apartado que corresponde en las Páginas de Contenido.
function Apartados()
{
	var rutaAbsoluta = self.location.href;
	var posicionUltimaBarra = rutaAbsoluta.lastIndexOf("/");
	var rutaRelativa = rutaAbsoluta.substring( posicionUltimaBarra + "/".length , rutaAbsoluta.length );
	switch(rutaRelativa)
	{
		//LA COMPAÑÍA - CONOZCANOS
		case 'conozcanos.html':

			//Desmarcamos todos los apartados de la opción "LA COMPAÑÍA"
			AApOrganizacion.style.fontWeight ="normal";
			AApOrganizacion.style.color ="white";
			LineaApOrganizacion.style.backgroundColor="#448B09";
			AApConozcanos.style.fontWeight ="normal";
			AApConozcanos.style.color ="white";
			LineaApConozcanos.style.backgroundColor="#448B09";
			AApContacto.style.fontWeight ="normal";
			AApContacto.style.color ="white";
			LineaApContacto.style.backgroundColor="#448B09";

			//Marcamos el apartado "CONOZCANOS"
			AApConozcanos.style.fontWeight ="bold";
			AApConozcanos.style.color ="black";
			LineaApConozcanos.style.backgroundColor="black";
			
			break;

		//LA COMPAÑIA - ORGANIZACIÓN
		case 'organizacion.html':

			//Desmarcamos todos los apartados de la opción "LA COMPAÑÍA"
			AApOrganizacion.style.fontWeight ="normal";
			AApOrganizacion.style.color ="white";
			LineaApOrganizacion.style.backgroundColor="#448B09";
			AApConozcanos.style.fontWeight ="normal";
			AApConozcanos.style.color ="white";
			LineaApConozcanos.style.backgroundColor="#448B09";
			AApContacto.style.fontWeight ="normal";
			AApContacto.style.color ="white";
			LineaApContacto.style.backgroundColor="#448B09";

			//Marcamos el apartado "ORGANIZACIÓN"
			AApOrganizacion.style.fontWeight ="bold";
			AApOrganizacion.style.color ="black";
			LineaApOrganizacion.style.backgroundColor="black";

			break;

		//LA COMPAÑIA - CONTACTO
		case 'contacto.html':

			//Desmarcamos todos los apartados de la opción "LA COMPAÑÍA"
			AApOrganizacion.style.fontWeight ="normal";
			AApOrganizacion.style.color ="white";
			LineaApOrganizacion.style.backgroundColor="#448B09";
			AApConozcanos.style.fontWeight ="normal";
			AApConozcanos.style.color ="white";
			LineaApConozcanos.style.backgroundColor="#448B09";
			AApContacto.style.fontWeight ="normal";
			AApContacto.style.color ="white";
			LineaApContacto.style.backgroundColor="#448B09";

			//Marcamos el apartado "CONTACTO"
			AApContacto.style.fontWeight ="bold";
			AApContacto.style.color ="black";
			LineaApContacto.style.backgroundColor="black";

			break;

		//RX - EQUIPOS DE RADIOLOGIA
		case 'RX.html':
		case 'equiposportatilesrx.html':
		case 'arcosenc.html':
		case 'salarxgeneral.html':
		case 'salarxDR.html':
		case 'teleanalogica.html':
		case 'teledigitalintesif.html':
		case 'teledigital.html':
		case 'mamoanalogicos.html':
		case 'mamodigitales.html':
		case 'ortopantomografos.html':
		case 'tacdental.html':
		case 'eqmamotomo.html':

			//Desmarcamos todos los apartados de la opción "RAYOS X"
			AApEquiposRX.style.fontWeight ="normal";
			AApEquiposRX.style.color ="white";
			LineaApEquiposRX.style.backgroundColor="#448B09";
			AApFormRX.style.fontWeight ="normal";
			AApFormRX.style.color ="white";
			LineaApFormRX.style.backgroundColor="#448B09";

			//Marcamos el apartado "EQUIPOS DE RADIOLOGIA"
			AApEquiposRX.style.fontWeight ="bold";
			AApEquiposRX.style.color ="black";
			LineaApEquiposRX.style.backgroundColor="black";
			
			break;

		//RX - FORMULARIO DE RAYOS X
		case 'formRX.html':

			//Desmarcamos todos los apartados de la opción "RAYOS X"
			AApEquiposRX.style.fontWeight ="normal";
			AApEquiposRX.style.color ="white";
			LineaApEquiposRX.style.backgroundColor="#448B09";
			AApFormRX.style.fontWeight ="normal";
			AApFormRX.style.color ="white";
			LineaApFormRX.style.backgroundColor="#448B09";

			//Marcamos el apartado "FORMULARIO DE RX"
			AApFormRX.style.fontWeight ="bold";
			AApFormRX.style.color ="black";
			LineaApFormRX.style.backgroundColor="black";
			
			break;

		//HOSPITAL DIGITAL - SOLUCIONES Y VENTAJAS
		case 'HD.html':
		case 'ris.html':
		case 'pacs.html':
		case 'mammo.html':
		case 'radvision.html':
		case 'web.html':

			//Desmarcamos todos los apartados de la opción "HOSPITAL DIGITAL"
			AApSolucionesHD.style.fontWeight ="normal";
			AApSolucionesHD.style.color ="white";
			LineaApSolucionesHD.style.backgroundColor="#448B09";
			AApFormHD.style.fontWeight ="normal";
			AApFormHD.style.color ="white";
			LineaApFormHD.style.backgroundColor="#448B09";

			//Marcamos el apartado "SOLUCIONES Y VENTAJAS"
			AApSolucionesHD.style.fontWeight ="bold";
			AApSolucionesHD.style.color ="black";
			LineaApSolucionesHD.style.backgroundColor="black";
			
			break;

		//HOSPITAL DIGITAL - FORMULARIO DE HOSPITAL DIGITAL
		case 'formHD.html':

			//Desmarcamos todos los apartados de la opción "HOSPITAL DIGITAL"
			AApSolucionesHD.style.fontWeight ="normal";
			AApSolucionesHD.style.color ="white";
			LineaApSolucionesHD.style.backgroundColor="#448B09";
			AApFormHD.style.fontWeight ="normal";
			AApFormHD.style.color ="white";
			LineaApFormHD.style.backgroundColor="#448B09";

			//Marcamos el apartado "FORMULARIO DE HOSPITAL DIGITAL"
			AApFormHD.style.fontWeight ="bold";
			AApFormHD.style.color ="black";
			LineaApFormHD.style.backgroundColor="black";
			
			break;


		//AT - EQUIPOS DE ALTA TECNOLOGIA
		case 'AT.html':
		case 'neuviz.html':
		case 'superstar.html':

			//Desmarcamos todos los apartados de la opción "ALTA TECNOLOGIA"
			AApEquiposAT.style.fontWeight ="normal";
			AApEquiposAT.style.color ="white";
			LineaApEquiposAT.style.backgroundColor="#448B09";
			AApFormAT.style.fontWeight ="normal";
			AApFormAT.style.color ="white";
			LineaApFormAT.style.backgroundColor="#448B09";

			//Marcamos el apartado "EQUIPOS DE ALTA TECNOLOGIA"
			AApEquiposAT.style.fontWeight ="bold";
			AApEquiposAT.style.color ="black";
			LineaApEquiposAT.style.backgroundColor="black";
			
			break;

		//AT - EQUIPOS DE ALTA TECNOLOGIA - AURORA
		case 'aurora.html':

			//Desmarcamos todos los apartados de la opción "ALTA TECNOLOGIA"
			AApEquiposAT.style.fontWeight ="normal";
			AApEquiposAT.style.color ="white";
			LineaApEquiposAT.style.backgroundColor="#E77D8B";
			AApFormAT.style.fontWeight ="normal";
			AApFormAT.style.color ="white";
			LineaApFormAT.style.backgroundColor="#E77D8B";

			//Marcamos el apartado "EQUIPOS DE ALTA TECNOLOGIA"
			AApEquiposAT.style.fontWeight ="bold";
			AApEquiposAT.style.color ="black";
			LineaApEquiposAT.style.backgroundColor="black";
			
			break;

		//AT - FORMULARIO DE ALTA TECNOLOGIA
		case 'formAT.html':

			//Desmarcamos todos los apartados de la opción "ALTA TECNOLOGIA"
			AApEquiposAT.style.fontWeight ="normal";
			AApEquiposAT.style.color ="white";
			LineaApEquiposAT.style.backgroundColor="#448B09";
			AApFormAT.style.fontWeight ="normal";
			AApFormAT.style.color ="white";
			LineaApFormAT.style.backgroundColor="#448B09";

			//Marcamos el apartado "FORMULARIO DE ALTA TECNOLOGIA"
			AApFormAT.style.fontWeight ="bold";
			AApFormAT.style.color ="black";
			LineaApFormAT.style.backgroundColor="black";
			
			break;

		//OTROS - ENLACES
		case 'enlaces.html':

			//Desmarcamos todos los apartados de la opción "OTROS"
			AApEnlaces.style.fontWeight ="normal";
			AApEnlaces.style.color ="white";
			LineaApEnlaces.style.backgroundColor="#448B09";
			AApAgregar.style.fontWeight ="normal";
			AApAgregar.style.color ="white";
			LineaApAgregar.style.backgroundColor="#448B09";


			//Marcamos el apartado "ENLACES"
			AApEnlaces.style.fontWeight ="bold";
			AApEnlaces.style.color ="black";
			LineaApEnlaces.style.backgroundColor="black";
			
			break;

	}
}

//LOGOARRIBA
//Función que muestra el logotipo de la cabecera que corresponde en las Páginas de Contenido.
function LogoArriba()
{
	var rutaAbsoluta = self.location.href;
	var posicionUltimaBarra = rutaAbsoluta.lastIndexOf("/");
	var rutaRelativa = rutaAbsoluta.substring( posicionUltimaBarra + "/".length , rutaAbsoluta.length );

	var rutaAbsolutaIMG=logoarriba.src;
	var posicionUltimaBarraIMG = rutaAbsolutaIMG.lastIndexOf("/");
	var rutaRelativaIMG = rutaAbsolutaIMG.substring( posicionUltimaBarraIMG + "/".length , rutaAbsolutaIMG.length );

	switch(rutaRelativa)
	{
		case 'conozcanos.html':
		case 'organizacion.html':
		case 'contacto.html':
			if (rutaRelativaIMG=="logoireOp0.jpg")
			{
				logoarriba.src="Imagenes/logoireOp1.jpg";
				arrancar("Imagenes/logoireOp1.jpg");
			}
			break;
		case 'RX.html':
		case 'equiposportatilesrx.html':
		case 'arcosenc.html':
		case 'salarxgeneral.html':
		case 'salarxDR.html':
		case 'teleanalogica.html':
		case 'teledigitalintesif.html':
		case 'teledigital.html':
		case 'mamoanalogicos.html':
		case 'mamodigitales.html':
		case 'ortopantomografos.html':
		case 'tacdental.html':
		case 'eqmamotomo.html':
		case 'formRX.html':
			if (rutaRelativaIMG=="logoireOp0.jpg")
			{
				logoarriba.src="Imagenes/logoireOp2.jpg";
				arrancar("Imagenes/logoireOp2.jpg");
			}
			break;
		case 'HD.html':
		case 'ris.html':
		case 'pacs.html':
		case 'mammo.html':
		case 'radvision.html':
		case 'web.html':
		case 'formHD.html':
			if (rutaRelativaIMG=="logoireOp0.jpg")
			{
				logoarriba.src="Imagenes/logoireOp3.jpg";
				arrancar("Imagenes/logoireOp3.jpg");
			}
			break;
		case 'AT.html':
		case 'neuviz.html':
		case 'superstar.html':
		case 'formAT.html':
			if (rutaRelativaIMG=="logoireOp0.jpg")
			{
				logoarriba.src="Imagenes/logoireOp4.jpg";
				arrancar("Imagenes/logoireOp4.jpg");
			}
			break;
		case 'aurora.html':
			if (rutaRelativaIMG=="logoireOp0.jpg")
			{
				logoarriba.src="Imagenes/logoireOp4rosa.jpg";
				arrancar("Imagenes/logoireOp4rosa.jpg");
			}
			break;
		case 'enlaces.html':
			if (rutaRelativaIMG=="logoireOp0.jpg")
			{
				logoarriba.src="Imagenes/logoireOp5.jpg";
				arrancar("Imagenes/logoireOp5.jpg");
			}
			break;	
	}
}
function mover()
{

	if (logoarriba.style.pixelTop>0)
	{
		logoarriba.style.pixelTop = logoarriba.style.pixelTop - 10;
	}
	else
	{
		clearInterval(temporizador);
	}
}
function arrancar(imagen)
{
	logoarriba.src=imagen;
	logoarriba.style.top=200;
	
	temporizador=setInterval("mover()",1);

}

function MandarEmailRXAT()
{
    	var cuerpo;
	cuerpo = "Nombre y Apellidos : " + document.getElementById('nombre').value + " " + document.getElementById('apellidos').value + "<BR>";
	cuerpo = cuerpo + "Tel&eacute;fono: " + document.getElementById('telefono').value+ "<BR>";
	cuerpo =  cuerpo + "Email : " + document.getElementById('email').value + "<BR>";
	cuerpo =  cuerpo + "Nombre del Centro : " + document.getElementById('nombrecentro').value + "<BR>";
        cuerpo =  cuerpo + "Localidad : " + document.getElementById('localidad').value ;
         
	admin="irerayosx_irerayosx.com"; /* Put in your email address */
	topic="Peticion Informacion";

	parent.location.href='mailto:'+admin+'?subject='+topic+' '+document.title+'&body='+ cuerpo + "&content-type=text/html";
  
}
