// JavaScript Document var nResize_width = 0; var nResize_height = 0; function fShowHideMenu () { pMenu01 = document.getElementById ("cab_menu01"); pMenu02 = document.getElementById ("cab_menu02"); fShowHide (pMenu01); fShowHide (pMenu02); } function fShowHide (pObjeto) { var sDisplay = pObjeto.style.display; if (sDisplay == "") sDisplay == "none"; pObjeto.style.display = (sDisplay == "block") ? "none" : "block"; } function fRevisarMenu () { var myWidth = 0; var myHeight = 0; var auxWidth = nResize_width; var auxHeight = nResize_height; if( typeof( window.innerWidth ) == 'number' ) { //No-IE myWidth = window.innerWidth; myHeight = window.innerHeight; } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) { //IE 6+ myWidth = document.documentElement.clientWidth; myHeight = document.documentElement.clientHeight; } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) { //IE 4 compatible myWidth = document.body.clientWidth; myHeight = document.body.clientHeight; } nResize_width = myWidth; nResize_height = myHeight; if (Math.abs(myWidth - auxWidth) < 30) return; pMenu01 = document.getElementById ("cab_menu01"); pMenu02 = document.getElementById ("cab_menu02"); pMenu01.removeAttribute("style"); pMenu02.removeAttribute("style"); pMenu01.className = "cab_menu"; pMenu02.className = "cab_derecha"; }