//	Function to allow rollover bullets for navigation in IE6. (other browsers can use pure CSS)
// see www.alistapart.com/articles/dropdowns/

startList = function() {createHovers("nav");}

function createHovers(from_id) {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById(from_id).firstChild;
		for (i=0; i<navRoot.childNodes.length; i++) { //apply mouseovers to main nav
			node = navRoot.childNodes[i];
			if ((node.nodeName=="A" || node.nodeName=="LI")&& node.className!="hover") {
				node.onmouseover=function() {this.className+="hover";}
				node.onmouseout=function() {
					this.className=this.className.replace=(/ hover/, "");
				}
			}
		}
	}
}

function set_content_height() 
{

	var content_height = document.getElementById('mainContent').offsetHeight;
	var side_bar_height = document.getElementById('sidebarContainer').offsetHeight;
	
	var main_container = document.getElementById('contentArea');
	
	if (content_height < side_bar_height) 
	{
		main_container.style.height = (side_bar_height)+'px';
	}
	else 
	{
		main_container.style.height = 'auto';
	}
}

window.onload = function() {
	startList();
	set_content_height();
}
window.onresize = function() {set_content_height();}