function hideIt(table1) { if (document.getElementById) {document.getElementById(table1).style.visibility="hidden";} else if (document.all) {document.all[layer].style.visibility="hidden";} else if (document.layers) {document.layers[table2].visibility="hide";} } function hideAll(nbTop){ for(i=1;i<=nbTop;i++){ var name="table"+i; if (document.getElementById) {document.getElementById(name).style.visibility="hidden";} else if (document.all) {document.all[name].style.visibility="hidden";} else if (document.layers) {document.layers[name].visibility="hide";} } } function showIt(table2) { if (document.getElementById) {document.getElementById(table2).style.visibility="visible";} else if (document.all) {document.all[table2].style.visibility="visible";} else if (document.layers) {document.layers[table2].visibility="show";} } var origWidth, origHeight; if (document.layers){ origWidth=window.innerWidth;origHeight=window.innerHeight; window.onresize=function(){if (window.innerWidth !=origWidth || window.innerHeight !=origHeight) history.go(0);} } var cur_lyr; function swapLayers(id){ if (cur_lyr) hideLayer(cur_lyr); showLayer(id); cur_lyr=id; } function showLayer(id){ var lyr=getElemRefs(id); if (lyr && lyr.css){ lyr.css.visibility="visible"; lyr.css.height="auto"; } } function hideLayer(id){ var lyr=getElemRefs(id); if (lyr && lyr.css){ lyr.css.visibility="hidden"; lyr.css.height="0px"; } } function getElemRefs(id){ var el=(document.getElementById)? document.getElementById(id): (document.all)? document.all[id]: (document.layers)? document.layers[id]: null; if (el) el.css=(el.style)? el.style: el; return el; }