﻿// File JScript
// allunga col1 e col3 al 100% del div md (il primo contenitore)
function allocateSidebarHeight() {
var contentDom = document.getElementById("md");
var sidebarDom = document.getElementById("col1");
var sidebarDomright = document.getElementById("col3");
//alert(contentDom.offsetHeight);
if((contentDom.offsetHeight-345) > sidebarDom.offsetHeight) {
sidebarDom.style.height = (contentDom.offsetHeight-345)+"px"; }
if((contentDom.offsetHeight-345) > sidebarDomright.offsetHeight) {
sidebarDomright.style.height = (contentDom.offsetHeight-345)+"px"; }
}

startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("contentwrapper");
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", ""); } } } }
allocateSidebarHeight(); }

window.onload=startList;