var logDomain = "www.saludalia.com";var logChannel = "";var bannerDomain = "saludalia";//var noPopUp = true;//var noLayer = true;var uri = location.href;function enlace_doubleclick() {	document.write('\n<script type="text/javascript">');	document.write('\n<!--');	document.write('\ngoogle_ad_client = "pub-3606575296879670";');	document.write('\n/* 468x60, nº1 (08-07-17) */');	document.write('\ngoogle_ad_slot = "6280193594";');	document.write('\ngoogle_ad_width = 468;');	document.write('\ngoogle_ad_height = 60;');	document.write('\n//-->');	document.write('\n</script>');	document.write('\n<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>');	}function enlace_doubleclick_2() {}function enlace_doubleclick_home(){	try{		logChannel = "home";			bannerWoo.begin();		bannerWoo.end();		// document.write ("<table width='1' height='1' border='0' cellspacing='0' cellpadding='0'><tr><td><img src='http://www.saludalia.com/Saludalia/banner_pix.gif?" + logChannel + "' width='1' height='1'></td></tr></table>");		//alert (logChannel);	}	catch (e)	{						}		}function enlace_doubleclick_home_2() {}function time() {} //function pop_up() { //v1.0//  window.open("/Saludalia/servlets/bienvenida/bienvenido.htm","Vichy","status=no,scrollbars=no,resizable=no,width=300,height=400,top=200,left=200,screenX=268,screenY=215");  //window.open("http://www.saludalia.com/Saludalia/web_saludalia/swf/sello.html","pop_up","status=no,scrollbars=no,resizable=no,width=250,height=120,top=235,left=288,screenX=268,screenY=215");//}function MM_openIdWindow(theURL,winName,features) { //v2.0  window.name = "browser";    // código para salto a parte privada desde buscador Autonomy  var out="";    if ( theURL.indexOf("/cgi/NacomKnowServer.exe") != -1 ) {    for (i = 0; i < theURL.length; i++) {      if ( theURL.charAt(i) == "?" ) {        out += "¿";      }else if ( theURL.charAt(i) == "&" ) {        out += "@";      }else if ( theURL.charAt(i) == "#" ) {        out += "$";      }else {      	out += theURL.charAt(i);      }    }// fin for    theURL = out;  }  theURL = "/Saludalia/servlets/registro/identificar.jsp?url=" + theURL + "&winName=" + winName + "&features=" + features;  document.location.href = theURL;  }function enviar(theURL,winName,features) {    theURL=theURL+"?"+document.URL;  window.open(theURL,winName,features);}function enviar_sello(theURL) {    theURL=theURL+"?"+document.URL;  window.open(theURL,"","status=no,toolbar=yes,menubar=yes,scrollbars=yes,resizable=yes,width=650,height=350,top=235,left=288,screenX=268,screenY=215");}function enviar_encuesta(theURL,winName,features) {  var pos = "";var sURL = "";var sSep = "?pregunta";sURL = document.URL;  pos = sURL.indexOf(sSep);   if (pos !=-1){               theURL=theURL+"?"+document.URL;         }else{        theURL=theURL+"?"+document.URL+"?pregunta=P164";   }   window.open(theURL,winName,features);}function MM_openBrWindow(theURL,winName,features) { //v2.0  window.open(theURL,winName,features);}function mandar() { //v3.0if ((document.encuesta.P187[1].checked)||(document.encuesta.P187[0].checked))	{ document.encuesta.submit()}else   	{alert('Para votar hay que seleccionar una respuesta')}}function ver_resultado(){document.encuesta.P187[0].checked=false;document.encuesta.P187[1].checked=false;document.encuesta.submit();}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_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_findObj(n, d) { //v3.0  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); 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 openFullscreen(page, winName) {  var yes = 1;  var no = 0;    var menubar = no;       // The File, Edit, View Menus  var scrollbars = yes;   // Horizontal and vertical scrollbars  var locationbar = no;   // The location box with the site URL  var directories = no;   // the "What's New", "What Cool" links  var resizable = yes;    // Can the window be resized?  var statusbar = no;     // Status bar (with "Document: Done")  var toolbar = no;       // Back, Forward, Home, Stop toolbar    windowprops = "width=" + (screen.width-10) + ",height=" + (screen.height) + ",top=0,left=0";    windowprops += (menubar ? ",menubars" : "") +                 (scrollbars ? ",scrollbars" : "") +                 (locationbar ? ",location" : "") +                 (directories ? ",directories" : "") +                 (resizable ? ",resizable" : "") +                 (statusbar ? ",status" : "") +                 (toolbar ? ",toolbar" : "");    window.open(page, winName, windowprops);}//----------------------------------// Valores de configuracion//----------------------------------var valorCookie="nameUser"; //-->nombre de la cookie que queremos mostrarvar urlAcceso="/Saludalia/servlets/acceso/acceso.jsp"; //--> url del jsp de acceso//-----------------------------------// Funciones para recuperar la cookie//-----------------------------------function getCookieVal (offset) {  var endstr = document.cookie.indexOf (";", offset);  if (endstr == -1)    endstr = document.cookie.length;  return unescape(document.cookie.substring(offset, endstr));}function GetCookie (name) {  var arg = name + "=";  var alen = arg.length;  var clen = document.cookie.length;  var i = 0;  while (i < clen) {    var j = i + alen;    if (document.cookie.substring(i, j) == arg)      return getCookieVal (j);    i = document.cookie.indexOf(" ", i) + 1;    if (i == 0) break;   }  return null;}var ventana=null;function DejarLogs2(log,ir){	document.frm.logs.src=log;    if (ir!='') {		ventana=window.open(ir,'ventana');		ventana.focus();   }}//-----------------------------------// Funcion que construye el enlace //-----------------------------------function putAccess(){	var url=document.location;	var usuario=GetCookie(valorCookie);	if (usuario == null)	{		var azaroso = Math.round(Math.random()*1000000000);		usuario = "$" + azaroso;		creaCookie(valorCookie,usuario,'11950');	}	var parametrosAccess=usuario+","+url;	//document.write("<LAYER SRC='"+urlAcceso+"?access="+parametrosAccess+"' WIDTH=0 HEIGHT=0 CLIP='0,0,0,0'></LAYER>");	//document.write("<DIV ID='acceso'>");	//document.write("<IFRAME SRC='"+urlAcceso+"?access="+parametrosAccess+"' WIDTH=0 HEIGHT=0 MARGINWIDTH=0 MARGINHEIGHT=0 FRAMEBORDER=No></IFRAME></DIV>");}                                  //------------------------------------------------------------------------// Crea los iframe e ilayer para los documentos generados por Documentum//------------------------------------------------------------------------var ns4=document.layers?true:false;			function createlayers(){  	if (ns4)	{               		document.write ('<layer onload="moveToAbsolute(layer1.pageX,layer1.pageY);clip.width=140;clip.height=620;visibility=\'show\';" visibility="hidden" id="capa1"></layer>');	}}function loadLayers(url){	if (ns4)	{		document.capa1.src= url;//'/Salud/web_saludalia/html/iframe.html';	}	else	{		ventana = document.getElementById("frame1");    	ventana.style.visibility = "visible";		ventana.src=url;		//document.all.frame1.src= url;//'/Salud/web_saludalia/html/iframe.html';	}}	//publicidad del banner eresMasfunction publi(setion){		hoy = new Date();	aleat = hoy.getTime();	site = "http://banner.eresmas.com";	target = "/site=SALUDALIA/area=" + setion + "/aamsz=1x1/acc_random=";	document.write('<script language=JavaScript src="' + site + '/tserver/' + target + '' + aleat +'">');	document.write('</scr' + 'ipt>');		}// cookie del popup	function creaCookie(name,value,days) {	if (days) {		var date = new Date();		date.setTime(date.getTime()+(days*24*60*60*1000))		//date.setTime(date.getTime()+(60000))		var expires = "; expires="+date.toGMTString()	}	else expires = ""	document.cookie = name+"="+value+expires+"; path=/"	//alert ("creada cookie");}  function leeCookie(name) {var nameEQ = name + "="	var ca = document.cookie.split(';')	for(var i=0;i<ca.length;i++) {		var c = ca[i];		while (c.charAt(0)==' ') c = c.substring(1,c.length)		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length)	}	return null}//cabecera eresmasfunction bandaEM(){document.write("");	}			//Función para poner la fecha de la última modificación de los archivosfunction iniFechaArray(){        this.length = iniFechaArray.arguments.length      for (var i = 0; i < this.length; i++)      this[i+1] = iniFechaArray.arguments[i]}   var mesesFechaArray = new iniFechaArray("enero","febrero","marzo","abril",                                "mayo","junio","julio","agosto","septiembre",                                "octubre","noviembre","diciembre");var FechaUltimaModificacion = new Date(document.lastModified);function fModificacion(){	document.write("Última actualización: ");	//document.write(FechaUltimaModificacion.getDate()," ");	document.write(mesesFechaArray[(FechaUltimaModificacion.getMonth()+1)]," ");	if (navigator.appName=='Microsoft Internet Explorer'){   		document.write(" " +  FechaUltimaModificacion.getYear() + ".");   	}   	else{   	document.write(" " +  (FechaUltimaModificacion.getYear() + 1900) + ".");   	}}//Fin función para poner la fecha de la última modificación de los archivos//Función para poner el log OJDfunction logOJD(){	var urlsal = location.href;	if (urlsal.indexOf("/foodtoday/") != -1){//if 1		//alert("correcto foodtoday");		var IVW="http://saludalia.ojdinteractiva.com/cgi-bin/ivw/CP/www.saludalia.com/foodToday";		document.write("<IMG SRC=\""+IVW+"?r="+escape(document.referrer)+"\" WIDTH=\"1\" HEIGHT=\"1\">");	}//fin if 1	else{//else 1		if(urlsal.indexOf("/web_saludalia/reportajes/") != -1){//if 2			//alert("correcto actualidad");			var IVW="http://saludalia.ojdinteractiva.com/cgi-bin/ivw/CP/www.saludalia.com/actualidad";			document.write("<IMG SRC=\""+IVW+"?r="+escape(document.referrer)+"\" WIDTH=\"1\" HEIGHT=\"1\">");				}//fin if 2		else{ //else 2			if(urlsal.indexOf("/web_saludalia/cirugia/") != -1){ //if 3				//alert("correcto cirugia");				var IVW="http://saludalia.ojdinteractiva.com/cgi-bin/ivw/CP/www.saludalia.com/cirugia";				document.write("<IMG SRC=\""+IVW+"?r="+escape(document.referrer)+"\" WIDTH=\"1\" HEIGHT=\"1\">");					}//fin if 3			else{//else 3				if(urlsal.indexOf("/web_saludalia/pruebas_diagnosticas/") != -1){ //if 4				//alert("correcto pruebas diagnósticas.");				var IVW="http://saludalia.ojdinteractiva.com/cgi-bin/ivw/CP/www.saludalia.com/pruebas";				document.write("<IMG SRC=\""+IVW+"?r="+escape(document.referrer)+"\" WIDTH=\"1\" HEIGHT=\"1\">");						}//fin if 4					else{//else 4					if(urlsal.indexOf("/web_saludalia/temas_de_salud/") != -1){ //if 5					//alert("correcto temas de salud.");					var IVW="http://saludalia.ojdinteractiva.com/cgi-bin/ivw/CP/www.saludalia.com/temasSalud";					document.write("<IMG SRC=\""+IVW+"?r="+escape(document.referrer)+"\" WIDTH=\"1\" HEIGHT=\"1\">");							}//fin if 5						else{//else 5						if(urlsal.indexOf("/web_saludalia/tu_salud/") != -1){ //if 6						//alert("correcto Salud en Familia.");						var IVW="http://saludalia.ojdinteractiva.com/cgi-bin/ivw/CP/www.saludalia.com/saludFamilia";						document.write("<IMG SRC=\""+IVW+"?r="+escape(document.referrer)+"\" WIDTH=\"1\" HEIGHT=\"1\">");								}//fin if 6							else{//else 6							if(urlsal.indexOf("/web_saludalia/urgencias/") != -1){ //if 7							//alert("correcto urgencias.");							var IVW="http://saludalia.ojdinteractiva.com/cgi-bin/ivw/CP/www.saludalia.com/urgencias";							document.write("<IMG SRC=\""+IVW+"?r="+escape(document.referrer)+"\" WIDTH=\"1\" HEIGHT=\"1\">");									}//fin if 7								else{//else 7								if(urlsal.indexOf("/web_saludalia/vivir_sano/") != -1){ //if 8								//alert("correcto vivir sano.");								var IVW="http://saludalia.ojdinteractiva.com/cgi-bin/ivw/CP/www.saludalia.com/vivirSano";								document.write("<IMG SRC=\""+IVW+"?r="+escape(document.referrer)+"\" WIDTH=\"1\" HEIGHT=\"1\">");										}//fin if 8								else{//else 8									if(urlsal.indexOf("/web_saludalia/estetica/") != -1){ //if 9									//alert("correcto cirugía estética.");									var IVW="http://saludalia.ojdinteractiva.com/cgi-bin/ivw/CP/www.saludalia.com/cirugiaEstetica";									document.write("<IMG SRC=\""+IVW+"?r="+escape(document.referrer)+"\" WIDTH=\"1\" HEIGHT=\"1\">");											}//fin if 9																}//fin else 8														}//fin else 7										}//fin else 6								}//fin else 5						}//fin else 4				}//fin else 3		}//fin else 2	}//fin else 1 }//FIN Función para poner el log OJD