/* Copyright Bridgeline Digital, Inc. An unpublished work created in 2009. All rights reserved. This software contains the confidential and trade secret information of Bridgeline Digital, Inc. ("Bridgeline").  Copying, distribution or disclosure without Bridgeline's express written permission is prohibited */
//set window event handlers
window.onload = function() 
{
	//setheight();	
}
window.onresize = function() 
{
	//setheight(); //NOTE: resize is causing IE to crash
	//NOTE: IE6 fires resize at least 3x (for window, HTML element & BODY element at a minimum)
}

//define functions
function setheight()
{
	//get HTML elements
	var contentElem = document.getElementById('maincontainer');
	var leftNavElem = null;
	if(contentElem)
	{
	    var arrDivs = contentElem.getElementsByTagName('div');
	    for (i=0;i<arrDivs.length;i++)
	    {
	        if(arrDivs[i].className){
	            if(arrDivs[i].className=="contentAreaContainer")
	            {
	                leftNavElem = arrDivs[i];
	            }
	        }
	    }
        if(leftNavElem)
        {
            leftNavElem.style.height = contentElem.offsetHeight + "px";   
        }
    }
}
