
function click(e){var strNavegador=navigator.appName;var strIdMenu='menuPrincipal';var bCerrar=false;if(strNavegador=="Microsoft Internet Explorer"){if(!e)
var e=window.event;if(e.button==1){bCerrar=true;}}
else{if(e.button==0){bCerrar=true;}}
if(bCerrar){cerrarMenu(strIdMenu);}}
document.onmousedown=click;function buscarElements(oNode,sNom){return oNode.getElementsByTagName(sNom);}
function clickHandlerMenu(oEvent,eventId,targetId)
{var strNavegador=navigator.appName;if(strNavegador=="Microsoft Internet Explorer"){window.event.returnValue=false;}
var oEvent=document.getElementById(eventId);var oElem=document.getElementById(targetId);var oParent=oElem.parentNode;if(oElem!=null)
{var bEffect=false;if(oElem.style.display==""){new Effect.BlindUp(oElem,{duration:0.6});oParent.className=""}
else{new Effect.BlindDown(oElem,{duration:0.6});oElem.style.height="";oParent.className="activo"}}}
function cerrarMenu(menu){var oMenu=document.getElementById(menu);if(oMenu){var intLIChildsLen=oMenu.childNodes.length;for(var i=0;i<intLIChildsLen;i++){var oChild=oMenu.childNodes[i];if(oChild.tagName&&oChild.tagName=='LI'){var intULChildsChildsLen=oChild.childNodes.length;for(var x=0;x<intULChildsChildsLen;x++){var oULChild=oChild.childNodes[x];if(oULChild.tagName&&oULChild.tagName=='UL'&&oULChild.style.display==""){new Effect.BlindUp(oULChild,{duration:0.6});}}}}}}
