




 

/*

.........................

:: Menu Buttons ::

.........................

*/

 

/*function clicked(theMenu){

            resetMenu();

            theMenu.id="clicked";

            }

            

function resetMenu(){

            x=document.getElementsByTagName('a');

            x[0].id="menuLink1";

            x[1].id="menuLink2";

            x[2].id="menuLink3";

            x[3].id="menuLink4";

            x[4].id="menuLink5";

            }*/

            

/*

.........................

:: subMenu Buttons ::

.........................

*/

 

function overButton(theMenu){

            document.getElementById(theMenu).style.visibility='visible';

            }

            

function resetYellowMenus(){

            document.getElementById('yellowOption1').style.visibility='hidden';

            document.getElementById('yellowOption2').style.visibility='hidden';

            document.getElementById('yellowOption3').style.visibility='hidden';

            document.getElementById('yellowOption4').style.visibility='hidden';

            document.getElementById('yellowOption5').style.visibility='hidden';

            document.getElementById('yellowOption6').style.visibility='hidden';

            }

            

function resetInnerYellowMenus(){

            document.getElementById('innerYellowOption1').style.visibility='hidden';

            document.getElementById('innerYellowOption2').style.visibility='hidden';

            document.getElementById('innerYellowOption3').style.visibility='hidden';

            document.getElementById('innerYellowOption4').style.visibility='hidden';

            document.getElementById('innerYellowOption5').style.visibility='hidden';

            document.getElementById('innerYellowOption6').style.visibility='hidden';

            }

            

function resetBlueMenus(){

            document.getElementById('blueOption1').style.visibility='hidden';

            document.getElementById('blueOption2').style.visibility='hidden';

            document.getElementById('blueOption3').style.visibility='hidden';

            document.getElementById('blueOption4').style.visibility='hidden';

            }

 

 

function PrintThisPage() 

{ 

   var sOption="toolbar=no,location=no,directories=no,menubar=no,resizable=no,Titlebar=no"; 

   sOption+="scrollbars=no,width=1,height=1,left=10,top=0"; 

 

   var sWinHTML = "";

   if (eval("document.getElementById('centroImprimir')")){

      sWinHTML = document.getElementById('centroImprimir').innerHTML;

   }else{

      sWinHTML = document.getElementById('contenedorPpal').innerHTML;

   }

 

   sWinHTML=sWinHTML.split("<A").join("<B");

   sWinHTML=sWinHTML.split("</A>").join("</B>");

 

   sWinHTML=sWinHTML.split("<a").join("<b");

   sWinHTML=sWinHTML.split("</a>").join("</b>");

 

   var winprint=window.open("","CMA",sOption);        

   winprint.document.open();

   if (navigator.appName == 'Netscape'){

       winprint.document.write("<html><head><title>Imprimir</title><LINK href='/obs/estilos/nuevaobrasocialnetscapeimprimir.css' rel='Stylesheet'></head><body>"); 

   }else{ 

       winprint.document.write("<html><head><title>Imprimir</title><LINK href='/obs/estilos/nuevaobrasocialimprimir.css' rel='Stylesheet'></head><body>"); 

   }

   winprint.document.write(sWinHTML);

   winprint.document.write('</body></html>'); 

   winprint.document.close(); 

   winprint.focus();

   winprint.print();

   winprint.close(); 

}

 

function activarCapa(i)

{

      var nombreCapa="";

 

      if (i != 0)

      {

           nombreCapa = "CapaLista" + i;

           document.getElementById(nombreCapa).style.visibility = "hidden";
           document.getElementById(nombreCapa).style.zIndex = "0";

      }

 

      nombreCapa = "CapaLista" + (i+1);

      if (document.getElementById(nombreCapa)){

          document.getElementById(nombreCapa).style.visibility = "visible";
          document.getElementById(nombreCapa).style.zIndex = "1";

      }

 

}

 

function desactivarCapa(i)

{

      var nombreCapa;

 

      nombreCapa = "CapaLista" + i;

      document.getElementById(nombreCapa).style.visibility = "hidden";    
      document.getElementById(nombreCapa).style.zIndex = "0";

      nombreCapa = "CapaLista" + (i-1);

      document.getElementById(nombreCapa).style.visibility = "visible";
      document.getElementById(nombreCapa).style.zIndex = "1";

}

 

 

 

function popup(url,ancho,alto)

{

                        var w=ancho;

                        var h=alto;

                        var winL = (screen.width - (w+10)) / 2;

                        var winA = (screen.height - (h+60)) / 2;

                        winprops = 'height='+h+',width='+w+',top='+winA+',left='+winL+',status=no,toolbar=no,menubar=no,location=no,noresizable,scrollbars=yes';

                        ventana = window.open(url,"CMA", winprops);

}

 

/*************************************************************************

  This code is from Dynamic Web Coding 

  at http://www.dyn-web.com/

  Copyright 2002-3 by Sharon Paine 

  See Terms of Use at http://www.dyn-web.com/bus/terms.html

  Permission granted to use this code 

  as long as this entire notice is included.

*************************************************************************/

 

// See documentation for information about setting these properties 

// at www.dyn-web/com/dhtml/write-drag/documentation.html

// required arg's: event, image path and file name (as this.href)

// important but optional arg's: width of image, height of image 

// other optional arg's: txt, layer width, offx, offy

function wrapContent(e, img, w, h, txt, wd, offx, offy) {

  var imgStr, cntnt, win, str;

  imgStr = '<img src="' + img + '"' + (w? ' width="' + w + '"': "") + (h? ' height="' + h + '"': "") + '>';

  if ( dragObj.supported && typeof document.body.innerHTML != "undefined" ) {

    cntnt = '<div class="img">' + imgStr + '</div>';

    if (txt) cntnt += '<div class="msg">' + txt + '</div>';  

    if (!wd) wd = w; 

    writeDrag.set(e, cntnt, wd, offx, offy);

  } else { // non-capable browsers will open sub window

    w = w+80 || wd || 250; h = h+80 || 250; // size

    win = window.open('', 'subwin', 'resizable,width='+w+',height='+h+',left=100,top=100');

    if (win && !win.closed) win.resizeTo(w,h); 

    str = '<html><head><title>Image Display</title></head>';

            str += '<body style="text-align:center">';

    str += imgStr + (txt? '<p>' + txt + '</p>':"");

            str += '</body></html>'

            win.document.write(str);

            win.document.close();

    if (win && !win.closed) win.focus(); 

  } 

  return false;

}

 

 

 

function activarCapaMapa(capa)

{

       if (document.layers) 

       {

            eval("document." + capa + ".style.visibility = \"show\";");

       }

                                   

       if (document.all)

       {

            document.all.capa010.style.visibility = "hidden";

            document.all.capa020.style.visibility = "hidden";

            document.all.capa030.style.visibility = "hidden";

            document.all.capa040.style.visibility = "hidden";

            document.all.capa050.style.visibility = "hidden";

            eval("document.all." + capa + ".style.visibility = \"visible\";");

       }

}

 

 

function activarCapaMapa(capa)

{

            document.getElementById("capa010").style.visibility = "hidden";

            document.getElementById("capa020").style.visibility = "hidden";

            document.getElementById("capa030").style.visibility = "hidden";

            document.getElementById("capa040").style.visibility = "hidden";

            document.getElementById("capa050").style.visibility = "hidden";

            document.getElementById(capa).style.visibility = "visible";

}