   <!--
   // Browser Detection
   isMac = (navigator.appVersion.indexOf("Mac")!=-1) ? true : false;
   NS4 = (document.layers) ? true : false;
   IEmac = ((document.all)&&(isMac)) ? true : false;
   IE4plus = (document.all) ? true : false;
   IE4 = ((document.all)&&(navigator.appVersion.indexOf("MSIE 4.")!=-1)) ? true : false;
   IE5 = ((document.all)&&(navigator.appVersion.indexOf("MSIE 5.")!=-1)) ? true : false;
   IE6 = ((document.all)&&(navigator.appVersion.indexOf("MSIE 6.")!=-1)) ? true : false;
   ver4 = (NS4 || IE4plus) ? true : false;
   NS6 = (!document.layers) && (navigator.userAgent.indexOf('Netscape')!=-1)?true:false;
   IE5plus = IE5 || IE6;
   IEMajor = 0;
   if (IE4plus)
   {
      var start = navigator.appVersion.indexOf("MSIE");
      var end = navigator.appVersion.indexOf(".",start);
      IEMajor = parseInt(navigator.appVersion.substring(start+5,end));
      IE5plus = (IEMajor>=5) ? true : false;
   }
   // Body onload utility (supports multiple onload functions)
   var gSafeOnload = new Array();
   function SafeAddOnload(f)
   {
      if (IEmac && IE4)  // IE 4.5 blows out on testing window.onload
      {
         window.onload = SafeOnload;
         gSafeOnload[gSafeOnload.length] = f;
      }
      else if  (window.onload)
      {
         if (window.onload != SafeOnload)
         {
            gSafeOnload[0] = window.onload;
            window.onload = SafeOnload;
         }
         gSafeOnload[gSafeOnload.length] = f;
      }
      else
      window.onload = f;
   }
   function SafeOnload()
   {
      for (var i=0;i<gSafeOnload.length;i++)
      gSafeOnload[i]();
   }
   function isInt(numIn)
   {
      var checknum = parseInt(numIn);
      return !isNaN(checknum);
   }
   function PUW_Init()
   {
      if (gPopupWindow.CheckFrequency())
      {
         setTimeout("gPopupWindow.Show()",gPopupWindow.showDelay);
      }
   }
   function PUW_Show()
   {
      var settings = "width="+this.width+",height="+this.height+",top="+this.top+",left="+this.left+",";
      settings += "scrollbars=" + ((this.scrollbars) ? "yes," : "no,");
      settings += "toolbar=" + ((this.toolbar) ? "yes," : "no,");
      settings += "location=" + ((this.locationbar) ? "yes," : "no,");
      settings += "menubar=" + ((this.menubar) ? "yes," : "no,");
      settings += "status=" + ((this.statusbar) ? "yes," : "no,");
      settings += "resizable=" + ((this.resizable) ? "yes" : "no");
      var newWin = window.open(this.url,this.name,settings);
      if (! this.ontop)
      window.focus();
   }
   function PUW_CheckFrequency()
   {
      var shouldShow = this.frequency != 0;
      if (this.frequency > 0)
      {
         var allCookies = document.cookie;
         var start = allCookies.indexOf("PUWCount=");
         if (start >= 0)
         {
            var end = allCookies.indexOf(";",start);
            if (end < 0)
            end = allCookies.length;
            var freqStr = allCookies.substring(start+9,end);
            if (isInt(freqStr))
            this.frequency = parseInt(freqStr);
         }
         if (this.frequency>0)
         this.frequency--;
         else
         shouldShow = false;
         var exp = new Date();
         exp.setTime(exp.getTime()+this.renew*60*60000);
         document.cookie = "PUWCount="+this.frequency+ "; expires=" + exp.toGMTString();
      }
      return shouldShow;
   }
   function PopupWindow(url,width,height)
   {
      this.width = width;
      this.height = height;
      this.top = screen.availHeight/2 - height/2; // center
      this.left = screen.availWidth/2 - width/2; // center
      this.name = "mypopupwin";
      this.url = url;
      this.showDelay = 2000;
      this.frequency = 2; // how many times show per renewal time period
      this.renew = 1; // renew showing every x hours
      this.scrollbars= true;
      this.toolbar= false;
      this.statusbar= false;
      this.resizable = false;
      this.locationbar = false;
      this.menubar = false;
      this.ontop = true;
      this.Init = PUW_Init;
      this.Show = PUW_Show;
      this.CheckFrequency = PUW_CheckFrequency;
   }
   function PUWStart()
   {
      gPopupWindow.Init();
   }
   function ShowPopup(i)
   {
      gPopupWindow = new PopupWindow("popup.php?i="+i, 350, 150);
      gPopupWindow.toolbar = false;
      gPopupWindow.statusbar = false;
      gPopupWindow.resizable = false;
      gPopupWindow.ontop = true;
      gPopupWindow.showDelay=0;
      gPopupWindow.Show()
   }
   function ShowPopup1(i)
   {
      gPopupWindow = new PopupWindow("vmsg.php?i="+i, 350, 150);
      gPopupWindow.toolbar = false;
      gPopupWindow.statusbar = false;
      gPopupWindow.resizable = false;
      gPopupWindow.ontop = true;
      gPopupWindow.showDelay=0;
      gPopupWindow.Show()
   }
   function ShowPopup2()
   {
      gPopupWindow = new PopupWindow("msgnew.php", 350, 150);
      gPopupWindow.toolbar = false;
      gPopupWindow.statusbar = false;
      gPopupWindow.resizable = false;
      gPopupWindow.ontop = true;
      gPopupWindow.showDelay=0;
      gPopupWindow.Show()
   }

   function SwitchMenu(obj)
   {
      if(document.getElementById)
      {
         var ar_h1= document.getElementById("menudiv-h1").getElementsByTagName("span");
         var ar_h2= document.getElementById("menudiv-h2").getElementsByTagName("span");
         var ar_v1= document.getElementById("menudiv-v1").getElementsByTagName("span");
         var ar_v2= document.getElementById("menudiv-v2").getElementsByTagName("span");
         var ar_w = document.getElementById("menudiv-w").getElementsByTagName("div");
         var el = document.getElementById(obj);
         for (var i=0; i<ar_h1.length; i++)
         {
            if (ar_h1[i].className=="submenuh1")
           	ar_h1[i].style.display = "none";
         }
         for (var i=0; i<ar_h2.length; i++)
         {
            if (ar_h2[i].className=="submenuh2")
           	ar_h2[i].style.display = "none";
         }
         for (var i=0; i<ar_v1.length; i++)
         {
            if (ar_v1[i].className=="submenuv1")
            ar_v1[i].style.display = "none";
         }
         for (var i=0; i<ar_v2.length; i++)
         {
            if (ar_v2[i].className=="submenuv2")
            ar_v2[i].style.display = "none";
         }
         for (var i=0; i<ar_w.length; i++)
         {
            if (ar_w[i].className=="submenuw")
            ar_w[i].style.display = "none";
         }
         if(el.style.display != "block")
         {
            el.style.display = "block";
         }
         else
         {
            el.style.display = "none";
         }
      }
   }

   function HideAllMenu()
   {
      if(document.getElementById)
      {
         var ar_h1 = document.getElementById("menudiv-h1").getElementsByTagName("span");
         var ar_h2 = document.getElementById("menudiv-h2").getElementsByTagName("span");
         var ar_v1 = document.getElementById("menudiv-v1").getElementsByTagName("span");
         var ar_v2 = document.getElementById("menudiv-v2").getElementsByTagName("span");
         var ar_w = document.getElementById("menudiv-w").getElementsByTagName("div");
         for (var i=0; i<ar_h1.length; i++)
         {
            if (ar_h1[i].className=="submenuh1")
           	ar_h1[i].style.display = "none";
         }
         for (var i=0; i<ar_h2.length; i++)
         {
            if (ar_h2[i].className=="submenuh2")
           	ar_h2[i].style.display = "none";
         }
         for (var i=0; i<ar_v1.length; i++)
         {
            if (ar_v1[i].className=="submenuv1")
            ar_v1[i].style.display = "none";
         }
         for (var i=0; i<ar_v2.length; i++)
         {
            if (ar_v2[i].className=="submenuv2")
            ar_v2[i].style.display = "none";
         }
         for (var i=0; i<ar_w.length; i++)
         {
            if (ar_w[i].className=="submenuw")
            ar_w[i].style.display = "none";
         }
      }
   }

   function NegarColor(color)
   {
      var ncolor="#";
      alert(color);
      for(i=1;i<=6;i++)
      {
         switch(color.substring(i,1))
         {
            case "f":
               ncolor=ncolor+"0";
            break;
            case "e":
               ncolor=ncolor+"1";
            break;
            case "d":
               ncolor=ncolor+"2";
            break;
            case "c":
               ncolor=ncolor+"3";
            break;
            case "b":
               ncolor=ncolor+"4";
            break;
            case "a":
               ncolor=ncolor+"5";
            break;
            case "F":
               ncolor=ncolor+"0";
            break;
            case "E":
               ncolor=ncolor+"1";
            break;
            case "D":
               ncolor=ncolor+"2";
            break;
            case "C":
               ncolor=ncolor+"3";
            break;
            case "B":
               ncolor=ncolor+"4";
            break;
            case "A":
               ncolor=ncolor+"5";
            break;
            case "9":
               ncolor=ncolor+"6";
            break;
            case "8":
               ncolor=ncolor+"7";
            break;
            case "7":
               ncolor=ncolor+"8";
            break;
            case "6":
               ncolor=ncolor+"9";
            break;
            case "5":
               ncolor=ncolor+"A";
            break;
            case "4":
               ncolor=ncolor+"B";
            break;
            case "3":
               ncolor=ncolor+"C";
            break;
            case "2":
               ncolor=ncolor+"D";
            break;
            case "1":
               ncolor=ncolor+"E";
            break;
            case "0":
               ncolor=ncolor+"F";
            break;
         }
      }
      return ncolor;
   }
   function HighL(obj)
   {
      if(document.getElementById)
      {
         var el = document.getElementById(obj);
         //	el.style.backgroundColor="#FEDDCC";
         //alert(el.style.getAttribute("backgroundColor"));
         //  alert(NegarColor(el.style.getAttribute("backgroundColor")));
         //	el.style.color="#013300";
         el.style.fontWeight="bolder";
      }
   }
   function LowL(obj)
   {
      if(document.getElementById)
      {
         var el = document.getElementById(obj);
         //	el.style.backgroundColor=""
         //	el.style.color=""
         el.style.fontWeight="";
      }
   }
   function HighTitular(obj)
   {
   	if (document.getElementById)
		{
       document.getElementById(obj).className="TitularesDestacados";
		}
   }
   function LowTitular(obj)
   {
   	if (document.getElementById)
		{
       document.getElementById(obj).className="Titulares";
		}
   }
   /*
   Author: Alex Osipov (alex@acky.net)
   Publisher: ACKY.NET
   */
   // Global variables.
   domain		= '';
   path		= '/';
   secure		= 0;
   // Function to save a field.
   function save_field(obj)
   {
      var cookie_value = '';
      var objType = new String(obj.type);
      switch(objType.toLowerCase())
      {
         case "checkbox" :
            if (obj.checked) cookie_value = obj.name + '=[1]'
            else cookie_value = obj.name + '=[0]'
         break;
         case "undefined" :
            // a.k.a. radio field.
            for (var i = 0; i < obj.length; i++)
            {
               if (obj[i].checked) cookie_value = obj[i].name + '=[' + i + ']'
            }
         break;
         case "select-one" :
            cookie_value = obj.name + '=[' + obj.selectedIndex + ']';
         break;
         case "select-multiple" :
            cookie_value = obj.name + '=[';
            for (var i = 0; i < obj.options.length; i++)
            {
               if (obj.options[i].selected) cookie_value += '+' + i
            }
            cookie_value += ']';
         break;
         default :
         // We assume all other fields will have
         // a valid obj.name and obj.value
         cookie_value = obj.name + '=[' + obj.value + ']';
      }
      if (cookie_value)
      {
         var expires = new Date();
         expires.setYear(expires.getYear() + 1);
         document.cookie = cookie_value +
         ((domain.length > 0) ? ';domain=' + domain : '') +
         ((path) ? ';path=' + path : '') +
         ((secure) ? ';secure' : '') +
         ';expires=' + expires.toGMTString();
      }
      return 1;
   }
   // Function to retrieve a field.
   function retrieve_field(obj)
   {
      var cookie = '', real_value = '';
      cookie = document.cookie;
      var objType = new String(obj.type);
      if (obj.name)
      var objName = new String(obj.name);
      else
      var objName = new String(obj[0].name);
      var offset_start = cookie.indexOf(objName + '=[');
      if (offset_start == -1) return 1;
      var offset_start_length = objName.length + 2;
      offset_start = offset_start + offset_start_length;
      var offset_end = cookie.indexOf(']', offset_start);
      real_value = cookie.substring(offset_start, offset_end);
      switch(objType.toLowerCase())
      {
         case "checkbox" :
            if (real_value == '1') obj.checked = 1
            else obj.checked = 0
         break;
         case "undefined" :
            obj[real_value].checked = 1;
         break;
         case "select-one" :
            obj.selectedIndex = real_value;
         break;
         case "select-multiple" :
            for (var i = 0; i < obj.options.length; i++)
            {
               if ((real_value.indexOf('+' + i)) > -1)
               obj.options[i].selected = 1;
               else
               obj.options[i].selected = 0;
            }
         break;
         default :
         obj.value = real_value;
         break;
      }
      return 1;
   }
   function PageQuery(q)
   {
      if(q.length > 1) this.q = q.substring(1, q.length);
      else this.q = null;
      this.keyValuePairs = new Array();
      if(q)
      {
         for(var i=0; i < this.q.split("&").length; i++)
         {
            this.keyValuePairs[i] = this.q.split("&")[i];
         }
      }
      this.getKeyValuePairs = function()
      {
         return this.keyValuePairs;
      }
      this.getValue = function(s)
      {
         for(var j=0; j < this.keyValuePairs.length; j++)
         {
            if(this.keyValuePairs[j].split("=")[0] == s)
            return this.keyValuePairs[j].split("=")[1];
         }
         return false;
      }
      this.getParameters = function()
      {
         var a = new Array(this.getLength());
         for(var j=0; j < this.keyValuePairs.length; j++)
         {
            a[j] = this.keyValuePairs[j].split("=")[0];
         }
         return a;
      }
      this.getLength = function()
      {
         return this.keyValuePairs.length;
      }
   }
   function queryString(key)
   {
      var page = new PageQuery(window.location.search);
      return unescape(page.getValue(key));
   }
   function displayItem(key)
   {
      if(queryString(key)=='false')
      {
         //               document.write("you didn't enter a ?name=value querystring item.");
      }
      else
      {
         SwitchMenu('SubV'+queryString(key))
         //               document.write(queryString(key));
      }
   }
   function change_height()
   {
      if(document.getElementById && !(document.all))
      {
         height =
         document.getElementById('myiframe').contentDocument.body.scrollHeight;
         document.getElementById('myiframe').style.height = height;
      }
      else if(document.all)
      {
         height = document.frames('myiframe').document.body.scrollHeight;
         document.all.myiframe.style.height = height;
      }
   }
   function valide(miseccion,miselect)
   {
      if(miselect.value=='-1')
      {
         alert("Selección no válida!");
         miselect.value=miseccion;
      }
      return true;
   }
   // End JavaScript -->
