function onloadFunctions(lvl_1){ 

//apply a minimum height to the 'main' div when it is shorter then the 'sidebar' div
	var columnMain=document.getElementById('columnMain')
	var columnSidebar=document.getElementById('columnSidebar')
		
		if (columnSidebar.offsetHeight <= columnMain.offsetHeight) {
			//IE 6 and less does not reconize min-height, therefore adjust height
			if (navigator.userAgent.indexOf('MSIE 6.0')!=-1 || navigator.userAgent.indexOf('MSIE 5.5')!=-1 && navigator.userAgent.indexOf('Opera')==-1) {
				columnSidebar.style.height=(columnMain.offsetHeight -300) + 'px';
			}else{
				columnSidebar.style.minHeight=(columnMain.offsetHeight -300) + 'px';
			}
		}



//adjust widths for Opera & Safari
	if(navigator.userAgent.indexOf('Opera')!=-1) {
		document.getElementById('main').style.width=53.3 + 'em';
		document.getElementById('columnSidebar').style.width=14.4 + 'em';
	} 
	
	if(navigator.userAgent.indexOf('Safari')!=-1) {
		document.getElementById('main').style.width=51.68 + 'em';
		document.getElementById('columnSidebar').style.width=13.7 + 'em';
	}



// Left Menu
    var columnSidebar = document.getElementById('columnSidebar'); 
	// asterisk pulls in all elements in this div - older versions of Safari do not support this so menu will stay expanded in those versions
	var eNode=columnSidebar.getElementsByTagName('*');
	// ids in this function are converted to lowercase so there are not case-sensitive issues if some creates an id with Caps in the wrong spot
	var lvl_1 = lvl_1.toLowerCase();

    
		for (i1=0; i1<eNode.length; i1++) { 
			urlString=eNode[i1].getAttribute("href");
		
			if (urlString!=null && urlString.indexOf('?')!=-1) {
				var question=urlString.indexOf('?');
				var linkName=urlString.substring((question+1)).toLowerCase();
				
				if (linkName==lvl_1) {
					eNode[i1].className="active"
				}
			}
		
		}
		

		
/* ****************************************
	Below: Adapted from http://www.brucelawson.co.uk/index.php/2005/opening-links-in-new-windows-in-xhtml-strict/#comment-376
**************************************** */
if (!document.getElementsByTagName) return; 
	var anchors = document.getElementsByTagName("A");
	/* hide PDF note by default */
	
	if (document.getElementById('pdfNote')) {
	document.getElementById('pdfNote').className="hide"; 
		for (var i=0; i<anchors.length; i++) {
			var docLink = anchors[i];
			if (docLink.className=='externalDocument') {
				docLink.target = "_blank";
				docLink.innerHTML = docLink.innerHTML + "&nbsp;(opens in new window)";
				document.getElementById('pdfNote').className="show"; 
				}
			if (docLink.className=='externalDocumentNoNote') {
				docLink.target = "_blank";
			}				
		}	
	}
		
/* ****************************************
 Above: Adapted from http://www.brucelawson.co.uk/index.php/2005/opening-links-in-new-windows-in-xhtml-strict/#comment-376
**************************************** */		

/* END function */
}

/* Adddomloadevent.js is triggered in the template underneath the body tag. */


