// fix the sidebar to match the pagecontent div
// based on script articles at http://www.devarticles.com/showblog/8721/Matching-div-heights-with-CSS-and-JavaScript/ and http://www.aglasshalffull.org/css-resources/Change-Div-Size-Color-and-Location-with-the-W3C-DOM.htm

matchHeight = function() {
	var divh = document.getElementById("pagecontent").offsetHeight;
	// alert( divh );

	document.getElementById("sidebar").style.height = divh + 'px'; 
	}
// execute function when page loads

window.onload=function(){
     if(document.getElementsByTagName){
          matchHeight();
     }
} 	
