<!--

	fadeSpeed	= 20;
	fadeStep	= 10;
	fadeMin		= 0;
	fadeMax		= 100;
	activeOpac	= 100;
	timer		= new Array();


/*************************************
*  Efecto de resaltado de menú       *
*************************************/

	function enciende (id) {

//	elemento.className = 'activo';
	
	fadeIn('desplegable' + id);

	}

	function apaga (id) {
	
//	elemento.className = '';
	
	fadeOut('desplegable' + id);

}	


/**************************************
*   Recoge la opacidad del elemento   *
**************************************/

   function getOpacity (id) {

      if (document.getElementById(id).style.MozOpacity) {

         return parseFloat(document.getElementById(id).style.MozOpacity * 100);

      } else if (document.getElementById(id).filters) {

         return document.getElementById(id).filters.alpha.opacity;

      }

      return null;

   }


/*****************************************
*   Establece la opacidad del elemento   *
*****************************************/

   function setOpacity (id, opacity) {

      if (document.getElementById(id).style.MozOpacity) {

         document.getElementById(id).style.MozOpacity = parseFloat(opacity / 100);
         return true;

      } else if (document.getElementById(id).filters) {

         document.getElementById(id).filters.alpha.opacity = opacity;
         return true;

      }

      return false;

   }


/***************************************
*     Aparece elemento con fundido     *
***************************************/

	function fadeIn (id) {

      opacity = getOpacity(id);

      if (opacity == null) {

         document.getElementById(id).style.display = 'block';

      } else {

         document.getElementById(id).style.display = 'block';

         timer[id] = clearTimeout(timer[id]);
   
         if (opacity < fadeMax) {
   
            opacity = opacity + fadeStep;
   
            setOpacity(id, opacity);
   
            timer[id] = setTimeout("fadeIn('" + id + "');", fadeSpeed);
   
         }

      }

   }


/***************************************
*   Desaparece elemento con fundido    *
***************************************/

	function fadeOut (id) {

      opacity = getOpacity(id);

      if (opacity == null) {

         document.getElementById(id).style.display = 'none';

      } else {

         timer[id] = clearTimeout(timer[id]);
     
         if (opacity > fadeMin) {
   
            opacity = opacity - fadeStep;
   
            setOpacity(id, opacity);
   
            if (opacity == 0) {
               document.getElementById(id).style.display = 'none';
            }
   
            timer[id] = setTimeout("fadeOut('" + id + "');", fadeSpeed);
   
         }

      }

   }


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_displayStatusMsg(msgStr) { //v1.0
  status=msgStr;
  document.MM_returnValue = true;
}

//-->