<!-- Inicio

var popUp
function oNewWindow(ofert) {
popUp=window.open(ofert,'ofertas','scrollbars=auto,resizable=no,titlebar=0,width=600,height=470,left=50,top=20');
if (window.focus) {
popUp.focus()
}
}

var popPdf
function oPdf(pdfWin) {
popPdf=window.open(pdfWin,'pdfs','scrollbars=no,resizable=no,titlebar=0,width=900,height=650,left=50,top=20');
if (window.focus) {
popPdf.focus()
}
}

var cellBgHover = "<td width='25%' class='menuSup'>";

var menuLinks = new Array(6)

menuLinks[0] = "<a href='quees.php' class='menuSup'>&nbsp;¿QUE ES?&nbsp;</a>";
menuLinks[1] = "<a href='funciona.php' class='menuSup'>&nbsp;FUNCIONAMIENTO&nbsp;</a>";
menuLinks[2] = "<a href='sugerencias.php' class='menuSup'>&nbsp;SUGERENCIAS&nbsp;</a>";
menuLinks[3] = "<a href='contacto.php' class='menuSup'>&nbsp;CONTACTO&nbsp;</a>";


function menuSup()
{
for (n=0;n<4;n++)
{
  document.write(cellBgHover + menuLinks[n] + "</td>")
}
}


var serviceLinks = new Array(7)

serviceLinks[0] = "<p class='titleMenuleft'>Servicios</p>";
serviceLinks[1] = "<p class='menuLeft'><a href='sanidad.php' onMouseOver=\"dropdownmenu(this, event, menu1, \'140px\')\" onMouseOut=\"delayhidemenu()\">Sanidad -></a></p>";
serviceLinks[2] = "<p class='menuLeft'><a href='asistenciales.php' onMouseOver=\"dropdownmenu(this, event, menu2, \'135px\')\" onMouseOut=\"delayhidemenu()\">Ayuda Telef&oacute;nica -></a></p>";
serviceLinks[3] = "<p class='menuLeft'><a href='conciliacion.php'>Conciliaci&oacute;n -></a></p>";
serviceLinks[4] = "<p class='menuLeft'><a href=\"ocio.php\" onMouseOver=\"dropdownmenu(this, event, menu3, \'140px\')\" onMouseOut=\"delayhidemenu()\">Ocio y Cultura -></a></p>";
serviceLinks[5] = "<p class='menuLeft'><a href=\"belleza.php\">Belleza y Bienestar -></a></p>";
serviceLinks[6] = "<p class='menuLeft'><a href=\"ofertasEsp.php\" onMouseOver=\"dropdownmenu(this, event, menu4, \'130px\')\" onMouseOut=\"delayhidemenu()\">Ofertas y Dctos. -></a></p>";

function menuLeft()
{
for (n=0;n<7;n++)
{
  document.write(serviceLinks[n])
}
}


var menu1=new Array()
menu1[0]='<a href="audiolog.php?especialidadID=90">Audiolog&iacute;a</a>'
menu1[1]='<a href="fisioter.php?especialidadID=39">Fisioterapia</a>'
menu1[2]='<a href="odontolog.php?especialidadID=40">Odontolog&iacute;a</a>'
menu1[3]='<a href="optica.php?especialidadID=41">&Oacute;ptica</a>'
menu1[4]='<a href="podolog.php?especialidadID=42">Podolog&iacute;a</a>'
menu1[5]='<a href="psic.php?especialidadID=43">Psicolog&iacute;a</a>'

var menu2=new Array()
menu2[0]='<a href="alegal.php">Ayuda Legal</a>'
menu2[1]='<a href="apsic.php">Ayuda Psicol&oacute;gica</a>'

var menu3=new Array()
menu3[0]='<a href="oviajes.php">Viajes</a>'
menu3[1]='<a href="arte.php">Arte y Cultura</a>'
menu3[2]='<a href="oinfantil.php">Ocio Infantil y Juvenil</a>'
menu3[3]='<a href="ocursos.php">Cursos L&uacute;dicos</a>'
menu3[4]='<a href="readDeportes.php">Deportes</a>'
menu3[5]='<a href="oespect.php">Espect&aacute;culos</a>'

var menu4=new Array()
menu4[1]='<a href="ofertasLocal.php">Por Localidad</a>'


var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var horizontaloffset=0 //horizontal offset of menu from default location. (0-5 is a good value)
var menubgcolor='#EAEAEA'  //menu bgcolor

/////No further editting needed


var menuwidth='110px' //default menu width
var menubgcolor='#FFFFFF'  //menu bgcolor
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?


var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility: hidden; width: 160px; background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}

function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top=-500
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}


function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x-obj.offsetWidth < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure+obj.offsetWidth
}
else{
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move menu up?
edgeoffset=dropmenuobj.contentmeasure-obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either? (position at top of viewable window then)
edgeoffset=dropmenuobj.y
}
}
return edgeoffset
}


function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}


function dropdownmenu(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)


if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+obj.offsetWidth+horizontaloffset+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+"px"
}

return clickreturnvalue()
}


function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}


function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}


function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}



//  Fin -->