var mapShowLevel = 0;

function initResult() {
    mEvent.addListener(window, 'resize', setResultDims);
}

function setResultDims() {
    var height = getWindowHeight() - 5;
    var width = getWindowWidth();

    var mapDiv = document.getElementById("map");
    var panelDiv = document.getElementById("panel");
    
    var topBar = 0;
    var divHeight = height - topBar;
    var panelWidth = width*.34 ;
  
    var main = document.getElementById("main");
    main.style.width=width + "px";
        
    panelDiv.style.left = "1px";    
    panelDiv.style.width = panelWidth - 1 + "px";
    panelDiv.style.height = divHeight - 100 +"px";
    
    var mapContainer = document.getElementById("mapContainer");
    mapContainer.style.left = "5px";
    mapContainer.style.width = (width*.65 - 5) + "px";
    if(document.all){
        mapContainer.style.height = divHeight - 102 +"px";
    } else {
       mapContainer.style.height = divHeight - 100 +"px";
    }

    mapContainer.style.position="relative";

    mapDiv.style.width = (width*.65 - 5) + "px";
    if(document.all){
        mapDiv.style.height = divHeight - 102 +"px";
    } else {
       mapDiv.style.height = divHeight - 100 +"px";
    }
  
    mapDiv.style.position="relative"; 
};




function MM_openBrWindow(theURL,winName,features) {
    window.open(theURL,winName,features);
};


/*
 *function setResultDims() {
    var height = getWindowHeight() - 5;
    var width = getWindowWidth();

    var mapDiv = document.getElementById("map");
    var panelDiv = document.getElementById("panel");

    var topBar = 70;
    var divHeight = height - topBar;
    var panelWidth = width*.34 ;

    var main = document.getElementById("main");
    main.style.width=width + "px";

    panelDiv.style.left = "1px";
    panelDiv.style.width = panelWidth - 1 + "px";
    panelDiv.style.height = divHeight - 100 +"px";

    var mapContainer = document.getElementById("mapContainer");
    mapContainer.style.left = "5px";
    mapContainer.style.width = (width*.65 - 5) + "px";
    if(document.all){
        mapContainer.style.height = divHeight - 102 +"px";
    } else {
       mapContainer.style.height = divHeight - 100 +"px";
    }

    mapContainer.style.position="relative";

    mapDiv.style.width = (width*.65 - 5) + "px";
    if(document.all){
        mapDiv.style.height = divHeight - 102 +"px";
    } else {
       mapDiv.style.height = divHeight - 100 +"px";
    }

    mapDiv.style.position="relative";
};
 */