window.onload = init;
window.onresize = handleResize;

var originalHeight;

function init() {
  l = document.getElementById( 'left' );
  m = document.getElementById( 'main' );
  r = document.getElementById( 'right' );
  h = l.offsetHeight;
  if( m.offsetHeight > h ){
	  h = m.offsetHeight;
  }
  if( r.offsetHeight > h ){
	  h = r.offsetHeight;
  }
	l.style.height = h+'px';
//  m.style.height = h+'px';
//  r.style.height = h+'px';

	startList( 'navlist_top' );
}

startList = function( id ) {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById( id );
		if( navRoot ){
			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", "");
					}
				}
			}
		}
	}
}

function windowHeight() {
    // Standard browsers (Mozilla, Safari, etc.)
    if (self.innerHeight)
        return self.innerHeight;
    // IE 6
    if (document.documentElement && document.documentElement.clientHeight)
        return document.documentElement.clientHeight;
    // IE 5
    if (document.body)
        return document.body.clientHeight;
    // Just in case.
    return 0;
}

function handleResize(){
}
