function allocateSidebarHeight() {
var contentDom = document.getElementById("content");
var sidebarDom = document.getElementById("side_bar");
if((contentDom.offsetHeight-0) > sidebarDom.offsetHeight) {
sidebarDom.style.height = (contentDom.offsetHeight-0)+"px"; }
}

function allocateSidebarHeight1() {
var contentDom = document.getElementById("content");
var sidebarDom = document.getElementById("main_home_content");
if((contentDom.offsetHeight-0) > sidebarDom.offsetHeight) {
sidebarDom.style.height = (contentDom.offsetHeight-0)+"px"; }
}

window.onload= function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("main_home_content");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() { this.className+=" over"; }
node.onmouseout=function() { this.className=this.className.replace(" over", ""); } } } }
allocateSidebarHeight1(); 

if (document.all&&document.getElementById) {
navRoot2= document.getElementById("side_bar");
for (i=0; i<navRoot2.childNodes.length; i++) {
node2 = navRoot2.childNodes[i];
if (node2.nodeName=="LI") {
node2.onmouseover=function() { this.className+=" over"; }
node2.onmouseout=function() { this.className=this.className.replace(" over", ""); } } } }
allocateSidebarHeight(); 
}


