/* * To change this template, choose Tools | Templates * and open the template in the editor. */ function resetPanelSize() { var h = 0, w = 0, bIE = true; if( typeof( window.innerWidth ) == 'number' ) { h = window.innerHeight;w = window.innerWidth; bIE = false; } else if( document.documentElement && ( document.documentElement.clientWidth ||document.documentElement.clientHeight ) ) { h = document.documentElement.clientHeight;w = document.documentElement.clientWidth; } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) { h = document.body.clientHeight;w = document.body.clientWidth; } if (bIE) { iContentDiff = 120;iInnerHeight = 185;iInnerWidth = 240; } else { iContentDiff = 125;iInnerHeight = 180;iInnerWidth = 245; } iMinHeight = 270; document.getElementById("map").style.height = (h-iInnerHeight) + 'px'; iMapHeight = parseInt(document.getElementById("map").style.height.replace('px','')); if (iMapHeight < iMinHeight) document.getElementById("map").style.height = iMinHeight + 'px'; }